Calculation Issues

Add Values from Two Excel Columns into a Third Column

Anum MushtaqAnum Mushtaq Dec 2, 2026 868 views

Question details

Add the values in columns X and Y for each row and display the results in column Z.

Add Values from Two Excel Columns into a Third Column
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains values in two columns that need to be totaled row by row in a third column.
Observed behavior
Each cell in column Z should show the sum of the values in columns X and Y on the same row.
Before you start

Check which row contains the first values and confirm that column Z is available for the results. The example below assumes headers are in row 1 and data starts in row 2.

Solution 1Recommended

Use a SUM formula and fill it down column Z

Calculate a separate total for each row using a formula that adjusts as it is copied.

1
Enter the formula

Select cell Z2, type =SUM(X2:Y2), and press Enter.

2
Fill down

Select Z2 again and double-click the fill handle at the cell's lower-right corner. Alternatively, drag the handle down to the last data row.

3
Check the results

Select a cell farther down column Z and check the formula bar to confirm that its formula refers to columns X and Y on the same row.

Use a SUM formula and fill it down column Z
Check the fill range: Double-clicking the fill handle uses adjacent data to determine how far to fill. If there are gaps, drag the handle to the last required row instead.
WPS Spreadsheets

Add Two Columns Row by Row in WPS Spreadsheets

Open your workbook in WPS Spreadsheets, enter a SUM formula in column Z, and fill it down to calculate each row.

  1. 1. Open the workbook: Open WPS Spreadsheets and select Open to choose your Excel workbook.
  2. 2. Enter the formula: Select Z2, type =SUM(X2:Y2), and press Enter.
  3. 3. Fill the remaining rows: Select Z2 and drag the fill handle at its lower-right corner down to the last row of data.
  4. 4. Save the results: Select File > Save or Save As to save the workbook, choosing XLSX if you need an Excel-compatible file.
Calculate row-by-row totals with SUM formulasOpen and save Microsoft Excel XLSX filesFill formulas down a column using the fill handleUse a familiar spreadsheet interface
QA img-9

Frequently Asked Questions

What formula adds X and Y on each row?

If the first data row is row 2, enter =SUM(X2:Y2) in Z2. Fill the formula down, and its row references will adjust automatically.

What if my data starts on a different row?

Use the first data row in the formula. For example, if data starts in row 5, enter =SUM(X5:Y5) in Z5 and fill it down.

Why did double-clicking the fill handle stop early?

Excel uses adjacent data to determine the fill range, so gaps can affect how far it fills. Drag the fill handle from Z2 to the last required row instead.

What happens if one of the cells is blank?

SUM ignores blank cells. For example, =SUM(X2:Y2) returns the value in X2 if Y2 is blank.