Nested IF, simple for you but for me.....

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
731
Office Version
  1. 365
Platform
  1. Windows
=IF(F6="","",((B6*C6)+(D6*E6))/F6)

This is driving me crazy. I get #value! if B6 or C6 is blank.

I need the value of ((B6*C6)+(D6*E6))/F6 unless B6 OR C6 are blank. If they are, then I need just (D6*E6)/F6.

Nesting is my downfall.
 

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.
Hello, are B6 and C6 really empty, i.e. do they not e.g. contain spaces?
 
Upvote 0
Yes. There's a formula in those cells, too. IF blah, blah, blah THEN ""
 
Upvote 0
You're welcome. FYI N() just converts any Text Value which of course includes "" to 0 while leaving numbers as numbers.
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,609
Members
452,660
Latest member
Zatman

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