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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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