Formula Errors

Subtract Two Columns in Excel and Fill the Formula Down

Rana GarciaRana Garcia Nov 27, 2026 871 views

Question details

Subtract values in column D from values in column C and show the results in column E for every row.

Subtract Two Excel Columns and Fill the Formula Down
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the first formula

Select cell E2, type =C2-D2, and press Enter.

2
Fill the formula down

Select E2 again, then drag the small fill handle at its bottom-right corner down to the last row you need.

3
Check the results

Select a filled cell, such as E3, and check the formula bar. It should show =C3-D3.

Enter the subtraction formula and use the fill handle
Fill down automatically: You can also double-click the fill handle to fill alongside a contiguous range of adjacent data. Check that the formula reaches your intended last row.
WPS Spreadsheets

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. 1. Open your spreadsheet: Open WPS Spreadsheets and choose Open to select your workbook.
  2. 2. Enter the formula: Select E2, type =C2-D2, and press Enter.
  3. 3. Fill the remaining rows: Select E2 and drag its bottom-right fill handle down column E to the last row.
  4. 4. Check a result: Select E3 and confirm in the formula bar that the formula is =C3-D3.
Subtract values across columns with a simple formulaFill relative formulas down multiple rowsOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

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.