Excel adds an apostrophe before text to force it to be treated as plain text, even if it looks like a number or date. This is often unintentional and can disrupt formulas, sorting, or data imports. The apostrophe is invisible in the cell but visible in the formula bar. To fix this, you need to identify why Excel is auto-formatting your input and change the cell format or data entry method. No add-ins or third-party tools are required—this is a built-in Excel behavior you can correct using native settings.
What You'll Need
- Microsoft Excel (2010 or later, Windows or Mac)
- A spreadsheet with cells showing leading apostrophes
- Access to the Format Cells dialog and Data tab
Step-by-Step
- Open your Excel file and locate the cells with leading apostrophes. Click on one such cell and look at the formula bar—confirm the apostrophe appears there but not in the cell display.
- Select all affected cells. To select multiple non-adjacent cells, hold Ctrl (Windows) or Command (Mac) while clicking. To select a range, click and drag or use Ctrl+A to select the entire sheet if needed.
- Right-click any selected cell and choose Format Cells from the context menu. Alternatively, go to the Home tab and click the small arrow in the bottom-right corner of the Number group.
- In the Format Cells dialog, under the Number tab, select General from the Category list. Avoid Number, Date, or Text—General is the default and allows Excel to interpret content naturally.
- Click OK. The apostrophes will disappear from the formula bar, and Excel will now treat the content as its natural type (e.g., numbers as numbers, dates as dates).
- If the data still appears as text after changing the format, select the cells again, then go to the Data tab and click Text to Columns.
- In the wizard, click Next twice without changing any options. On the third screen, under Column data format, select General, then click Finish. This forces Excel to re-parse the content and remove the apostrophe override.
- Verify results by checking the formula bar again—no apostrophes should appear. Test a formula like =SUM(A1:A10) to confirm Excel now recognizes the values as numbers.
Common Mistakes
- Changing the cell format to Text instead of General—this prevents Excel from interpreting numbers correctly, and apostrophes may reappear if you paste new data.
- Manually deleting apostrophes one by one—this is time-consuming and doesn’t fix the root cause; Excel will keep adding them if the source data or paste method triggers the behavior.
- Pasting data from web pages or PDFs without using Paste Special > Values—this often brings hidden formatting that forces text mode.
- Using Text to Columns but leaving the format as Text instead of General—this locks the data as text permanently.
- Assuming apostrophes are caused by a bug—this is usually a user-triggered behavior from prior formatting or paste operations, not a software error.
Tips
- When importing data from CSV or other sources, use the Get Data feature (Data tab > From Text/CSV) instead of double-clicking the file. This opens the Import Wizard where you can set column data types before loading.
- If you frequently paste numbers from external sources, always use Ctrl+Alt+V (Windows) or Cmd+Option+V (Mac) to open Paste Special, then choose Values to avoid pasting formatting.
- Use conditional formatting to highlight cells that are formatted as text—this helps you spot issues before they break formulas. Select your range, go to Home > Conditional Formatting > New Rule > Use a formula, and enter =ISTEXT(A1) (adjust cell reference), then apply a red fill.
- Before entering data like zip codes or product codes that start with zeros, type an apostrophe intentionally only if you want the leading zero preserved. Otherwise, set the column to Text format before typing.
- For consistent data entry, create a template with pre-set column formats (General for numbers, Text for IDs) and save it as an .xltx file for reuse.
Troubleshooting
If the apostrophes remain after following the steps above:
- Check for hidden characters: Select the cell, press F2 to enter edit mode, then use the arrow keys to move through each character. If you see an apostrophe, delete it manually and press Enter. If you can't see it but suspect one, copy the cell content and paste it into Notepad—any invisible characters will be stripped.
- Ensure the cells aren’t part of a table. If they are, convert the table to a range: click anywhere in the table, go to Table Design (or Table Tools > Design), and uncheck Table. Tables sometimes enforce text formatting on certain columns.
- Clear all formatting: Select the cells, go to Home > Clear > Clear Formats. This removes any lingering custom formatting that might be forcing text mode.
- Check if the data was imported from another program. If so, re-import using Data > From Text/CSV and explicitly set each column to General during the import wizard.
- If you’re using Excel Online, some formatting behaviors differ. Switch to the desktop app to use the full Format Cells and Text to Columns tools.
- If none of this works, copy the entire column, paste it into a new blank worksheet as values, then reapply the General format. Sometimes the original sheet’s structure carries hidden formatting.
Frequently Asked Questions
Why does Excel add an apostrophe automatically?
Excel adds an apostrophe when it detects input that looks like a number or date but is pasted or entered in a format it can’t recognize—often due to leading zeros, commas, or formatting from external sources. The apostrophe forces Excel to treat it as text to avoid errors.
Can I turn off the apostrophe feature in Excel?
No, Excel doesn’t have a setting to disable apostrophe insertion because it’s not a feature—it’s a formatting behavior triggered by data type conflicts. You fix it by correcting the cell format or data entry method.
Does the apostrophe affect calculations?
Yes. Any cell with a leading apostrophe is treated as text, so functions like SUM, AVERAGE, or COUNT will ignore it. Even if the cell displays a number, Excel won’t include it in calculations.
Why do apostrophes reappear after I delete them?
They reappear because the cell is still formatted as Text, or the source data you’re copying or pasting includes text formatting. Change the format to General and use Paste Special > Values to prevent recurrence.
Do apostrophes show up when I print the spreadsheet?
No. The apostrophe is only visible in the formula bar and is purely a formatting marker. Printed output shows only the visible content, so numbers and text appear normally.
Can I use Find and Replace to remove all apostrophes?
Yes, but only if the apostrophe is the first character. Press Ctrl+H, type ' in Find what, leave Replace with blank, then click Replace All. This works only if the apostrophe is at the start of the cell and not part of the actual data (e.g., in names like O’Connor).