Add Header Row in Excel: Freezing, Printing, Tables, Power Query

Download Article

The definitive guide to adding columns headers to your Excel spreadsheet

Download Article

This How.com.vn will show you how to add a header row in Excel. There are several ways that you can create headers in Excel, and they all serve slightly different purposes. You can freeze a row so that it always appears on the screen, even if the reader scrolls down the page. If you want the same header to appear across multiple pages, you can set specific rows and columns to print on each page. If your data is organized into a table, you can use headers to help filter the data. If you imported a dataset using Power Query, you can change the first row into column headers.

Things You Should Know

  • Freeze a row by going to View > Freeze Panes.
  • Print a row across multiple pages using Page Layout > Print Titles.
  • Create a table with headers with Insert > Table. Select My table has headers.
  • Add headers to a Power Query table: Query > Edit > Transform > Use First Row as Headers.
Method 1
Method 1 of 4:

Keeping the Header Row Visible

Download Article
  1. How.com.vn English: Step 1 Select a cell in the row you want to freeze.
    You can set Excel to freeze your header row so it's always visible, even as you scroll.
    • If your header row is in row 1, you don't have to click any cells. Just continue to the next step.
    • If your header row is down further, such as in row 2 or 3, click a cell below the header row.
      • For example, if the row that contains your column labels is row 5, you will need to click a cell in row 6.
  2. How.com.vn English: Step 2 Click the View tab.
    You'll see it at the top of the window.
    Advertisement
  3. How.com.vn English: Step 3 Click Freeze Panes.
    This menu is in the toolbar at the top of Excel. A list of freezing options will appear.
  4. How.com.vn English: Step 4 Select a Freeze Pane option.
    The option you select on this menu depends on whether your header row is in row 1 or in a different row:
    • If your header row is in row 1 (the first row on your sheet), select Freeze Top Row. This ensures that the top row of your sheet remains locked into position, even as you scroll through your data.
    • If your header row is in a different row, such as row 3, select Freeze Panes. This freezes the row above the cell you selected in Step 1.
      • For example, if you selected A6 in Step 1, selecting Freeze Panes will freeze row 5, making it your header row. This row will always stay visible as you scroll through your data.
    • The Freeze Panes option works as a toggle. That is, if you already have panes frozen, clicking the option again will unfreeze your current setup. Clicking it a second time will refreeze the panes in the new position.
  5. How.com.vn English: Step 5 Add emphasis to your header row (optional).
    Create a visual contrast for this row by centering the text in these cells, applying bold text, adding a background color, or drawing a border under the cells. this can help the reader take notice of the header when reading the data on the sheet.
  6. Advertisement
Method 2
Method 2 of 4:

Printing a Header Row Across Multiple Pages

Download Article
  1. How.com.vn English: Step 1 Click the Page Layout tab.
    If you have a large worksheet that spans multiple pages that you need to print, you can set a row or rows to print at the top of every page.
  2. How.com.vn English: Step 2 Click the Print Titles button.
    You'll find this in the Page Setup section.
  3. How.com.vn English: Step 3 Set your Print Area to the cells containing the data.
    Click the button next to the Print Area field and then drag the selection over the data you want to print. Don't include the column headers or row labels in this selection.
  4. Step 4 Click the button next to "Rows to repeat at top."
    This will allow you to select the row(s) that you want to treat as the constant header.
  5. How.com.vn English: Step 5 Select the row(s) that you want to turn into a header.
    The rows that you select will appear at the top of every printed page. This is great for keeping large spreadsheets readable across multiple pages.
  6. Step 6 Click the button next to "Columns to repeat at left."
    This will allow you to select columns that you want to keep constant on each page. These columns will act like the rows you selected in the previous step, and will appear on every printed page.
  7. How.com.vn English: Step 7 Set a header or footer (optional).
    You can include the company title or document title at the top, and insert page numbers at the bottom. This will help the reader get the pages organized. To set the header and footer:
    • Click the Header/Footer tab
    • Click the Header or Footer drop down menus to select a preset header.
    • Alternatively, click Custom Header or Custom Footer to create your own.
  8. How.com.vn English: Step 8 Print your sheet
    . You can send the spreadsheet to print now, and Excel will print the data that you set with the constant header and columns you chose in the Print Titles window.
    • Click Print to start the printing process.
    • Check the print preview in the preview section.
    • Click Print (the printer icon) to print the spreadsheet.
  9. Advertisement
