Share via

Unexplained error in Excel with calculation

Anonymous
2024-07-04T04:37:44+00:00

I have the following formula that does not give me a "Zero" value even though the calculation should equal that.

The Formula is: =IF(J11<=0,"",(W11-V11))

The Cell W11 has the following formula in it: =IF(J11<=0,"",(F11-C11)+(J11-G11)+(G11-F11)) these values equal to 8.00.

The cell V11 has the following entry 8:30:00 AM.

The formulas in W11 are times during the day like: Clock in, morning break, (15 minutes) lunch break (30 minutes) and afternoon break (15 minutes).

The value shown comes out to 0.02. Why?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. riny 20,870 Reputation points Volunteer Moderator
    2024-07-04T06:39:20+00:00

    I assume you meant to write that W11 contains 08:00:00. That is, the time value for 8 hours. If than V11 contains 08:30:30 (the time value for 8 and a half hours) the difference between the two is 30 minutes. Half an hour or 30 minutes has a decimal value of 0.5/24 or 30/1440 = 0.02083333. What's not correct here?

    Was this answer helpful?

    0 comments No comments