Nested IF?

Qazxswe

New Member
Joined
May 28, 2012
Messages
36
I have a series of prices as; D4 = Item A, D5 = Item B D6 = Item C

I have a IF statement in J15 which reads =IF(H15="YES",$D$4+D$6$,0) so adding Item A + Item C

In I15, if this contains a "Yes", I want the above statement in J15 to add together all three items (so D4+D5+D6)

What is the best way to do this? I am trying to do a nested IF but it stops after the initial statement so just adding items A + C
 
That still doesn't make it any clearer.

What is the correct result for "Yes" in both cells?

Sorry.

"Yes" in both cells should result in item A + B + C

"Yes" in H15 and <blank> in I15 should be A+C

<blank> in H15 and "Yes" in I15 should be item B

<blank> in both cells should be zero
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
In that case try

=IF(H15="Yes",D4+D6)+IF(I15="Yes",D5)

For future reference, it is better to use "" to indicate an empty cell, otherwise it looks like there is something missing from your description.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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