Show a negative duration as text

Write -2.0625 days as -49:30 for a letter, instead of the #### Excel shows.

What you'll make

In Excel: A negative 90-minute difference becomes -1:30.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1IF(A8<0,"-","")A minus sign when the duration is below zero."-"
2ABS(A8)The duration without its minus sign.2.0625 (49:30)
3"[h]:mm"The pattern: all the hours, then minutes."[h]:mm"
4TEXT( … )Writes the duration in that pattern as text."49:30"

Excel counts time in days, so -2.0625 is minus 49 hours 30 minutes. The & puts the sign in front: -49:30.

=IF(A8<0,"-","")&TEXT(ABS(A8),"[h]:mm")

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own durations. Paste durations into the green column of the Template tab. The labels fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The labels are text, so they won't add up. Do any sums on the green column.

Microsoft's help: ABS function