Formulas & functions

SUMIF

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.