Related topics
Formulas & functions
Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.
Formulas & functions


Use the SUMIF function to sum the values in a range that meet criteria that you specify.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.
  1. Select a cell where you want to write the formula.

  2. Type =SUMIF(.

  3. Select the range of cells that you want to evaluate by the criteria.

  4. Type a comma and enter the criteria.

    Tip: If the criteria is text, don't forget to enclose it with quotation marks ("").

  5. Type a comma and select the SUM range. It'll be the same size and shape as the original range you selected.

  6. Press Enter.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!