Add Values from Two Excel Columns into a Third Column
Question details
Add the values in columns X and Y for each row and display the results in column Z.

- 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.
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.
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.
Select cell Z2, type =SUM(X2:Y2), and press Enter.
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.
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.

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. Open the workbook: Open WPS Spreadsheets and select Open to choose your Excel workbook.
- 2. Enter the formula: Select Z2, type =SUM(X2:Y2), and press Enter.
- 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. Save the results: Select File > Save or Save As to save the workbook, choosing XLSX if you need an Excel-compatible file.

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.




