if then else limitation

steven_wonder

New Member
Joined
Sep 3, 2006
Messages
6
I need to run an if then else statment that tests thru 420 values of data (420) times ? Does anyone know if there is any spreadsheet program out there that has a much larger cap than the 7 limit excel has for and if then else statement ?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Have you thought of using a VLOOKUP? Place your 420 values in one column, the desired outputs in the adjacent column, and VLOOKUP will return the output for you.
Check the Excel Help for info on VLOOKUP.

Denis
 
Upvote 0
I need to run an if then else statment that tests thru 420 values of data (420) times ? Does anyone know if there is any spreadsheet program out there that has a much larger cap than the 7 limit excel has for and if then else statement ?

Steven,

Maybe you could expand on your needs a little bit. What was mentioned by another poster may work but then we don't know the layout of your data. Based on the fact you mentioned 420 values indicates to me that the data sits in rows and not columns (>255).

Is the data in the same column or multiple columns? What do you want to do with the test? For example you may need to abandon vLookup if the data you want to return is not located where vlookup needs it:

From help:

'Searches for a value in the first column of a table array and returns a value in the same row from another column in the table array.

The V in VLOOKUP stands for vertical. Use VLOOKUP instead of HLOOKUP when your comparison values are located in a column to the left of the data that you want to find.'

You may want to use another method, or in fact need to use another method but we don't know that based on your post yet.

Another option is to use a macro. This may not be the most efficient based on your needs, but it may also provide the flexibility. If you actually need an If/Then solution you are not limited to 7 If/Then combinations, but then you may really be after using 'Select Case' if you go the VBA route, again based on your needs. You can also use find/match.

Give us more of a hint on what you really need to do and the format of your data to be searched, found, matched, etc.

Perry
 
Upvote 0
I have the data in 4 columns going down in rows - but I figured out a solution to my problem - and that is to have an additional column (making that the if.. then.. else) that goes down vertically with the rows - and as soon as the value gets hit in one of the other 4 columns it will flag this additional vertical column for the rest of the column - and then give the value of that column at the top - but thanks for the help
 
Upvote 0

Forum statistics

Threads
1,224,984
Messages
6,182,136
Members
453,092
Latest member
dcasuga

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top