SUM based on values in four cells

pjzimm

New Member
Joined
Jul 19, 2007
Messages
2
I've searched in vain with no luck. Please point me to a similar post or give me some advice on this *easy* formula.

I need H60 = D40 if there are no values in D41, D42, or D43.
I need H60 = D41 if there are no values in D40, D42, or D43.
I need H60 = D42 if there are no values in D40, D41, or D43.
I need H60 = D43 if there are no values in D40, D41, or D42.

What is the formula? Thank you in advance!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Welcome to the Board!

Try this
Code:
=IF(AND(D41="",D42="",D43=""),D40,IF(AND(D40="",D42="",D43=""),D41,IF(AND(D40="",D41="",D43=""),D42,IF(AND(D40="",D41="",D42=""),D43,0))))

HTH
 
Upvote 0

Forum statistics

Threads
1,222,196
Messages
6,164,518
Members
451,900
Latest member
lamski

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