What a header row does and how to set one up

A header row is the first row of your spreadsheet where you name each column — things like "Date", "Customer Name", "Amount Paid". Once you create one, you can tell Excel to keep that row visible at the top of the screen even when you scroll down through hundreds of rows of data. This saves you from constantly scrolling back up to remember what each column contains.

To create a header row, you simply type the column names into the first row of your spreadsheet. Then you use Excel's "Freeze Panes" feature to lock that row in place. The process takes about 30 seconds and works the same way in Excel on Windows, Mac, and the web version.

Key Takeaways

  • Type your column names into row 1 — these become your headers and describe what data goes in each column below.
  • Click any cell in row 2 (the row directly below your headers) before freezing, so Excel knows to keep row 1 visible.
  • On Windows or Mac, go to the View tab, click Freeze Panes, and select "Freeze Panes" from the menu.
  • On Excel online, use View > Freeze Panes > Freeze First Row for a quick setup, or Freeze Panes to lock multiple rows.

Creating headers in the first row

Click on cell A1 (the top-left cell) and type the name of the first column. Press Tab to move to B1 and type the next header. Keep pressing Tab and typing until you have named all your columns. You can use any text you want — "Name", "Email", "Phone Number", "Invoice Date", whatever describes the data below.

Make your headers clear and specific. "Date" is better than "D". "Customer Email" is better than "Email" if you also have a "Customer Phone" column. The clearer your headers, the easier it is to understand your data later.

Freezing the header row on Windows or Mac

Click on any cell in row 2 — the row directly below your headers. It does not matter which column; just make sure you are in row 2. This tells Excel that everything above this row (in this case, row 1) should stay frozen at the top.

Go to the View tab at the top of the ribbon. Look for the Freeze Panes button. Click it and select "Freeze Panes" from the dropdown menu. Your header row is now locked in place. When you scroll down, row 1 will stay at the top of the screen.

To unfreeze later, go back to View > Freeze Panes and click "Unfreeze Panes".

Freezing the header row on Excel online

Excel online (the version you use in a web browser) has the same feature but a slightly different menu. Click on any cell in row 2, then go to the View tab. Click Freeze Panes and choose "Freeze First Row". This locks row 1 in place.

If you want to freeze more than one row — for example, if you have both a header row and a subheader row — click on the first row below the rows you want to freeze, then choose "Freeze Panes" instead of "Freeze First Row".

Formatting headers so they stand out

Headers are easier to spot when they look different from the data below. Select the entire first row by clicking the row number "1" on the left side. Then make the text bold, add a background color, or both. On Windows and Mac, use the Home tab. On Excel online, use the Home menu.

A common choice is bold text with a light gray or light blue background. This makes headers visually distinct without being distracting. You can also increase the font size or change the font color, but bold and a background color are usually enough.

When you have multiple header rows

Some spreadsheets have more than one header row. For example, you might have a main category in row 1 ("Sales Data") and specific column names in row 2 ("Date", "Amount", "Region"). To freeze both rows, click on any cell in row 3, then go to View > Freeze Panes and select "Freeze Panes". Both rows 1 and 2 will now stay at the top when you scroll.

The rule is always the same: click in the first row you want to scroll, then freeze. Everything above that row stays locked.

Troubleshooting frozen headers

If your headers disappear when you scroll, you probably did not click in row 2 before freezing. Unfreeze (View > Freeze Panes > Unfreeze Panes), click in row 2, and freeze again.

If you freeze the wrong rows, unfreeze and start over. There is no penalty for unfreezing and refreezing — you can do it as many times as you need. If you accidentally froze a column instead of a row, unfreeze and make sure you clicked in a cell in row 2, not in column B or beyond.

Frequently Asked Questions

Can I freeze both a header row and a header column at the same time?

Yes. Click on the cell that is one row below and one column to the right of the rows and columns you want to freeze — for example, cell B2 if you want to freeze row 1 and column A. Then go to View > Freeze Panes > Freeze Panes. Both will lock in place.

Do frozen headers print on every page?

Frozen headers stay visible on your screen but do not automatically print on every page. To make headers print on every page, go to Page Layout (Windows/Mac) or Layout (online), find Print Titles, and select the rows you want to repeat. This is a separate setting from freezing.

What if I want to hide the header row but keep the data?

Right-click on row 1 and select "Hide". The row is still there — you just cannot see it. To unhide, select rows above and below the hidden row, right-click, and choose "Unhide". Hiding is different from deleting; the data stays in the file.

Can I freeze headers in a shared Excel file?

Yes. Freezing is a view setting that applies only to your screen, not to the file itself. Other people can freeze or unfreeze their own view without affecting yours. Each person sees the frozen headers on their own computer.