## How to sumif with multiple criteria in one column?

In Excel, SUMIF function is a useful function for us to sum cells with multiple criteria in different columns, but with this function, we can also sum cells based on multiple criteria in one column. In this article. I will talk about how to sum values with more than one criteria in same column.

Sum cells with multiple OR criteria in one column with formulas

#### Sum cells with multiple OR criteria in one column with formulas

For example, I have the following data range, now, I would like to get the total orders of the product KTE and KTO in January.

For multiple OR criteria in the same field, use multiple SUMIF functions:

Formula 1: SUMIF + SUMIF

Please enter this formula: =SUMIF(A2:A10,"KTE",B2:B10) + SUMIF(A2:A10,"KTO",B2:B10), and then press Enter key, you will get the total value of the product KTE and KTO, see screenshots:

Notes:

1. In the above formula, A2:A10 is the range of cells that you want to apply the criteria against, B2:B10 is the cells which you want to sum, and KTE, KTO are the criteria you sum the cells based on.

2. In this example, there are only two criteria, you can apply more criteria just go on adding SUMIF( ) after the formula, such as =sumif(range, criteria, sum_range) + sumif(range, criteria, sum_range) + sumif(range, criteria, sum_range)+…

Formula 2: SUM and SUMIF

If there are multiple criteria need to be added, the above formula will be long and tedious, in this case, I can give you a more compact formula to solve it.

Type this formula into a blank cell: =SUM(SUMIF(A2:A10, {"KTE","KTO"}, B2:B10)), and then press Enter key to get the result you need, see screenshot:

Notes:

1. In the above formula, A2:A10 is the range of cells that you want to apply the criteria against, B2:B10 is the cells which you want to sum, and KTE, KTO are the criteria you sum the cells based on.

2. To sum with more criteria, you just need to add the criteria into the braces, such as =SUM(SUMIF(A2:A10, {"KTE","KTO","KTW","Office Tab"}, B2:B10)).

3. This formula only can use when the range cells that you want to apply the criteria against in a same column.

 Advanced Combine Rows:(Combine duplicate rows and sum / average corresponding values): 1. Specify the key column that you want to combine other column based on; 2. Choose one calculation for your combined data. Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Related articles:

How to sumif with one or more criteria in Excel?

How to sum multiple columns based on single criteria in Excel?

### Best Office Productivity Tools

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ... Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup .... Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List .... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ... Featured Features: Grid Focus   |  Design View   |   Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

#### Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

• Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
• Open and create multiple documents in new tabs of the same window, rather than in new windows.
• Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Queria somar em um intervalo, onde o critério está em uma coluna, mas ao chegar no critério a soma parasse.

A B
1 Amor 3
2 Paixão 4
3 Ódio 6
4 Raiva 1
5 Excel 2
6 Carro 9
7 Moto 6
8 Avião 5

Somar de Paixão até moto, mas não é fixa a quantidade linhas. Então a função teria que começar a somar em Paixão e parar a soma em Moto.

4+6+1+2+9+6 = 28
This comment was minimized by the moderator on the site
Busquei muito no Gogle uma forma de somar valores diferentes dentro da mesma coluna e com sua dica, consegui o que eu queria! Valeu!!!
Rated 4.5 out of 5
This comment was minimized by the moderator on the site

=SUM(SUMIF(A2:A10, {"KTE","KTO"}, B2:B10))
This comment was minimized by the moderator on the site
Hello, Alejandro,
To use the cell references instead of the specific text value, you just need to apply the below array formula:
=SUM(SUMIF(A2:A10,E1:E2,B2:B10))
After entering this formula, please press Ctrl + Shift + Enter keys together to get the result.
This comment was minimized by the moderator on the site
O meu problema é, em um intervalo de 5000 linhas, tenho que somar 630, mas o titulo fica na mesma coluna dos critérios
This comment was minimized by the moderator on the site
thanks this helped a lot! :)
This comment was minimized by the moderator on the site
Hi, I Need to put in a drop Down in 3 Slab for using sumif. Example Slab 1-A,2-B,3-C & Total Sumof 3 Slab Please Suggest..
There are no comments posted here yet