Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default If Statement Unlimited In Excel

I know that Excel states that you can only nest 7 If Statements. But I
had to make a formula that compared up to ten numbers.

After a few days of thinking I came up with this idea.

Where my formula was on the last (7th) of the IF STATEMENT, instead of
doing a calculation, I made it refer to another cell.

That particular cell then just continued my IF STATEMENTs until I had
all the calculations figured out.

By doing this you can actually have an unlimited amount of if
statement all rolled into one.

I hope this idea can help others out there. Just passing on a good
idea.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default If Statement Unlimited In Excel

More ideas he http://www.ozgrid.com/Excel/nested-function-limit.htm

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"SyntaxError" wrote:

I know that Excel states that you can only nest 7 If Statements. But I
had to make a formula that compared up to ten numbers.

After a few days of thinking I came up with this idea.

Where my formula was on the last (7th) of the IF STATEMENT, instead of
doing a calculation, I made it refer to another cell.

That particular cell then just continued my IF STATEMENTs until I had
all the calculations figured out.

By doing this you can actually have an unlimited amount of if
statement all rolled into one.

I hope this idea can help others out there. Just passing on a good
idea.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default If Statement Unlimited In Excel

Very interesting. Can you post an example??
--
Gary's Student
gsnu200706


"SyntaxError" wrote:

I know that Excel states that you can only nest 7 If Statements. But I
had to make a formula that compared up to ten numbers.

After a few days of thinking I came up with this idea.

Where my formula was on the last (7th) of the IF STATEMENT, instead of
doing a calculation, I made it refer to another cell.

That particular cell then just continued my IF STATEMENTs until I had
all the calculations figured out.

By doing this you can actually have an unlimited amount of if
statement all rolled into one.

I hope this idea can help others out there. Just passing on a good
idea.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default If Statement Unlimited In Excel

i was researching this problem yesterday and i came across this link, hope
this helps too..

http://j-walk.com/ss/excel/usertips/tip080.htm
_______________________
salah



"Gary''s Student" wrote:

Very interesting. Can you post an example??
--
Gary's Student
gsnu200706


"SyntaxError" wrote:

I know that Excel states that you can only nest 7 If Statements. But I
had to make a formula that compared up to ten numbers.

After a few days of thinking I came up with this idea.

Where my formula was on the last (7th) of the IF STATEMENT, instead of
doing a calculation, I made it refer to another cell.

That particular cell then just continued my IF STATEMENTs until I had
all the calculations figured out.

By doing this you can actually have an unlimited amount of if
statement all rolled into one.

I hope this idea can help others out there. Just passing on a good
idea.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default If Statement Unlimited In Excel

Here's an example:

I have a MK number that could be 0 thru 16.
I have a CK number that could be 0 thru 16.

Now I also had lookup tables that would look up a number by comparing
the MK with the CK number.

Lets say this is my formula for CELL A1:

IF (MK=0), VLOOKUP(CK,TABLE0),
IF (MK=1), VLOOKUP(CK,TABLE1),
IF (MK=2), VLOOKUP(CK,TABLE2),
IF (MK=3), VLOOKUP(CK,TABLE3),
IF (MK=4), VLOOKUP(CK,TABLE4),
IF (MK=5), VLOOKUP(CK,TABLE5),
IF (MK=6), VLOOKUP(CK,TABLE6),
ELSE (A2)

Now CELL A2 would continue my formula:

IF (MK=6), VLOOKUP(CK,TABLE7),
IF (MK=7), VLOOKUP(CK,TABLE8),
IF (MK=8), VLOOKUP(CK,TABLE9),
IF (MK=9), VLOOKUP(CK,TABLE10),
IF (MK=10), VLOOKUP(CK,TABLE11),
IF (MK=11), VLOOKUP(CK,TABLE12),
IF (MK=12), VLOOKUP(CK,TABLE13),
ELSE (A3)

CELL A3 would continue my formula again:
IF (MK=13), VLOOKUP(CK,TABLE14),
IF (MK=14), VLOOKUP(CK,TABLE15),
ELSE VLOOKUP(CK,TABLE16),

With this method you should have more than enough and could continue
to your heart's content. Hope this is helpful...

SYNTAX ERROR!


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 733
Default If Statement Unlimited In Excel

"SyntaxError" wrote...
Here's an example:

I have a MK number that could be 0 thru 16.
I have a CK number that could be 0 thru 16.

Now I also had lookup tables that would look up a number by
comparing the MK with the CK number.

Lets say this is my formula for CELL A1:

