If then formula for a blank cell

AJSIV4

New Member
Joined
Jan 29, 2013
Messages
4
I have been looking for a formula that will produce a blank cell under certain circumstances. I have found some formulas for this, but not to the level of detail I need it. I've tried "ISBLANK, "SUMIF" and "IF" and I'm stuck.

I need D1 to produce a blank cell if A1 and B1 and C1 are blank. If there is at least one value in A1 or B1 or C1 then I want D1 to produce the sum of A1:C1.

Any help would be great. Thanks.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hello AJSIV4, welcome to the board.

try this

Code:
D1  =IF(AND(A1 = "", B1 = "", C1 = ""), "", SUM(A1:C1))
 
Upvote 0
I am still getting 0.00 even with all cells blank. Does it have to do with the cell being formatted as #.##? Here is the actual formula I'm using with the info you gave me above.

Cell H6 contains:
=IF(AND(A6="",B6="",C6="",D6="",E6="",F6="",G6="",),"",SUM(A6:E6))
 
Upvote 0
I am still getting 0.00 even with all cells blank. Does it have to do with the cell being formatted as #.##? Here is the actual formula I'm using with the info you gave me above.

Cell H6 contains:
=IF(AND(A6="",B6="",C6="",D6="",E6="",F6="",G6="",),"",SUM(A6:E6))

You have an extra comma - try deleting it.

Or give this a try:
=IF(COUNTA(A6:G6)=0,"",SUM(A6:E6))
 
Upvote 0
I am still getting 0.00 even with all cells blank. Does it have to do with the cell being formatted as #.##? Here is the actual formula I'm using with the info you gave me above.

Cell H6 contains:
=IF(AND(A6="",B6="",C6="",D6="",E6="",F6="",G6="",),"",SUM(A6:E6))

Also...

=IF(COUNT(A6:G6)=COLUMNS(A6:G6),SUM(A6:G6),"")
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,225
Members
448,877
Latest member
gb24

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