Nesting IF function

Excel Neophyte

New Member
Joined
Mar 14, 2012
Messages
11
I am looking for a formula for Excel 2007. The formula I currently have is only partially working. Essentially I want the formula for cell Q6 to read: IF G10 is blank then add M6+G9, IF G9 is blank then add M6+G8, IF G8 is blank then add M6+G7, IF G7 is blank then add M6+G6.

=IF(G10="",M6+G9,IF(G9="",M6+G8,IF(G8="",M6+G7,IF(G7="",M6+G6,G10+M6))))


At this time if G10 is blank it works, however if G9, G8, or G7 is blank Q6 returns a #VALUE! because it is reading that part of the formula as the “if false” part.


I apologize that I haven’t added an example snapshot, but I haven’t had any luck being able to include one.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,912
Messages
6,175,341
Members
452,638
Latest member
Oluwabukunmi

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