Nesting IF Statements

lyonstl03

New Member
Joined
Jun 12, 2020
Messages
13
Office Version
  1. 365
  2. 2016
  3. 2010
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
I'm trying to get a nested IF function to work, but it's saying I have too many arguments.
H I
mrexcelphoto.PNG


=IFERROR(SUM(F46/E46), "N/A") ----- This is my Formula in H
=IF(H48<0.95, "FAIL", "PASS") ------ This is my Formula in I

Why does =IF(H48<0.95, "FAIL", "PASS",IF(H48="N/A", "N/A", "N/A")) not work?

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try

=IF(H48="N/A", "N/A", IF(H48<0.95, "FAIL", "PASS"))

Or

= IF(H48<0.95, "FAIL",IF(H48="N/A", "N/A", "PASS"))
 
Upvote 0
You're welcome.

Yours would not work because the 1st IF statement ended here "=IF(H48<0.95, "FAIL", "PASS"here,IF(H48="N/A", "N/A", "N/A"))"
so the 2nd IF was giving the "Too many arguments" error.
 
Upvote 0
Similar =IF question -

=IF(AND(H3>0.9,M3>0.9),"PASS", "FAIL",IF(M3="N/A", "N/A", "")) - This is my feeble attempt.

If these cells are over 90% then they pass, but I have an =IFERROR function setup to return "N/A" if there is no document that needs a grade. How can I get the PASS or FAIL to have a third IF that if the cell equals "N/A" then the output is N/A?
 
Upvote 0
How about
=if(M3="N/A","N/A",if(and(H3>0.9,M3>0.9),"Pass","Fail"))
 
Upvote 0
I swear that I tried that same thing. That works perfectly and it actually helped be get exactly what I needed which was
=IF(AND(M2="N/A",H2="N/A"),"N/A",IF(AND(H2>0.9,M2>0.9),"Pass","Fail"))
I need both columns to show N/A for there be to no overall average.
Thanks again!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top