How to Use a Formula or Manual Value in the Same Excel Column
Question details
The user needs a way to allow a single Excel column to display either a calculated formula result or a manually entered value without permanently deleting the formula.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to input a manual override value into an output cell that already contains a calculation formula, without destroying the underlying formula for future use.
- Observed behavior
- Excel does not natively support holding both a formula and a manual override in the exact same cell; typing a manual value permanently overwrites and deletes the existing formula.
Before starting, ensure your spreadsheet layout allows for adding an extra adjacent column, as creating a dedicated 'override' column is the safest and most reliable way to maintain data integrity.
Use an IF Function with a Dedicated Override Column
The most reliable method is to create a separate input column for manual overrides and use an IF formula in the final output column.
Because a single cell cannot dynamically hold both a static value and a formula, the standard practice in data modeling is to separate the inputs from the outputs. By using an IF statement, your output cell can check if a manual value exists and display it. If no manual value is entered, it performs the standard calculation.
Right-click the column header next to your target output column and select 'Insert'. Name this new column 'Manual Override' or similar.
In your main output column, type an IF formula that checks if the manual override column is blank. For example: =IF(P2<>"", P2, [Your Original Formula]).
Replace 'P2' with the cell reference of your new manual override column, and replace '[Your Original Formula]' with your actual calculation (e.g., (K2-25)*N2+30).
Press Enter to apply the formula, then drag the fill handle down to apply it to the rest of the column. Test it by typing a value in the manual override column to see the output cell update automatically.

Use VBA Macros to Handle Manual Overrides
If you strictly cannot alter your layout to add extra columns, you can use a VBA script to handle manual inputs.
Easily Combine Formulas and Manual Data in WPS Office
WPS Spreadsheet provides powerful formula calculation and data validation features, allowing you to easily set up override columns and IF functions just like Microsoft Excel. It is fully equipped to handle advanced data modeling without the premium price tag.
- 1. Open your spreadsheet in WPS: Launch WPS Spreadsheet and open your existing .xlsx workbook.
- 2. Create an input column: Right-click a column header to insert a new 'Manual Override' column.
- 3. Apply the IF logic: Type your =IF() formula in the output cell to evaluate the manual input cell first, falling back to your calculation if it's blank.
- 4. Protect your work: Navigate to the 'Review' tab and click 'Protect Sheet' to lock your formula cells while allowing manual inputs.

Frequently Asked Questions
Why does typing over an Excel formula delete it?
In spreadsheet software, a single cell can only contain one type of data at a time—either a raw value or a formula. If you manually type a number into a cell that holds a formula, the manual entry permanently overwrites the formula logic.
Can I use Conditional Formatting to highlight overridden values?
Yes. You can select your output column, go to Conditional Formatting, and create a rule that checks if the override cell is not empty. This will visually highlight cells where a manual value is currently overriding the standard formula.
What if I want the formula to come back after deleting the manual value?
By using the recommended IF function approach with an extra column, deleting the value in the 'Manual Override' column will instantly cause the output cell to revert back to its standard formula calculation.
Is there a function other than IF that works for this?
While IF is the most straightforward, you can also use functions like IFERROR or IFS depending on the complexity of your conditions. However, checking if an adjacent cell is blank (<>"") with an IF statement is generally the most efficient method.




