Printing Problems

How to Move Excel Custom Header Text Closer to the Right Edge

John WilsonJohn Wilson Oct 28, 2026 869 views

Question details

The user needs to position custom header text further to the right edge of the printed page, but standard alignment options are limited by margin settings.

How to Move Excel Custom Header Text Closer to the Right Edge
Product
Excel
Device & OS
not provided
Scenario
Formatting a spreadsheet for printing with specific right-aligned header text.
Observed behavior
The right-aligned header text stops before reaching the desired edge of the paper due to either worksheet margins or printer hardware limitations.
Before you start

Ensure you have selected the correct target printer in your print settings, as Excel calculates allowable printable areas and margins based on your active printer's specific driver.

Solution 1Recommended

Adjust Page Margins and Header Alignment Settings

Reduce the right page margin and ensure the header is configured to align with the document margins.

By default, Excel headers follow the overall page margins. Reducing the right margin provides more space for the header text to expand toward the edge.

1
Open Custom Margins

Go to the Page Layout tab on the ribbon, click on Margins, and select Custom Margins at the bottom of the dropdown menu.

2
Reduce the Right Margin

In the Margins tab of the Page Setup dialog, decrease the value in the 'Right' and 'Header' margin boxes to move the boundary closer to the edge.

3
Check Header Alignment

Switch to the Header/Footer tab in the same dialog box. Ensure that the 'Align with page margins' option is checked so the header follows your new right margin.

4
Apply Custom Header

Click 'Custom Header', ensure your text is entered in the Right section box, and click OK to save your changes.

Adjust Page Margins and Header Alignment Settings
Alignment Complete: By aligning the header with the page margins, your right-aligned text will stretch as far right as your document settings allow.
Effortless Spreadsheet Formatting

Easily Customize Headers and Margins with WPS Spreadsheet

WPS Office provides an intuitive Page Layout view, allowing you to seamlessly adjust headers, footers, and margins for perfect print results without the hassle.

  1. 1. Open Your File: Launch WPS Spreadsheet and open your document.
  2. 2. Insert Header: Navigate to the Insert tab and click on Header and Footer.
  3. 3. Add Right-Aligned Text: Enter your desired text directly into the right-aligned section of the header box.
  4. 4. Adjust Margins: Go to the Page Layout tab, click Margins, and customize the right margin to push the text directly to the edge.
Visual Page Setup dialog for precise header and footer placementFully compatible with Microsoft Excel (.xlsx and .xls) formatsDrag-and-drop margin adjustments in print previewLightweight, fast, and completely free to use
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel header cut off when printing?

The printer's hardware margins restrict printing too close to the paper's edge. Even if you set your Excel margins to zero, the text will be cut off unless your printer supports and has 'borderless printing' enabled in its driver properties.

How do I access the header and footer in Excel?

Go to the Insert tab and click 'Header & Footer'. This action switches your workbook to the Page Layout view, where you can directly click into the left, center, or right header sections at the top of the page.

What does 'Align with page margins' mean in Header/Footer settings?

This setting ensures your header and footer text lines up perfectly with the left and right margins of your document body. If you expand or shrink your document's right margin, the right-aligned header text will automatically follow suit.