Calculation Issues

How to Calculate Quantity Totals and Price Amounts Automatically in Excel

Phi Hung VoPhi Hung Vo Nov 13, 2026 869 views

Question details

The user needs to calculate line amounts from quantity and price columns in a spreadsheet and then calculate quantity counts and totals automatically without manual arithmetic.

How to Calculate Quantity Totals and Price Amounts Automatically in Excel
Product
WPS Office Spreadsheet (Excel-compatible)
Device & OS
not provided
Scenario
The user has a sheet containing quantity and price columns and wants the amount, count, and grand total to update automatically from the entered data.
Observed behavior
The user currently does not have an automatic formula setup for line amounts, counts, and totals, so those values would require manual calculation or manual formula adjustment.
Before you start

Open the WPS Office spreadsheet and confirm which columns contain quantity, price, and where the amount column should appear. If the list will grow, select the data range and convert it to an Excel Table before entering formulas.

Solution 1Recommended

Use an Excel Table for Automatic Quantity and Price Calculations

Best for dynamic or growing lists because structured references and a total row update automatically when rows are added.

An Excel Table lets you reference columns by name, such as =[@Quantity]*[@Price], so you do not need to adjust cell ranges when data expands.

1
Insert an Excel Table

Select your quantity, price, and amount columns, go to Insert > Table, confirm the range, check My table has headers, and click OK.

2
Enter the amount formula

In the first amount cell, type =[@Quantity]*[@Price] and press Enter. WPS Office fills the formula down the entire amount column.

3
Enable the total row

Go to Table Tools > Total Row and turn it on. In the Amount column total cell, choose Sum from the dropdown to calculate the grand total.

4
Count quantity entries

In the Quantity column total cell, choose Count from the dropdown to count numeric quantity entries automatically.

Use an Excel Table for Automatic Quantity and Price Calculations
Automatic totals active: After the table and total row are enabled, new rows are included in the structured formulas and totals automatically.
WPS Office Spreadsheet

Calculate Quantity and Price Totals Automatically in WPS Office Spreadsheet

Use WPS Office Spreadsheet to multiply quantity by price, count entries, and sum line amounts with standard Excel-compatible formulas or Excel Table structured references. It is free, lightweight, and saves .xlsx files that remain fully compatible with Microsoft Excel.

  1. 1. Install WPS Office: Download the free WPS Office installer from the official website, install it, and open WPS Office Spreadsheet.
  2. 2. Open your workbook: Open the .xlsx file that contains quantity and price columns, or create a new spreadsheet with Quantity, Price, and Amount headers.
  3. 3. Insert a table or enter formulas: Select the data range and go to Insert > Table, or enter =A2*B2 in the first amount cell for a standard range.
  4. 4. Apply multiplication and totals: In a table, enter =[@Quantity]*[@Price] and enable the total row with Sum. For a standard range, use COUNT and SUM formulas.
  5. 5. Save and share: Save the completed workbook as .xlsx to preserve formulas and share it with Microsoft Excel users without compatibility issues.
Automates quantity × price amounts, COUNT, and SUM totals with Excel-compatible formulasSupports Excel Table structured references and total rows for dynamic rangesOpens, edits, and saves .xlsx files with full Microsoft Excel format compatibilityFree, lightweight Office suite with a familiar ribbon interface and easy migration
microsoft office alternative - wps office

Frequently Asked Questions

What formula do I use to multiply quantity by price in WPS Office Excel?

If Quantity is column A and Price is column B, use =A2*B2 in the Amount cell. In an Excel Table, use =[@Quantity]*[@Price], and WPS Office fills the formula down automatically.

How can I total the amount column after calculating line amounts?

Use =SUM(C2:C4) for a fixed range. If the data is an Excel Table, turn on Table Tools > Total Row and choose Sum in the Amount column dropdown.

How do I count the number of quantity entries?

Use =COUNT(A2:A4) to count numeric quantity cells. In a table total row, select Count under the Quantity column to count entries automatically.

Will the formulas update when I add new rows?

If you convert the data to an Excel Table, the structured formula and total row update automatically. In a standard range, extend the formula and SUM/COUNT ranges manually.

Can I open the WPS Office spreadsheet in Microsoft Excel later?

Yes. WPS Office saves standard .xlsx files, and multiplication, COUNT, and SUM formulas open and recalculate normally in Microsoft Excel.