Read the street from a grid address

Turn 820 W 400 N into 400, leaving the house number and directions out.

What you'll make

In Excel: 820 W 400 N becomes 400.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1LEN(A8)-LEN( … )<>3Checks the address doesn't have exactly three spaces.FALSE
2"Review grid address"What the cell says when it isn't four parts.Not used for row 8
3TEXTAFTER(A8," ",2)Keeps what comes after the second space."400 N"
4TEXTBEFORE( … ," ")Stops at the next space."400"
5IF( … )Says Review unless the address has four parts."400"

Parts 3 and 4 work from the inside out.

=IF(LEN(A8)-LEN(SUBSTITUTE(A8," ",""))<>3,"Review grid address",TEXTBEFORE(TEXTAFTER(A8," ",2)," "))

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 addresses. Paste grid addresses into the green column of the Template tab. The numbered streets fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Use this only for grid addresses like 820 W 400 N. Check any Review rows by hand.

Microsoft's help: TEXTAFTER function