Skip to main content

How to multiply two columns and then sum in Excel?

In Excel, most of us may suffer to multiply two columns and then add them up, of course, we can multiply each items and then sum them, but this will be troublesome if there are hundreds or thousands rows need to calculate. In Excel, there is a powerful function – SUMPRODUCT, with it, we can quickly multiply two columns and then sum them. This article, I will talk about how to apply this function.

Multiply two columns and then sum without criteria

Multiply two columns and then sum based on one or more criteria

Multiply two columns and then sum based on one condition with a useful feature


Multiply two columns and then sum without criteria

Supposing you have the following data range which you need to multiply the quantity column and unit price and then add up all the multiply results together to get the total price:

Here, you can apply the SUMPRODUCT function to solve it, please enter the following formula into a cell where you want to output the result:

=SUMPRODUCT(B2:B9,C2:C9)

Note: In the above formula, B2:B9, C2:C9 are the two columns range that you want to do the calculation.

And then press Enter key to get the result, see screenshot:


Multiply two columns and then sum based on one or more criteria

Multiply two columns and then sum with one criterion

In the following worksheet data, I just want to get the total price of apple, so we can expand the SUMPRODUCT function, please enter this formula:

=SUMPRODUCT($B$4:$B$12,$C$4:$C$12*($A$4:$A$12=E4))

Note: In the above formula, B4:B12, C4:C12 are the two columns range that you want to do the calculation, E4 is the criteria that you want to calculate based on, and A4:A12 is the column data contains the condion you look for.

Then press Enter key to return the calculation result:


Multiply two columns and then sum with more criteria

1. Multiply two columns and then sum based on multiple criteria in multiple columns

We can also use the SUMPRODUCT function to multiply two columns and add up the values based on more criteria, for instance, I want to calculate the total price of apples are supplied by China. Please copy or enter the below formula into a blank cell:

=SUMPRODUCT($C$4:$C$12*($A$4:$A$12=F4),$D$4:$D$12*($B$4:$B$12=G4))

Note: In the above formula, C4:C12, D4:D12 are the two columns range that you want to do the calculation, F4, G4 are the criteria that you want to calculate based on, and A4:A12, B4:B12 are the columns contain the conditions you specified.

And then, press Enter key to get the result as below screenshot shown:


2. Multiply two columns and then sum based on multiple criteria in the same column

If I need to calculate the total price of apples and oranges, please use this formula:

=SUMPRODUCT((($A$4:$A$12=F4)+($A$4:$A$12=F5)),$C$4:$C$12,$D$4:$D$12)

Note: In the above formula, C4:C12, D4:D12 are the two columns range that you want to do the calculation, F4, F5 are the criteria that you want to calculate based on, and A4:A12, isthe columns contains the conditions you specified.

And then, press Enter key to get the result as below screenshot shown:

Tips: The above examples are some basic formulas, you can add more criteria as you need within the basic formula.


Multiply two columns and then sum based on one condition with a useful feature

To multiply two columns and then sum the result based on one conditon,Kutools for Excel's SUMPRODUCT with criteria feature also can do you a favor.

Note:To apply this Date & Time Helper, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Click a cell where you want to put the result, and then click Kutools > Formula Helper > Formula Helper, see screenshot:

2. In the Formulas Helper dialog box, do the following operations:

  • Select Math from the Formula Type drop down list;
  • In the Choose a formula listbox, select SUMPRODUCT with criteria option;
  • Then, in the Arguments input section, select the Lookup_col, Lookup_value, Array 1 and Array 2 from the original table as you need.

3. Then, click Ok button, and the calculated result will be displayed at once, see screenshot:

Click to Download Kutools for Excel and free trial Now!


Kutools for Excel's Formula Helper contains dozens of common used formulas such as Date & Time, Lookup & Reference and so on helps you to create some useful formulas without remembering any formulas which can save much time in your daily work. Click to download Kutools for Excel!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (2)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
=IF(K9="ENGLISH CORE (301)", "=L9*10/20")

i want calculate =L9*10/20 with above formula. how to do.
This comment was minimized by the moderator on the site
Display only quantity and product name field.when I type quantity ,total amount will display on another textbox.It means that unit price from database column.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations