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:
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:
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:
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:
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
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...
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!
