How to Add Indent in Excel: 3 Quick Ways

How-to basics · Updated November 26, 2026

Adding an indent in Excel shifts cell content to the right, making lists, subcategories, and hierarchical data easier to read. The quickest way is to select the cell(s) and press Alt+H, 6 (Windows) or Ctrl+Alt+Tab (Mac) to increase indent, or use the Increase Indent button on the Home tab. Below are the full methods, including a formula-based approach for dynamic indents.

What You’ll Need

  • A computer with Microsoft Excel (Microsoft 365, Excel 2021, 2019, or 2016; steps differ slightly on Mac and Excel for the web).
  • A worksheet with data you want to indent (text or numbers).
  • No special add-ins or settings required.

Step-by-Step

Method 1: Use the Ribbon Buttons (Easiest)

  1. Select the cell, range, or entire column/row where you want the indent.
  2. Go to the Home tab on the ribbon.
  3. In the Alignment group, look for the Increase Indent icon (an arrow pointing right with vertical lines) and the Decrease Indent icon (arrow pointing left).
  4. Click Increase Indent to move content to the right. Each click adds roughly the width of one space character (about 3 characters).
  5. To remove an indent, click Decrease Indent.

Mac difference: The buttons are in the same location on the Home tab, but the keyboard shortcut is Ctrl+Alt+Tab to increase and Ctrl+Alt+Shift+Tab to decrease.

Method 2: Keyboard Shortcuts (Fastest for Frequent Use)

  1. Select the cell(s) you want to indent.
  2. On Windows, press Alt+H, 6 (press Alt+H, then release, then press 6) to increase indent. Press Alt+H, 5 to decrease indent.
  3. On Mac, press Ctrl+Alt+Tab to increase and Ctrl+Alt+Shift+Tab to decrease.
  4. Repeat the shortcut to add multiple levels of indent.

Note: These shortcuts work in Excel for Microsoft 365 and Excel 2021/2019 on Windows. In Excel for the web, the keyboard shortcut is Alt+H, 6 as well (but you may need to use the ribbon if your browser doesn’t support it).

Method 3: Use the Format Cells Dialog (For Precise Indent Values)

  1. Select the cell(s).
  2. Right-click and choose Format Cells, or press Ctrl+1 (Windows) / Cmd+1 (Mac).
  3. Go to the Alignment tab.
  4. Under Text alignment, find the Horizontal drop-down. Choose Left (Indent) or Right (Indent) (or Distributed (Indent) for even spacing).
  5. In the Indent box (next to the Horizontal drop-down), enter a number from 0 to 250. This sets the indent in character widths (e.g., 1 = one space).
  6. Click OK.

This method is ideal when you need the same indent across many cells without clicking repeatedly.

Method 4: Indent Using a Formula (For Dynamic Indentation)

If you want to automatically indent based on another cell’s value (e.g., a category column), use the REPT function combined with & to add spaces before text.

Example layout: In column A, you have a list of items; in column B, you have a numeric level (0, 1, 2) indicating indent depth. In column C, you want the indented text.

  1. In cell C2, enter the formula: =REPT(" ", B2) & A2 (two spaces per level).
  2. Press Enter. For B2=0, C2 shows the item with no indent; for B2=1, it shows two spaces before the text; for B2=2, four spaces, etc.
  3. Drag the fill handle down to apply to other rows.

Result: If A2 is “Apples” and B2 is 1, C2 displays ” Apples” (two leading spaces). This is a text-based indent, not a cell format, so it won’t affect alignment settings.

Common Mistakes

  • Clicking the wrong button: The Increase Indent button is often confused with the Merge & Center button. Look for the arrow pointing right with lines.
  • Indenting numbers changes alignment: By default, numbers are right-aligned. Indenting a number moves it right, but it may look odd; consider changing horizontal alignment to Left (Indent) first.
  • Using spaces instead of indent: Typing spaces manually works visually but can cause alignment issues and is harder to remove. Use the indent feature instead.
  • Applying indent to merged cells: Indent works on merged cells, but the indent amount may appear larger because the cell is wider. Test to see if it looks right.
  • Forgetting to select the whole range: If you only select a few cells, the indent won’t apply to the rest. Use Ctrl+A to select all data if needed.

Tips

  • Use the Format Painter: After setting an indent on one cell, double-click the Format Painter icon (Home tab) and click other cells to copy the indent format.
  • Create a custom style: Go to Home > Cell Styles > New Cell Style, set the indent, and name it (e.g., “Indent Level 1”). Then apply it quickly from the Styles gallery.
  • Keyboard-only workflow: Use Alt+H, 6 repeatedly to increase indent without touching the mouse.
  • Indent in Excel for the web: The Increase Indent button is available on the Home tab, but the keyboard shortcut may not work in all browsers. Use the button instead.
  • Combine with borders: Indenting text in a column with borders can make a table look like a tree structure. Add left borders to create a visual hierarchy.

Troubleshooting

  • Indent button is grayed out: This happens if the worksheet is protected or the cells are locked. Go to Review > Unprotect Sheet (enter password if needed).
  • Indent doesn’t show for wrapped text: If text is wrapped, the indent only applies to the first line. To indent all lines, use the Format Cells dialog and set Horizontal to Distributed (Indent).
  • Indent not visible because column is too narrow: The indent pushes text to the right, but if the column is too narrow, text may be cut off. Widen the column or wrap text.
  • Keyboard shortcut not working: On some non-US keyboard layouts, Alt+H, 6 may not work. Use the ribbon button or the Format Cells dialog instead.
  • Indent applied to entire column by mistake: If you selected a whole column before clicking Increase Indent, it applies to all cells. Use Undo (Ctrl+Z) and reselect the correct range.

Frequently Asked Questions

Can I indent in Excel on a Mac the same way as Windows?

Yes, but the keyboard shortcuts differ. On Mac, use Ctrl+Alt+Tab to increase indent and Ctrl+Alt+Shift+Tab to decrease. The ribbon buttons are identical.

How do I remove an indent in Excel?

Select the indented cells and click the Decrease Indent button (Home tab) or press Alt+H, 5 (Windows) / Ctrl+Alt+Shift+Tab (Mac). Alternatively, open Format Cells and set the Indent value to 0.

Does indenting affect cell value or formulas?

No, indenting is purely a visual formatting change. The underlying value in the cell remains unchanged, and formulas referencing the cell see the original value.

Can I indent multiple levels at once?

Yes, select the cells and click Increase Indent multiple times, or use the Format Cells dialog to set a specific indent number (e.g., 3) for a deeper indent in one step.

Why does my indent not show when I print?

Indent is a cell format, so it should print. If it doesn’t, check that the column width is sufficient and that the print area includes the cells. Also, ensure the alignment is not overridden by a conditional formatting rule.

Is there a way to indent based on cell content automatically?

Yes, use a formula with REPT to add spaces based on a level number, as shown in Method 4. This is dynamic and updates if the level changes.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.