Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016
  1. On the Insert menu, click Header and Footer.

  2. In the Header or Footer sections, click in the Left, Center, or Right sections, depending on where you want the date or time to appear.

  3. From the Header & Footer Ribbon menu, click Insert Date or Insert Time. You can also insert the Page Number, Number of Pages, File Path, File Name and Sheet Name.

  4. If you want, do one or more of the following:

    To start a new line, press ENTER .

    To delete a date or time from a header or footer, select &[Date] or &[Time], and then press DELETE .

  5. Click OK. The Page Setup dialog box shows a preview of your header or footer.

  1. On the Insert menu, click Header and Footer.

  2. In the Header or Footer sections, click in the Left, Center, or Right sections, depending on where you want the date or time to appear.

  3. From the Header & Footer Ribbon menu, click Insert Date or Insert Time. You can also insert the Page Number, Number of Pages, File Path, File Name and Sheet Name.

  4. If you want, do one or more of the following:

    To start a new line, press ENTER .

    To delete a date or time from a header or footer, select &[Date] or &[Time], and then press DELETE .

  5. Click OK. The Page Setup dialog box shows a preview of your header or footer.

This feature is not available in Excel for the web.

If you have the Excel desktop application, you can use the Open in Excel button to open the workbook and insert the date in a header.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.