Convert dates with nonbreaking spaces

Turn date text with hidden spaces, like Nov 4, 2026 from a web page, into a real date.

What you'll make

In Excel: Nov[NBSP]4,[NBSP]2026 becomes November 4, 2026.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesFor row 8
1A8The date text. Its gaps are hidden, unbreakable spaces."Nov 4, 2026"
2UNICHAR(160)The nonbreaking space. It looks like a space." "
3" "An ordinary space." "
4SUBSTITUTE( … )Swaps every hidden space for an ordinary one."Nov 4, 2026"
5DATEVALUE( … )Reads the text and turns it into a real date.November 4, 2026

It works from the inside out: SUBSTITUTE fixes the spaces, then DATEVALUE reads the date.

=DATEVALUE(SUBSTITUTE(A8,UNICHAR(160)," "))

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. Paste date text like Nov 4, 2026 into the green column of the Template tab. The dates fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This fixes nonbreaking spaces only. If a row turns amber, it may hide a different odd character.

Microsoft's help: DATEVALUE function