Method 3
Method 3 of 4:

Creating a Header in a Table

Download Article
  1. How.com.vn English: Step 1 Select the data that you want to turn into a table.
    When you convert your data to a table, you can use the table to manipulate the data. One of the features of a table is the ability to set headers for the columns. Note that these are not the same as worksheet column headings or printed headers.
  2. How.com.vn English: Step 2 Click the Insert tab and click Table.
    Confirm that your selection is correct.
  3. Step 3 Check the "My table has headers" box and click OK.
    This will create a table from the selected data. The first row of your selection will automatically be converted into column headers.
    • If you don't select "My table has headers," a header row will be created using default names. You can edit these names by selecting the cell.
  4. How.com.vn English: Step 4 Enable or disable the header.
    This will show or hide the header. It won’t delete the header information, so you can turn it on and off as needed.[1]
    • Click the Design tab
    • Check or uncheck the "Header Row" box to toggle the header row on and off. You can find this option in the Table Style Options section of the Design tab.
    • Note that turning the header off will also remove any applied filters from the table.
  5. Advertisement
Method 4
Method 4 of 4:

Add and Rename Headers in Power Query

Download Article
  1. How.com.vn English: Step 1 Select a cell in your imported data.
    This will cause the “Table Design” and “Query” tabs to appear at the top of Excel. This method is used to add row headers to the dataset you imported using Get & Transform (Power Query). You’ll also be able to rename existing headers using this method.[2]
    • Note that this method requires the first row of your dataset to contain column header names.
  2. How.com.vn English: Step 2 Click Query.
    This is the rightmost tab at the top of Excel.
  3. How.com.vn English: Step 3 Click Edit in the Query tab.
    This is the icon with a spreadsheet and pencil. The Power Query Editor window will open.
  4. How.com.vn English: Step 4 Click Transform.
    This is a tab at the top of the Power Query Editor.
  5. How.com.vn English: Step 5 Make the first row of data the header.
    To do so:
    • Click Use First Row as Headers.
    • Select Use First Row as Headers in the drop down menu. This will make row 1 into the headers for the table.
  6. How.com.vn English: Step 6 Rename the headers.
    In the Power Query Editor, you can rename the column headers using these steps:
    • Double-click the column header name.
    • Type in a new name for the header.
    • Press Enter to confirm the name.
  7. How.com.vn English: Step 7 Click Close & Load in the Home tab of the editor.
    This will reload the imported table with the changes you made in the editor.
  8. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I get my headers to change the dates and days automatically?
    How.com.vn English: Community Answer
    Community Answer
    Use the function @Today. You'll find it near the top under the choice "Functions".
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Most errors that occur from using the Freeze Panes option are the result of selecting the header row instead of the row just beneath it. If you receive an unintended result, remove the "Freeze Panes" option, select 1 row lower and try again.
      • For some advanced Excel methods, check out How to Use Solver and How to Use VLOOKUP.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Kyle Smith
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Kyle Smith. Kyle Smith is a How.com.vn Technology Writer, learning and sharing information about the latest technology. He has presented his research at multiple engineering conferences and is the writer and editor of hundreds of online electronics repair guides. Kyle received a BS in Industrial Engineering from Cal Poly, San Luis Obispo. This article has been viewed 1,091,509 times.
      How helpful is this?
      Co-authors: 15
      Updated: March 23, 2024
      Views: 1,091,509
      Categories: Microsoft Excel
      Article SummaryX

      1. Click the View tab.
      2. Select the corner cell under the header row.
      3. Click Freeze Panes.
      4. Apply formatting to the header row.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 1,091,509 times.

      Reader Success Stories

      • How.com.vn English: Antoine Hajjar

        Antoine Hajjar

        Aug 14, 2016

        "It was a good and fast help, backed up with pictures. I liked that. I needed to know about lines as header. Thank..." more
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement