Skip to main content

Format data as a table with a header row in Excel

Excel · Windows, Mac · Last updated

Part of training module 6: Accessible workbooks in Excel

A formatted Excel table with a header row tells screen readers which cells are column headings, so people can follow the data without losing their place.

Steps

Excel for Windows

  1. Click any cell inside your data. The data should have one row of column headings at the top, with no blank rows or columns inside it.
  2. Select the Insert tab, then select Table.
  3. Check that the range shown is correct. Tick My table has headers, then select OK.
  4. Select the table, then open the Table Design tab.
  5. In Table Style Options, make sure Header Row is ticked.
  6. Type a short, unique label in each header cell. Do not leave any header blank.

Excel for Mac

  1. Click any cell inside your data.
  2. Select Insert, then Table, and tick My table has headers before you confirm.
  3. Open the Table tab and check that Header Row is ticked.
  4. Make sure every header cell has a label.

Check it worked

  • Run the Accessibility Checker. It should not report missing table headers: see Check a workbook with the Accessibility Checker in Excel.
  • Click in the table. The Table Design tab (Windows) or Table tab (Mac) should appear.
  • Read down the first row. Every column should have its own distinct heading.

Common mistakes

  • Making data look like a table with borders and shading only. Excel does not treat it as a table, so assistive technology gets no header information.
  • Leaving a header cell empty, or giving two columns the same name.
  • Putting a title row above the headings inside the table range. Keep titles outside the table, for example in cell A1.
  • Using more than one row of headings. Keep to a single header row: see Decide when to use a table and how to keep it simple.

The same task in other applications

More for Excel