Zero result = Blank cell

Patchcord

Board Regular
Joined
Sep 30, 2003
Messages
73
I'm calculating time and need a zero result to produce a blank cell instead of zero.

Does anyone know how to achieve this?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

yeheya

Board Regular
Joined
May 20, 2004
Messages
162
Can you explain a bit your requirement with example?

Regards,
Yeheya
 

Patchcord

Board Regular
Joined
Sep 30, 2003
Messages
73
Yes, I'm just adding up hours worked ie:

=SUM(A1:A10)

If no hours are worked, the result is zero. I need the cell to be empty if no hours are worked.
 

yeheya

Board Regular
Joined
May 20, 2004
Messages
162
Put the formula like this:

=if(SUM(A1:A10)=0,"",SUM(A1:A10))

Regards,
Yeheya
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,003
Messages
5,834,828
Members
430,324
Latest member
bosphoruskid

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
Top