You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Number

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