Note: The other languages of the website are Google-translated. Back to English
English English

Use SUMIFS with multiple criteria based on OR logic

By default, the SUMIFS function handles multiple criteria based on AND logic. If you want to sum multiple criteria based on OR logic, you need to use the SUMIFS function within an array constant.

How to use SUMIFS with multiple criteria based on OR logic?

Suppose you have an order quantity table as shown in the screenshot below, to sum the total quantity of KTE or KTW sold per day, you can try the following formula.

Generic Formulas

=SUM(SUMIFS(sum_range, criteria_range , {“criteria1”,”criteria2”,... }))


Sum_range: A range that you want to sum values based on criteria.
Criteria_range: The range of cells that you want evaluated by the criteria;
Criteria1: The first criterion defines which values in the Criteria_range will be summed.
Criteria2: The second criterion defines which values in the Criteria_range will be summed.

How to use this formula?

Select a cell, enter the formula below and press the Enter key to get the result.

=SUM(SUMIFS(E5:E14,C5:C14, {"KTE","KTO"}))


1) You cannot use cell reference in an array constant. You need to type the criteria directly and enclose them in double quotation marks.
2) E5:E14 is the range that you want to sum;
3) C5:C14 is the range that you want evaluated by the criteria;
4) "KT" and "KTO" are the criteria.

Related functions

Excel SUM function
The Excel SUM function adds values.

Excel SUMIFS function
The Excel SUMIFS function helps to sum cell values based on multiple criteria.

Related formulas

Sum only visible cells or rows in a filtered list
This tutorial demonstrates a formula based on the SUBTOTAL function with a specified function number to help you sum only visible cells in a filtered list in Excel.

Sum values in horizontal range in Excel
To sum numbers in horizontal range based on a condition, you can apply the SUMIFS function. This step-by-step guide helps you to get it done.

Use SUMPRODUCT with IF function in Excel
This tutorial is talking about how to use IF logic with SUMPRODUCT function in Excel.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations