Conditionally calculate SUM in Excel

You are currently viewing Conditionally calculate SUM in Excel

In Excel, to conditionally calculate total, I will use the SUM function that sums up the numbers.

The following dataset contains 4 unique phone models and each model's instance is repeated multiple times in column B. Column C contains quantity of each one as shown below:

Dataset

Now I want to conditionally calculate the total quantity of each unique phone model using the SUM function:

Dataset

To accomplish the task, I create named ranges; one for the Phone column and the other for Qty column, like shown below:

Creating named ranges

After this, I construct my conditional SUM formula in F2 and drag the fill handle down to copy the formula to the rest of the cells like shown below:

Constructing conditional SUM formula

Therefore, I get the total quantity of each unique phone model using the SUM function conditionally. I hope this post helped you.

Download Practice Workbook

Kunal

Hey, I am Kunal Aggarwal, the founder and author of Kunal Excel Tip based in New Delhi, India. I have completed my postgraduation from NIIT Limited, New Delhi in Excel course in 2019. Since then, I have been using and learning Microsoft Excel and started writing posts on the spreadsheet software here since March 2024.

Leave a Reply