To remove an indent in an Excel cell, select the cell, then click the Decrease Indent button in the Alignment group on the Home tab; each click shifts the text left by one indent level until the indent is gone. If the Decrease Indent button is greyed out or does nothing, the text is probably not indented by formatting but by leading spaces, alignment settings, or a number format, and the sections below explain how to deal with each case.

Removing an indent is mostly cosmetic, but it matters: an indented cell can make a column look misaligned against the cells below it, break a clean-looking table, or make exported data carry invisible spacing. Indents in Excel are cell formatting, not characters, so they travel with the cell when you copy it and they persist until you clear them. If you paste the cell elsewhere, the indent goes with it. If you convert the sheet to CSV, the indent generally does not survive as characters, but spaces added by hand do. Knowing which of the two you are dealing with saves time.

What You'll Need

  • Microsoft Excel on Windows, Mac, the web, or mobile. The menu wording can differ slightly by version, platform and region.
  • The workbook containing the indented cell or cells, saved or open in Excel.
  • No special rights are needed to change alignment, though a protected sheet has to be unprotected first.

Step-by-Step

Method 1: Remove a formatting indent

  1. Open the workbook and click the sheet tab that contains the cell.
  2. Select the cell, or drag across a range of cells. To fix the whole sheet, click the small square at the top-left corner where the row and column headers meet, then press Ctrl+A, which selects every cell.
  3. On the Home tab, find the Alignment group. The two indent buttons look like arrows pushing lines of text left and right, with a small indentation bar beside them.
  4. Click Decrease Indent once for each level of indent. Most cells have only one level, so one click usually clears it. Keep clicking until the text sits flush against the left edge of the cell.
  5. If the button is greyed out, stop here: the cell has no formatting indent and you should read the next method.

Method 2: Clear all indentation through Format Cells

  1. Select the affected cells and press Ctrl+1 (Cmd+1 on a Mac) to open the Format Cells dialog.
  2. Click the Alignment tab.
  3. In the Indent spin box, set the value to 0. If the box is disabled, the Horizontal alignment is probably set to something that does not support indentation, such as Center; change it to Left (Indent) or General first.
  4. Click OK. This resets the indent for every selected cell at once, which is faster than clicking Decrease Indent repeatedly on a large block.

Method 3: Remove leading spaces hiding an indent

  1. Click the cell and look at the formula bar. If the text starts a space or two before the first visible character, the indent is spaces, not formatting.
  2. To strip spaces from one cell, click Home > Find & Select > Replace (Ctrl+H on Windows, Cmd+H on Mac). In Find what, type a single space; leave Replace with empty; click Replace All. This removes spaces throughout the cell, including between words, so it is best for single-word cells or test cells. For a full column, continue with the next step.
  3. For a safe clean-up on a large column, insert a helper column beside the data and use the formula =TRIM(A1) or =TRIM(A1), then copy the result and paste it back over the original using Paste Values so the formula becomes plain text. TRIM removes leading and trailing spaces and reduces runs of multiple interior spaces to one.

Method 4: Fix indented text in wrapped cells and mobile

  1. If text wraps onto several lines, an indent can look like extra empty space at the start of each line. Decrease Indent works on wrapped cells too, but check the Horizontal alignment is set to Left or General.
  2. On Excel for iPhone and Android, select the cell, open the Format menu from the toolbar, then the Alignment section if your version shows one. If the mobile version does not offer indent controls, note that indentation set on the desktop shows on mobile but cannot always be removed there; remove it on a computer instead.

Common Mistakes

  • Clicking Decrease Indent once and assuming it worked. Some cells carry more than one indent level. Check the start of the text against the cell edge.
  • Blaming formatting when the real cause is a number format. A custom number format that starts with spaces or underscores (for example a format beginning with "_-* ") produces padding that no indent button will remove. Open Format Cells > Number and check the format code, or set the cell to General to test. Custom number formats that add padding are relatively rare, but when a cell refuses to budge this is the place to look.
  • Using Replace All to strip spaces from a whole sheet. This destroys every space between words and can wreck names, addresses and serial numbers. Use TRIM in a helper column instead.
  • Forgetting that centered cells cannot be indented. The Indent box and buttons are disabled for Center and some other horizontal alignments, so the indent options look broken when they are simply unavailable.
  • Editing a protected sheet. Indent buttons are greyed out on a protected sheet with formatting locked. You need to unprotect it, which requires the password if one was set.
  • Copying the fixed cell over a formula. Pasting a plain-looking cell over a formula replaces the formula with a value. Use Paste Special > Formats when you only want to carry the alignment across.

Tips

  • Use the Format Painter to copy a clean alignment from one cell to others: select the clean cell, click Format Painter, then drag over the target cells.
  • Ctrl+1 opens Format Cells from anywhere in the sheet and is the quickest route when the ribbon buttons behave oddly.
  • If you want a visible, controllable indent for readability (for example under sub-headings), use the indent buttons rather than typing spaces, because indents do not leak into your data.
  • To prevent dead-space indents from creeping back, avoid pasting cells from other files with Ctrl+V; use Paste Special and choose the content you actually want.
  • For spreadsheet-wide clean-ups, delete any custom styles carrying an indent, or reset the Normal style's alignment.

Troubleshooting

The Decrease Indent button is greyed out. The cell likely has no formatting indent, is centered, or sits on a protected sheet. Check Horizontal alignment in Format Cells and unprotect the sheet if needed.

Text still looks indented after clicking Decrease Indent. Inspect the formula bar for leading spaces, then check the number format. Run TRIM in a helper column to isolate spaces from formatting.

Removing the indent moves the text to the center. The cell was set to Center. Set Horizontal to Left (Indent) or General in Format Cells.

The indent comes back after reopening the file. Something is copying it in, often a pasted table or a style applied by a repeated paste. Clear the paste, then reapply a plain style. If a shared workbook is being edited by others, check whether a co-author is re-pasting the data.

Cells are protected or the workbook is read-only. Unprotect the sheet in the Review tab (password required if one was set) or save a copy and edit that. Avoid deleting the sheet's protection on a template you do not own.

Frequently Asked Questions

Does Decrease Indent remove spaces in the text?

No. It only changes cell alignment formatting. Leading spaces must be removed manually or with TRIM.

Why is the Indent box disabled in Format Cells?

The Horizontal alignment is set to an option that does not support indentation, most often Center. Change it to Left (Indent) first.

Will removing the indent change the cell's value?

No. Indentation is formatting only. Formulas, numbers and text stay the same, which is why you can safely apply it across a whole range.

Can I remove indents from several cells at once?

Yes. Select the range and set Indent to 0 in Format Cells, or click Decrease Indent repeatedly with the range selected.

Does the indent show up when I export to CSV?

Formatting indents are not written to a CSV file. Typed spaces are, so clean those with TRIM before exporting.

How do I remove an indent on Excel for iPhone or Android?

Open the Format menu for the selected cell and look for an Alignment section. If indent controls are absent in your version, remove the indent on a computer, since indentation set there carries over.