IF (MK=0), VLOOKUP(CK,TABLE0),
IF (MK=1), VLOOKUP(CK,TABLE1),
IF (MK=2), VLOOKUP(CK,TABLE2),
IF (MK=3), VLOOKUP(CK,TABLE3),
IF (MK=4), VLOOKUP(CK,TABLE4),
IF (MK=5), VLOOKUP(CK,TABLE5),
IF (MK=6), VLOOKUP(CK,TABLE6),
ELSE (A2)

Now CELL A2 would continue my formula:

IF (MK=6), VLOOKUP(CK,TABLE7),
IF (MK=7), VLOOKUP(CK,TABLE8),
IF (MK=8), VLOOKUP(CK,TABLE9),
IF (MK=9), VLOOKUP(CK,TABLE10),
IF (MK=10), VLOOKUP(CK,TABLE11),
IF (MK=11), VLOOKUP(CK,TABLE12),
IF (MK=12), VLOOKUP(CK,TABLE13),
ELSE (A3)

CELL A3 would continue my formula again:
IF (MK=13), VLOOKUP(CK,TABLE14),
IF (MK=14), VLOOKUP(CK,TABLE15),
ELSE VLOOKUP(CK,TABLE16),

With this method you should have more than enough and could
cntinue to your heart's content. Hope this is helpful...


If you could stand using volatile functions,



=IF((MK=INT(MK))*(MK=0)*(MK<=16),VLOOKUP(CK,INDIR ECT("TABLE"&MK),
....),"MK not in range")

Or if you want to limit your formulas to nonvolatile functions,

=IF((MK=INT(MK))*(MK=0)*(MK<=16),VLOOKUP(CK,CHOOS E(MK,TABLE0,
TABLE1,TABLE2,TABLE3,TABLE4,TABLE5,TABLE6,TABLE7,T ABLE8,TABLE9,
TABLE10,TABLE11,TABLE12,TABLE13,TABLE14,TABLE15,TA BLE16),...),
"MK not in range")

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default If Statement Unlimited In Excel

Well this program I made, I used the DATA VALIDATION to limit exactly
what I wanted the user the input. I made the list under DATA
VALIDATION. The other articles I've read that you guys suggested are
very interesting, and I have to study more. But the way I did it was
more practical in my situation, and could easily be debug any errors,
or if I had to recode my program.

THANKS FOR YOUR OTHER SUGGESTIONS....

Syntax Error!

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default If Statement Unlimited In Excel

Thanks for the example. An interesting alternative to the usual approaches
--
Gary's Student
gsnu200706


"SyntaxError" wrote:

Here's an example:

I have a MK number that could be 0 thru 16.
I have a CK number that could be 0 thru 16.

Now I also had lookup tables that would look up a number by comparing
the MK with the CK number.

Lets say this is my formula for CELL A1:

IF (MK=0), VLOOKUP(CK,TABLE0),
IF (MK=1), VLOOKUP(CK,TABLE1),
IF (MK=2), VLOOKUP(CK,TABLE2),
IF (MK=3), VLOOKUP(CK,TABLE3),
IF (MK=4), VLOOKUP(CK,TABLE4),
IF (MK=5), VLOOKUP(CK,TABLE5),
IF (MK=6), VLOOKUP(CK,TABLE6),
ELSE (A2)

Now CELL A2 would continue my formula:

IF (MK=6), VLOOKUP(CK,TABLE7),
IF (MK=7), VLOOKUP(CK,TABLE8),
IF (MK=8), VLOOKUP(CK,TABLE9),
IF (MK=9), VLOOKUP(CK,TABLE10),
IF (MK=10), VLOOKUP(CK,TABLE11),
IF (MK=11), VLOOKUP(CK,TABLE12),
IF (MK=12), VLOOKUP(CK,TABLE13),
ELSE (A3)

CELL A3 would continue my formula again:
IF (MK=13), VLOOKUP(CK,TABLE14),
IF (MK=14), VLOOKUP(CK,TABLE15),
ELSE VLOOKUP(CK,TABLE16),

With this method you should have more than enough and could continue
to your heart's content. Hope this is helpful...

SYNTAX ERROR!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
unlimited Moh New Users to Excel 1 September 25th 06 02:04 AM
Excel - should handle UNLIMITED records like QuatroPro! BobD Setting up and Configuration of Excel 2 March 9th 06 04:58 AM
EXCEL should let me establish unlimited numbers of columns. DAISY Excel Discussion (Misc queries) 8 February 15th 06 04:35 PM
Excel should have an unlimited number of columns available. jkp Excel Worksheet Functions 8 December 13th 05 06:04 PM
Where can I get UNLIMITED Excel stock qoutes? ZouBCivil Excel Discussion (Misc queries) 2 March 7th 05 04:42 AM


All times are GMT +1. The time now is 02:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"