98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Nested IF Statements
Nested IF Statements
Resolved · High Priority · Version 2003
Angela has attended:
Excel VBA Intro Intermediate course
Nested IF Statements
I want to write a nested IF statement which gives an answer based on the 2 options.
For Example:
=IF(Inputs!F7=0,"n/a",Inputs!F7)
I want this to read if either Inputs! F7 or Inputs!F8 is = 0 then output should be 'N/a otherwise the value of either Inputs!F7 or Inputs!F8 should be the output.
thanks!!
RE: Nested IF Statements
Hi Angela
The nested IF statement you require needs an OR function to work.
The statement below checks if either of the Input cells = 0.and if either is 0 then it outputs "N/A", otherwise it outputs the larger of the 2 numbers.
=IF(OR(Inputs!F7 =0, Inputs!F8 =0),"N/A",IF(Inputs!F7 > Inputs!F8, Inputs!F7, Inputs!F8))
Just copy the above statement into the output cell.
Regards
Carlos
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Removing the Ribbon from view in Excel 2010At times when you want to view the whole spreadsheet, try double clicking on the ''Home'' tab on the ribbon which will hide the ribbon from view. |