#1   Report Post  
Mindie
 
Posts: n/a
Default Nested Functions

I have a cell that I am trying to combine 3 different cells into. I need to
do calculations on all of these individual cells before displaying them into
the new cell. I am trying to figure out how to use nested if statements in
order to do this. I am originally an RPG 400 programmer and I have found
that you cannot do If Else statements. Is there another way to do IF ELSE
statements in excel?
  #2   Report Post  
Oliver Ferns via OfficeKB.com
 
Posts: n/a
Default

Hi,
the syntax for nested If statements in Excel is as follows..

Single IF Statement...
=If(Cond1,Value if True,Value if False)

Nested IF Statement
=If(Cond1,True,If(Cond2,True,IF(Cond3,True,False)) )

where the 2nd IF statement is evaluated when Cond1 is false...
It's worth noting that 2nd IF (or any following) will not be evaluated if
the first condition is TRUE. This is different from VB's IIF statement.

You can use upto 7 nested IF statements in a formula.


Hth,
Oli

--
Message posted via http://www.officekb.com
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
how do I use multiple nested functions? TeeJay Excel Worksheet Functions 3 February 20th 05 05:09 PM
ENTER EXCEL FORMULA WITH MORE THAN 7 NESTED FUNCTIONS Linda Bolton Excel Worksheet Functions 2 January 14th 05 11:58 AM
Data calculations require more than 7 nested functions F6Hawk Excel Worksheet Functions 4 November 9th 04 06:47 AM
Too many nested functions F6Hawk Excel Worksheet Functions 4 November 9th 04 04:38 AM
Data calculations require more than 7 nested functions F6Hawk Excel Worksheet Functions 0 November 8th 04 04:18 PM


All times are GMT +1. The time now is 08:14 AM.

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"