Number


Hey guys, So in this scenario if there's no hours worked how do I keep the cell "Blank"? because there's a zero, my total hours formula isn't working.


Would love to get some help on this.

Thanks in advance.

ta

MacBook Pro 13″, macOS 10.14

Posted on Oct 12, 2023 10:16 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 12, 2023 11:32 PM

You can do something like this:



In D2, filled down:


=IF(OR(ISBLANK(B2),ISBLANK(C2)),DURATION(0), C2−B2)


You can see a working example of this approach in column E of the 'Sign In ' table of the 'Employee Schedule' template at File > New in your menu.


Use ; instead of , in the formula if your regions uses , as the decimal formula.


SG

1 reply
Question marked as Top-ranking reply

Oct 12, 2023 11:32 PM in response to RKocha

You can do something like this:



In D2, filled down:


=IF(OR(ISBLANK(B2),ISBLANK(C2)),DURATION(0), C2−B2)


You can see a working example of this approach in column E of the 'Sign In ' table of the 'Employee Schedule' template at File > New in your menu.


Use ; instead of , in the formula if your regions uses , as the decimal formula.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Number

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.