Calculate Adjustment Between Positive and Negative Values in Spreadsheets
Question details
Determine the exact difference required for a value in one column to equal the corresponding value in another column, specifically when dealing with a mix of positive and negative numbers like temperatures.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- The user needs to calculate the positive or negative adjustment between two sets of data that represent temperatures, ensuring the calculation works across both positive and negative values.
- Observed behavior
- Including units like '°C' directly in cells turns the data into text, breaking subtraction formulas. The goal is to calculate the adjustment accurately while keeping the unit visible.
Ensure that your data columns contain pure numeric values. Remove any manually typed degree symbols or text suffixes before applying formulas, as these will cause calculation errors.
Use a Subtraction Formula with Custom Number Formatting
By keeping the cell values strictly numeric and using a custom format to display the unit, you can easily use basic subtraction to find the positive or negative adjustment.
Spreadsheets cannot perform mathematical operations on text strings. When you type '°C' into a cell, the software treats the entry as text, making calculations difficult or impossible.
To fix this, enter only the numbers and rely on Custom Number Formatting to display the unit suffix visually without altering the underlying numeric data.
Select columns A and B, and ensure all temperatures are typed as standard numbers (e.g., type 25 instead of 25°C). Remove any text suffixes.
Highlight your data cells, right-click, and select 'Format Cells'. Go to the 'Custom' category and enter 0.0"°C" in the Type box. Click OK. Your numbers will now display with the degree symbol, but remain numeric.
Click on cell C2 and enter the formula =A2-B2. Press Enter.
Select cell C2, hover over the small square in the bottom-right corner until your cursor turns into a plus sign, and drag it down the column. The subtraction will automatically return the correct positive or negative difference.

Calculate Value Adjustments Easily with WPS Spreadsheet
WPS Spreadsheet offers robust formula capabilities and highly customizable cell formatting, allowing you to manage complex data adjustments and display units perfectly without breaking your calculations.
- 1. Open your data in WPS Spreadsheet: Launch WPS Office and open your workbook containing the positive and negative values.
- 2. Format your cells: Select the data range, press Ctrl+1 to open the Format Cells dialog, and define your custom unit string under the Custom category.
- 3. Input the calculation formula: Type a standard subtraction formula (such as =A2-B2) in the adjacent column to find the exact required adjustment.
- 4. Apply to all rows: Double-click the fill handle at the bottom right of the formula cell to instantly calculate the adjustments for your entire dataset.

Frequently Asked Questions
Why do I get a #VALUE! error when subtracting temperatures in my spreadsheet?
A #VALUE! error occurs when a mathematical formula encounters text instead of a number. If you manually typed '°C' or another unit into the cell, the spreadsheet treats it as text. Remove the text and use Custom Number Formatting to resolve this.
How do I type a degree symbol for a Custom Number Format?
You can insert the degree symbol (°) by holding the Alt key and typing 0176 on your numeric keypad. Alternatively, you can copy the symbol from another source and paste it directly into the Custom format text box, enclosed in quotation marks.
Does standard subtraction work when the baseline value is negative and the target is positive?
Yes. Basic subtraction formulas follow fundamental math rules. If you are calculating the difference needed to get from -10 to 5, subtracting the baseline from the target (=5-(-10)) will accurately return an adjustment of +15.




