#1   Report Post  
Posted to microsoft.public.excel.misc
jgannon
 
Posts: n/a
Default Nested IF statement


Excel only allows 7 nested If statements, is there a way around this?


--
jgannon
------------------------------------------------------------------------
jgannon's Profile: http://www.excelforum.com/member.php...o&userid=29003
View this thread: http://www.excelforum.com/showthread...hreadid=487455

  #2   Report Post  
Posted to microsoft.public.excel.misc
FinRazel
 
Posts: n/a
Default Nested IF statement

Without more information, (Like exactly what are you trying to do that you
need more than seven nested if statements?) I can't help you. BUT you might
try spreading out your function over more than one column, such that the
output of one function gives an incomplete result, which is completed by the
formula next to it.
--
Anne Murray


"jgannon" wrote:


Excel only allows 7 nested If statements, is there a way around this?


--
jgannon
------------------------------------------------------------------------
jgannon's Profile: http://www.excelforum.com/member.php...o&userid=29003
View this thread: http://www.excelforum.com/showthread...hreadid=487455


  #3   Report Post  
Posted to microsoft.public.excel.misc
BenjieLop
 
Posts: n/a
Default Nested IF statement


jgannon Wrote:
Excel only allows 7 nested If statements, is there a way around this?


*VLOOKUP* is usually a good alternative (in most cases).

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=487455

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Nested IF statement


Depending on your situation, you may be able to use one of the more
typical "workarounds".....a lookup table.

Example:
If you want your formula to return a department name based on its
DeptID, as in ...
IF A1=101, Return "A/R"
IF A1=102, Return "Shipping"
IF A1=103, Return "Maintenance"
IF A1=104, Return "Finance"
IF A1=105, Return "Security"
IF A1=106, Return "Tax"
IF A1=107, Return "Systems"
IF A1=108, Return "Treasury"
IF A1=109, Return "Admin"

You'd create a list (probably on another worksheet, say Sheet2) like
this:

ROW____COL_A_________COL_B
1_______101___________A/R
2_______102___________Shipping
3_______103___________Maintenance
4_______104___________Finance
5_______105___________Security
6_______106___________Tax
7_______107___________Systems
8_______108___________Treasury
9_______109___________Admin

Now, on Sheet 1:
A1: 106
B1: =VLOOKUP(A1,Sheet2!A1:B9,2,0)
(returns the value that corresponds to DeptID 106--Tax)

Something you could use? Or is your situation more complicated?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=487455

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
Nested If statement rsbergeron Excel Worksheet Functions 1 June 30th 05 10:19 PM
Problem with nested IF_OR statement DOOGIE Excel Worksheet Functions 7 June 24th 05 03:27 AM
Nested If statement Jock W Excel Worksheet Functions 3 March 22nd 05 06:56 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Combining SUM Function with Nested If Statement Somecallmejosh Excel Discussion (Misc queries) 3 December 6th 04 04:25 PM


All times are GMT +1. The time now is 07:10 PM.

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

About Us

"It's about Microsoft Excel"