hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : IF Statement in VB/Excel
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

IF Statement in VB/Excel

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-06-2006, 03:14 PM
byteventures byteventures is offline
Junior Guru Wannabe
 
Join Date: Dec 2005
Posts: 96

IF Statement in VB/Excel


I have a statement that requires 10 IFs, and Excel can only handle a maximum of 7. I will need to use VB, but I think the code might be really long.

Currently I have a formula that looks like this:
=IF(A9>20<25,F9,IF(A9>26<31,F10,IF(etc...)

This IF statement needs to run for cells A9 to A40, and there are 10 IFs to validate each cell. Does anyone know an easy way to code this in VB?

Thanks in advance for all of your help!

Reply With Quote


Sponsored Links
  #2  
Old 04-07-2006, 01:15 AM
aritrim aritrim is offline
Junior Guru Wannabe
 
Join Date: Apr 2006
Location: India
Posts: 73
Have you tried a Case statement?

select case
case A < X and A > Y
........
........
case A < Z and A > W
........
........
end select

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web hosting provider Infinitely Virtual Offers Unbundled Microsoft Office Suite Products Web Hosting News 2012-08-14 18:22:53
Software Firm Rackwise Wins Ecommerce Web Host SimpleHelix Web Hosting News 2012-01-23 14:05:30
Domain Registrar Namecheap Accuses Go Daddy of Hindering Domain Transfer Process Web Hosting News 2011-12-27 16:52:35
Cloud Host GoGrid Deploys Modius OpenData Infrastructure Management Web Hosting News 2011-10-31 17:40:00
Web Host CyberlinkASP Joins Rackspace Partner Program Web Hosting News 2011-09-23 16:52:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?