Write an MBI like 2AC4-DE5-FG67

Turn 2AC4DE5FG67 into 2AC4-DE5-FG67, the way a Medicare card shows it.

What you'll make

In Excel: 2AC4DE5FG67 becomes 2AC4-DE5-FG67.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1LEFT(A8,4)Takes the first four characters."2AC4"
2&"-"&Adds a dash."2AC4-"
3MID(A8,5,3)Takes characters 5 to 7."2AC4-DE5"
4&"-"&Adds a second dash."2AC4-DE5-"
5RIGHT(A8,4)Takes the last four characters."2AC4-DE5-FG67"

Read it left to right. The MBIs here are made-up.

=LEFT(A8,4)&"-"&MID(A8,5,3)&"-"&RIGHT(A8,4)

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 MBIs. Paste 11-character MBIs, already checked, into the green column of the Template tab. The MBIs with dashes 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 dashes only for letters and screens. Files you send still need the MBI without dashes.

Microsoft's help: MID function