An apostrophe at the start of a cell in Excel is a text marker: Excel treats everything after it as text, hides the apostrophe from the cell display, and keeps it in the formula bar. That is why a ZIP code like 02134 or a part number like 007-B stays intact instead of dropping its leading zero. To show a real apostrophe in a cell, type two of them in a row (''Hello) or set the cell to Text format first. To get rid of one that is stuck, clear the cell's format, use Text to Columns or a simple Find and Replace, or retype the value — the apostrophe itself will not appear in the formula bar copy you paste elsewhere.

What You'll Need

  • Any current version of Excel for Windows, Mac, or the web, or Excel for iPhone or Android — the steps below are written for desktop Excel and note where the mobile app differs.
  • A workbook you can save, ideally a copy, since some fixes replace cell contents in place.
  • The data you want to keep as text, such as account numbers, phone numbers, dates typed as codes, or values with leading zeros.

Step-by-Step

Typing an apostrophe so Excel treats a value as text

  1. Click the cell and type a single straight apostrophe first: '02134.
  2. Press Enter. The cell shows 02134 with no visual change, but the value in the formula bar will read '02134. The leading zero now survives sorting, copying, and saving.
  3. Confirm the type by clicking the cell and looking at the alignment. Text is left-aligned by default while numbers sit right-aligned, so a left-aligned entry that looks like a number is usually being stored as text.
  4. Repeat this at the start of any value Excel would otherwise convert: long numbers over 15 digits (which lose precision), fractions, values with a leading zero, or entries with a leading plus or minus sign.

Showing an actual visible apostrophe in a cell

  1. Type two apostrophes and then your text: ''Hello.
  2. Press Enter. Excel uses the first apostrophe as the text marker and displays the second one, so the cell reads 'Hello.
  3. Alternatively, select the cell, open the Home tab's Number Format dropdown (usually labelled General), and choose Text. Then type 'Hello normally and the apostrophe is kept as a real character. Note that labels and menus can differ slightly by Excel version, device, and region.
  4. Use this when you need an apostrophe mid-string too — for example ''Don''t wait for text that needs a leading marker and an internal apostrophe.

Formatting whole columns as text before you paste data

  1. Select the column or range you are about to fill. Press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, choose Text, and click OK.
  2. Paste your data. Values such as 00123, 1-2, or +1 555 0100 will be stored exactly as typed without needing an apostrophe at all.
  3. For a single cell you can also type the apostrophe first, which is faster and does not depend on the cell being pre-formatted.

Removing apostrophes that are stuck in a cell

  1. Try the simplest fix first: select the cell, press Delete, set the format to General (Home → Number Format), then retype the value. The apostrophe marker disappears because the cell is no longer forced to text.
  2. For a whole column, select it, choose Data → Text to Columns, click Next twice, choose General as the column format, and click Finish. This re-parses every value and drops text markers.
  3. If the apostrophes were typed as visible characters (from the double-apostrophe method), use Home → Find & Select → Replace, put ' in Find what, leave Replace with blank, and choose Replace All. Work on a copy first, because this also removes apostrophes inside real text like names.
  4. To force text values back to numbers, multiply the range by 1 using Paste Special: type 1 in an empty cell, copy it, select the range, and use Home → Paste → Paste Special → Multiply.

Common Mistakes

The most common error is typing a curly or smart apostrophe (') from a phone keyboard or from Word. Excel only recognises the straight apostrophe (') as a text marker, so a curly one becomes a visible character and breaks sorting and lookups. On iPhone or Android, switch to the plain keyboard character before typing.

Another frequent slip is assuming the apostrophe will travel with copied data. If you copy a cell holding '02134 and paste it into Notepad or another app, the apostrophe is not included — it was never part of the stored value, only a marker. To carry the marker, use the double-apostrophe method or format as Text.

People also confuse the apostrophe marker with a formula prefix. If you start a cell with =, Excel expects a formula; starting with an apostrophe overrides that and shows the literal text. Typing '=A1+A2 displays the formula rather than calculating it, which is useful for documentation but confusing if you expected a result.

Finally, do not assume a text-stored number will add up. SUM ignores values stored as text, so a column of apostrophe-marked numbers returns zero or misses entries. Convert to numbers with Paste Special Multiply once you no longer need the leading zeros.

Tips

Use Cell Styles or a custom number format to enforce text entry on a column without typing apostrophes at all. In Format Cells, the number format @ means text and applies the same behaviour automatically.

If you paste from another system and values keep losing zeros, paste using Home → Paste → Paste Special → Text, or pre-format the destination as Text before pasting. This avoids the rework of adding apostrophes cell by cell.

For long numeric IDs (over 15 digits), the Text format is safer than the apostrophe alone because it prevents Excel from rounding the tail digits before you can stop it. Once a 16-digit number is entered as a number, the trailing digits are permanently replaced with zeros.

Keep a small test cell in your sheet with a known leading-zero value. When data behaves oddly after a paste, compare it against the test cell to see whether formatting was lost.

Troubleshooting

If the apostrophe still shows in the cell, check whether the cell is already formatted as Text and you typed an apostrophe on top — in Text format both characters display. Change the format to General and retype.

If SUM returns zero, the range is stored as text. Use the Multiply Paste Special trick or set the format to Number, then recheck the formula.

If Find & Replace refuses to find an apostrophe, make sure you typed the straight version, and check whether the cell is protected or the sheet is shared with tracked changes, which can limit replacing.

If a lookup such as VLOOKUP fails against what looks like a matching number, one side is text and the other is numeric. Force both to the same type with Text format or the Multiply trick before comparing.

Frequently Asked Questions

Why does Excel hide the apostrophe I typed?

Because a single leading apostrophe is a special code telling Excel to treat the entry as text. It is stored in the cell but not shown, so it appears only in the formula bar.

How do I display an apostrophe in front of text?

Type two apostrophes in a row, or format the cell as Text first and then type a single one.

Does the apostrophe affect calculations?

Yes. A cell marked as text is ignored by SUM and other numeric functions until it is converted back to a number.

Can I remove all leading apostrophes at once?

Yes, with Data → Text to Columns using the General format, which re-parses the range and drops the text markers.

Will the apostrophe survive copying to another program?

Usually not. The marker is not part of the value, so copying to Notepad or a web form pastes only the text after it.