Nested IF statement, what am I doing wrong?

reneev

Board Regular
Joined
Apr 26, 2017
Messages
53
I have a formula that is currently working: =IF(H3<>"PD 1 HMS W/DIFFERENTIAL","",M3*1.1)

I need to add a second formula that does the same thing, but looks for "PD 2 HMS W/DIFFERENTIAL". I thought I knew how do do it, but keep getting an error that there are too many arguments for this function. What am I doing wrong?

=IF(H3<>"PD 1 HMS W/DIFFERENTIAL","",M3*1.1,IF(H3<>"PD 2 HMS W/DIFFERENTIAL","",M3*1.1))

Basically, I need the formula to calculate if either of those phrases are used.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
If the outcome in both cases is the same you can use;

=IF(AND(H3<>"PD 1 HMS W/DIFFERENTIAL",H3<>"PD 2 HMS W/DIFFERENTIAL"),"",M3*1.1)
 
Upvote 0
Hi Reneev,

If the outcome is same then @RossTattersall 's method is the best, but if the outcomes can be different then use the below formula:

Code:
=IF(H3<>"PD 1 HMS W/DIFFERENTIAL",M3*1.1,IF(H3<>"PD 2 HMS W/DIFFERENTIAL",M3*1.1,""))
 
Upvote 0
This worked! what is the significance to the "AND". I thought about that, but I'm not trying to get "if this AND this then do this" so I didn't try.
 
Upvote 0

Forum statistics

Threads
1,226,113
Messages
6,189,045
Members
453,521
Latest member
Chris_Hed

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