Share via

While calculating difference between two time values in Excel, some cells display ######## instead of the expected result. Please advise on the cause of this issue and suggest a solution? Thank you.

Anonymous
2025-02-20T15:35:03+00:00

While calculating the difference in minutes between two-time values (Start Time and End Time) in Excel, some cells display ######## instead of the expected result. Could someone advise on the cause of this issue and suggest a solution? Thank you.

Microsoft 365 and Office | Excel | For home | MacOS

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

Answer accepted by question author

HansV 462.6K Reputation points
2025-02-20T15:43:50+00:00

In the cells in your screenshot, the time in column I is before the time in column F, so the difference is negative.

Excel cannot display negative time.

Of course, the reason for this is that F is before midnight and I is after midnight.

The simplest solution is to use the date+time columns:

=G134-C134

If you prefer to keep on using columns F and I:

=MOD(I134-F134, 1)

(If Excel displays the result as a number, simply format the cells with the column as time)

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2025-02-20T16:03:37+00:00

    Hi there...

    Thanks for the reply. You are right.

    Was this answer helpful?

    0 comments No comments