Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default help with the "if" commando

hi here is my problem I need more than 7 "if" in a commando example:
=IF(AND(C3=1;C5=1);"1-7";IF(AND(C3=1;C5=2);"8-14";IF(AND(C3=1;C5=3);"15-21";IF(AND(C3=1;C5=4);"22-28";IF(AND(C3=2;C5=1);"29-35";IF(AND(C3=2;C5=2);"36-42";IF(AND(C3=2;C5=2);"43-49";"")))))))

I need more.... ;if(and C3=2;C5=3);"50-56";"" +++++
how do I do that???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default help with the "if" commando

Versions of Excel older than XL 07 have a limit of 7 nested functions. For
some ideas on how to circumvent this limitation see 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.


"fiur" wrote:

hi here is my problem I need more than 7 "if" in a commando example:
=IF(AND(C3=1;C5=1);"1-7";IF(AND(C3=1;C5=2);"8-14";IF(AND(C3=1;C5=3);"15-21";IF(AND(C3=1;C5=4);"22-28";IF(AND(C3=2;C5=1);"29-35";IF(AND(C3=2;C5=2);"36-42";IF(AND(C3=2;C5=2);"43-49";"")))))))

I need more.... ;if(and C3=2;C5=3);"50-56";"" +++++
how do I do that???

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default help with the "if" commando

You don't need 7 IFs. You don't even need one IF:

=CHOOSE(4*(C3-1)+C5,"1-7","8-14","15-21","22-28","29-35","36-42","43-49","50-56")

--
Gary's Student
gsnu200704


"fiur" wrote:

hi here is my problem I need more than 7 "if" in a commando example:
=IF(AND(C3=1;C5=1);"1-7";IF(AND(C3=1;C5=2);"8-14";IF(AND(C3=1;C5=3);"15-21";IF(AND(C3=1;C5=4);"22-28";IF(AND(C3=2;C5=1);"29-35";IF(AND(C3=2;C5=2);"36-42";IF(AND(C3=2;C5=2);"43-49";"")))))))

I need more.... ;if(and C3=2;C5=3);"50-56";"" +++++
how do I do that???

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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Nested "IF" Statement lajohn63 Excel Worksheet Functions 1 October 6th 06 10:56 AM
"If" formula help Rob Excel Discussion (Misc queries) 7 October 5th 06 06:34 PM
"IF" Statement Problem lajohn63 Excel Worksheet Functions 0 October 5th 06 11:53 AM
Help to understand "IF" code nascarjc New Users to Excel 3 January 31st 06 06:16 PM


All times are GMT +1. The time now is 09:57 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"