Write appointment ranges with one date

Turn a same-day start and end into Nov 4, 2026 2:30 PM–3:15 PM. Overnight shows both.

What you'll make

In Excel: Same-day start and end becomes Nov 4, 2026 2:30 PM–3:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1INT(A8)=INT(B8)Checks if the start and end are on the same day.Yes
2TEXT(A8,"mmm d, yyyy h:mm AM/PM")&"–"Writes the start date and time, then a dash."Nov 4, 2026 2:30 PM–"
3TEXT(B8,"h:mm AM/PM")Writes only the end time."3:15 PM"
4TEXT(A8, … )&"–"&TEXT(B8, … )Writes both dates and times, used overnight.Not used for row 8
5IF( … )Uses parts 2 and 3 if part 1 says yes, otherwise part 4."Nov 4, 2026 2:30 PM–3:15 PM"

Read it left to right. Part 4 is the whole overnight version, both dates written out.

=IF(INT(A8)=INT(B8),TEXT(A8,"mmm d, yyyy h:mm AM/PM")&"–"&TEXT(B8,"h:mm AM/PM"),TEXT(A8,"mmm d, yyyy h:mm AM/PM")&"–"&TEXT(B8,"mmm d, yyyy h:mm AM/PM"))

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 dates and times. Paste start and end dates with times into the green columns of the Template tab. The appointments fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Use the same time zone for both cells, and put the earlier one in Start.

Microsoft's help: TEXT function