How to Create an Excel Formula for Weekly Actual and Forecast Costs
Question details
The user needs a short, dynamic Excel formula to calculate actual costs for past weeks and forecast costs for future weeks across up to 156 periods, but is experiencing #VALUE! errors and formulas showing as plain text.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Setting up a long-term financial tracking spreadsheet that dynamically switches between summing actual past costs and forecasting future costs based on weekly date headers.
- Observed behavior
- The formula returns a #VALUE! error or displays the formula text itself instead of calculating the final cost result.
Ensure your worksheet columns containing weekly data have consistent, valid date headers, and verify that your calculation ranges contain only numbers rather than text strings.
Fix Formulas Displaying as Plain Text
If typing your formula results in the cell displaying the formula code instead of the calculated value, the cell is likely formatted as Text.
When a cell is pre-formatted as Text, Excel treats anything entered into it as a standard string, completely ignoring the '=' sign that initiates a formula. Changing the format and refreshing the cell will resolve this.
Click on the cell that is displaying the formula as plain text.
Go to the Home tab, locate the Number formatting dropdown, and change it from 'Text' to 'General'.
Double-click inside the cell or press F2 on your keyboard to enter edit mode, then press Enter. The formula will now calculate and display the result.
Resolve #VALUE! Errors in Array Formulas
Fix #VALUE! errors caused by text in the calculation range or improperly entered array formulas utilizing functions like COLUMN and ISEVEN.
Calculate Weekly Financial Models Seamlessly with WPS Spreadsheet
WPS Spreadsheet natively supports advanced array formulas, dynamic date functions, and extensive column processing, making it effortless to build long-term financial forecasts without legacy formula errors.
- 1. Open your financial tracking file: Launch WPS Spreadsheet and open your existing .xlsx file containing the 156-week data.
- 2. Enter the date comparison formula: Select your total cell and input your formula utilizing date comparisons to distinguish actuals from forecasts.
- 3. Execute the calculation: Press Enter to calculate the result immediately. WPS Spreadsheet handles complex arrays and dynamic functions with ease.

Frequently Asked Questions
What does the ISEVEN function do in an Excel formula?
The ISEVEN function returns TRUE if a given number is even, and FALSE if it is odd. In complex financial spreadsheets, it is often combined with the COLUMN function (e.g., ISEVEN(COLUMN())) to selectively sum data from every other column, such as alternating 'Actual' and 'Forecast' columns.
Why does my Excel formula show as text instead of calculating the result?
This usually happens when the cell's format is set to 'Text' before you type the formula. To fix it, change the cell format to 'General', then double-click the cell (or press F2) and hit Enter to force Excel to recalculate the formula.
When do I need to press Ctrl+Shift+Enter for a formula?
In older versions of Excel (prior to Excel 365), formulas that process multiple values simultaneously—known as array formulas—require you to press Ctrl+Shift+Enter. This wraps the formula in curly braces {} and tells Excel to evaluate it as an array rather than a single value.





