Return a short stored ID as text

Turn the number 123 into the text 123. Text like 000123 and empty rows stay as they are.

What you'll make

In Excel: 123 as a number becomes 123 as text.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8=""Checks whether the cell is empty.No, it has 123
2A8&""Adds nothing, which turns a number into text."123"
3IF( … )Leaves an empty cell blank, otherwise uses part 2."123"

Read it left to right. Text IDs pass through unchanged. The IDs here are made-up.

=IF(A8="","",A8&"")

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 IDs. Paste your IDs, numbers or text, into the green column of the Template tab. The text versions fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This adds no zeros. If an ID already lost its zeros as a number, check it against the source.

Microsoft's help: IF function