SUMIFS function

This function will conditionally sum up numbers in a range based on given criteria.


SUMIFS(Sum Range, Range 1, Criteria 1, Range 2, Criteria 2,…)

  • Sum Range (required) – This is the range of numbers to sum.
  • Range 1 (required) – This is the range to which the first criteria is applied.
  • Criteria 1 (required) – This is the criteria Range 1 has to satisfy to be included in the sum.
  • Range 2, Range 3,… (optional) – These are more criteria ranges that can be used.
  • Criteria 2, Criteria 3,… (optional) – These are more criteria to which the associated range has to satisfy to be included in the sum.


In this example we sum up salaries based on the company and job. Note that the salaries are only summed when both criteria are met at the same time and not when one criteria is met and the other is not.

=SUMIFS($C$2:$C$7,$A$2:$A$7, E2,$B$2:$B$7,F2)


About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and freelance consultant and trainer specializing in Excel, Power BI, Power Automate, Power Apps and SharePoint. You can find other interesting articles from John on his blog or YouTube channel.


Related Posts

INT function

This function will rounds a number down to the nearest integer. Syntax...

read more

ABS function

This function will return the absolute value of a number. The absolute value...

read more



Get the Latest Microsoft Excel Tips

Follow Us

Follow us on social media to stay up to date with the latest in Microsoft Excel!