Keep the street from a health address
Turn 12 Oak St&Oak St&12 into 12 Oak St in HL7 exports.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8&"&" | Adds one & at the end, so there is always one. | "12 Oak St&…&12&" |
| 2 | "&" | The mark between the parts. | "&" |
| 3 | TEXTBEFORE( … ) | Keeps the text before the first &. | "12 Oak St" |
The added & means a part with no & still comes back whole. An empty first part stays blank.
=TEXTBEFORE(A8&"&","&")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 addresses. Paste each street address part into the green column of the Template tab. The street lines fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Paste only the street part, not the whole address. Codes like \T\ stay as they are.
Microsoft's help: TEXTBEFORE function
OTHER ROUTES YOU MIGHT LIKE

Build a U.S. city-state-ZIP line
Boston + MA + 02108 → BOSTON MA 02108
Get the template →
Keep a unit on the street delivery line
12 OAK ST + APT 5 → 12 OAK ST APT 5
Get the template →
Write an address as a single sentence
Street, city, state, ZIP → 12 OAK ST, BOSTON, MA 02108
Get the template →
Put the street back in an Address Block
Ava Reed, Boston → Ava Reed, 12 Main St, Boston
Take this route →