nested if statements

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Nested IF Statements

Nested IF Statements

resolvedResolved · 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


 

Excel tip:

Removing the Ribbon from view in Excel 2010

At 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.

View all Excel hints and tips


Server loaded in 0.08 secs.