How to Move Excel Forecast Values When Monthly Date Headers Shift
Question details
The user needs manually entered cash-forecast values to automatically shift across columns when the corresponding monthly date header moves.

- Product
- Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Managing a rolling cash-forecast table covering multiple years and over 400 rows, where the current month shifts and historical/future data must align with the changing column headers.
- Observed behavior
- Manually entered data remains in fixed cells and does not automatically follow shifting column headers, causing misalignment when the rolling month updates.
Ensure your date headers are formatted as actual date values rather than text, as lookup functions rely on exact matches to pull your forecast data correctly across the columns.
Separate Data Entry and Use XLOOKUP for Dynamic Display
Since manually entered values cannot dynamically move on their own, the most reliable approach is to keep a static input table and use a dynamic view table with lookup functions.
A single table cannot reliably handle both manual data entry and dynamic column shifting at the same time. By creating a stable backend table for your manual inputs, you can safely use lookup functions to display the data dynamically in your frontend report workbook.
Set up a new worksheet where months are fixed in columns (e.g., Jan 2024, Feb 2024, etc., covering your full two-year period). Manually enter your forecast values for all 400+ rows here.
In your presentation sheet, use a rolling formula like =EDATE(Current_Month_Cell, 1) in your header row to automatically roll your dates forward when the current month changes.
In the first data cell of your dynamic table, enter the formula: =XLOOKUP(Dynamic_Date_Header, Input_Date_Headers, Input_Forecast_Values, 0). Make sure to lock the input row references using the $ symbol.
Copy the formula across your columns and down your rows. All cells will now reference the dynamic date header and pull the correct static value from your input table.

Build Dynamic Forecast Models Effortlessly in WPS Spreadsheet
WPS Spreadsheet fully supports advanced lookup functions like XLOOKUP, HLOOKUP, and dynamic arrays, allowing you to build dynamic rolling forecasts with ease while maintaining full compatibility with your existing workbooks.
- 1. Open Workbook: Launch WPS Spreadsheet and open your existing rolling forecast workbook.
- 2. Create Input Sheet: Set up a separate worksheet with stable, fixed month columns to act as your manual data entry table.
- 3. Apply XLOOKUP: In your main dynamic table, use the built-in XLOOKUP function to link your shifting date headers to the stable input data.
- 4. Update Forecasts: Change your reference month cell and watch all forecast data shift seamlessly across the columns.

Frequently Asked Questions
Why can't manually entered data move automatically when headers change?
Cells in a spreadsheet contain either a static value (manual entry) or a formula. A cell cannot contain a manual value and a formula simultaneously. Therefore, static data cannot detect when a header formula changes to shift itself without using complex VBA macros.
Can I use HLOOKUP instead of XLOOKUP for shifting columns?
Yes. HLOOKUP is perfectly suited for horizontal data retrieval. You can search for the dynamic month header in the top row of your static input table and return the forecast value for the corresponding row index.
Is there a way to shift the columns in a single table without formulas?
You can manually insert a new column for the current month and delete the oldest month's column. While this physical action shifts the data manually, it is not automatic and requires maintaining the formatting every month.




