Subtract Two Columns in Excel and Fill the Formula Down
Question details
Subtract values in column D from values in column C and show the results in column E for every row.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to calculate the difference for multiple rows without entering each formula separately.
- Observed behavior
- Each cell in column E should subtract the value in column D from the value in column C on the same row.
Check that your data begins in row 2 and that the destination cells in column E are available. If your data starts on another row, change the row numbers in the formula to match.
Enter the subtraction formula and use the fill handle
Use the fill handle to copy the formula down column E while adjusting the row references automatically.
Select cell E2, type =C2-D2, and press Enter.
Select E2 again, then drag the small fill handle at its bottom-right corner down to the last row you need.
Select a filled cell, such as E3, and check the formula bar. It should show =C3-D3.

Fill a selected range with Ctrl+Enter
Use this method in Excel for Windows when you know the destination range.
Subtract columns and fill formulas in WPS Spreadsheets
Use WPS Spreadsheets to enter a subtraction formula and drag the fill handle down, with row references adjusting for each result.
- 1. Open your spreadsheet: Open WPS Spreadsheets and choose Open to select your workbook.
- 2. Enter the formula: Select E2, type =C2-D2, and press Enter.
- 3. Fill the remaining rows: Select E2 and drag its bottom-right fill handle down column E to the last row.
- 4. Check a result: Select E3 and confirm in the formula bar that the formula is =C3-D3.

Frequently Asked Questions
Why does the formula change from =C2-D2 to =C3-D3?
The references are relative, so Excel adjusts their row numbers when you fill the formula down. Select a result cell and check its formula in the formula bar.
How do I fill the formula without dragging through hundreds of rows?
In Excel for Windows, select the destination range, such as E2:E1000, type =C2-D2 with E2 active, and press Ctrl+Enter. You can type the range into the Name Box to select it.
What if my data starts on a different row?
Enter the formula in column E on the first data row using that row number. For example, if data starts on row 5, enter =C5-D5 in E5 and fill it down.
Why did double-clicking the fill handle stop early?
Double-clicking fills alongside adjacent data, so a gap can limit the filled range. Drag the fill handle to the intended last row or select the full destination range and use Ctrl+Enter in Excel for Windows.




