Summing using multiple criteria in Microsoft Excel

In this article you will learn how to sum using multiple criteria in Microsoft Excel.

SUMIFS:This function is used for adding the cells specified by a given set of condition or criteria.

image 1


Let’s take an example to understand how we can use the SUMIFS function.

We have sales data in range A1:C15. Column A contains agent's name, column B contains City name, and column C contains sales amount.

image 2


In the picture shown above, we have data in excel like this. We want to return the total value of every agent, and agent should be from the same city.

To return the total value agent wise, follow below given steps:-

  • Select the cell D2.
  • Write the formula.
  • =SUMIFS(C:C,A:A,A2,B:B,B2)press enter on your keyboard.
  • The function will return the total value for the agent Ralph and his city St. Thomas.

image 3


To return the total amount for all the agents, copy the same formula by pressing the key Ctrl+C and paste in the range D3:D15 by pressing the key Ctrl+V on your keyboard.

Note:- Through SUMIFS function, we can check 127 criteria in a cell. Use SUMIFS function to sum the values for multiple criteria.

image 4



image 48


If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at


Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.