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

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | INT(A8)=INT(B8) | Checks if the start and end are on the same day. | Yes |
| 2 | TEXT(A8,"mmm d, yyyy h:mm AM/PM")&"–" | Writes the start date and time, then a dash. | "Nov 4, 2026 2:30 PM–" |
| 3 | TEXT(B8,"h:mm AM/PM") | Writes only the end time. | "3:15 PM" |
| 4 | TEXT(A8, … )&"–"&TEXT(B8, … ) | Writes both dates and times, used overnight. | Not used for row 8 |
| 5 | IF( … ) | 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.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- 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.
- 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
OTHER ROUTES YOU MIGHT LIKE

Treat an equal end time as the next day
11/4/2026 2:30:15 PM + 2:30:15 PM → 11/5/2026 2:30:15 PM
Get the template →
Validate 12-hour clock fields
2 + 30 + 15 + PM → 2:30:15 PM
Get the template →
Add a Z suffix only to UTC timestamps
11/4/2026 2:30:15 PM, UTC → 2026-11-04T14:30:15Z
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →