# Zero result = Blank cell

#### Patchcord

##### Board Regular
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Can you explain a bit your requirement with example?

Regards,
Yeheya

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.

Put the formula like this:

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

Regards,
Yeheya

Hi,

You could custom format cell as e.g.

[h]:mm;;

That's great, thank you very much!

Replies
3
Views
732
Replies
3
Views
173
Replies
4
Views
405
Replies
4
Views
206
Replies
8
Views
155

1,203,605
Messages
6,056,269
Members
444,853
Latest member
sam69

### 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.

### Which adblocker are you using?

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

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