Excel tutorial
/

Functions

Intermediate

Excel SUMIFS function: sum with multiple conditions

SUMIFS adds up rows that meet every condition: city and manager, dates by month, a cross-tab report. Plus the argument-order trap versus SUMIF.

SUMIFS adds up numbers only in rows where every condition is met. “How much did Aziz sell in Tashkent?”, “What were Tashkent’s sales in January?”, “What is the total of Tashkent orders over 1 mln?” — two, three or more conditions in one formula.

It is the workhorse of finance and sales reports. SUMIFS works with a single condition too, so many professionals always write it instead of SUMIF — adding a condition later is then trivial.

Книга1 - Excel
—☐✕
F2fx=СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent";C2:C8;"Aziz")
ABCDEFG
1DateCityManagerAmountQuestionAnswer
203.01.2025TashkentAziz1 250 000Aziz, Tashkent2 640 000
310.01.2025SamarkandDilnoza640 000
418.01.2025TashkentJavohir2 100 000
527.01.2025TashkentAziz910 000
604.02.2025SamarkandDilnoza1 730 000
711.02.2025TashkentAziz480 000
818.02.2025TashkentJavohir1 500 000
9
Готово
Three rows meet both conditions and are added: 1,250,000 + 910,000 + 480,000 = 2,640,000

Syntax

=СУММЕСЛИМН(sum_range; criteria_range1; criteria1; [criteria_range2; criteria2]; ...)

  • sum_range — the numbers to add: D2:D8. It comes first!
  • criteria_range1, criteria1 — the first pair: B2:B8, "Tashkent".
  • criteria_range2, criteria2 … — more pairs, up to 127.

Compare with SUMIF:

  • SUMIF: =СУММЕСЛИ(B2:B8;"Tashkent";D2:D8) — the sum range is last and optional.
  • SUMIFS: =СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent") — the sum range is first and required.

Conditions use “and” logic, and all ranges must be the same size.

Step by step: entering SUMIFS

1

Select F2 for the result.

2

Формулы → Математические → pick SUMIFS.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
F2fx
ABCDEFG
1DateCityManagerAmountQuestionAnswer
203.01.2025TashkentAziz1 250 000Aziz, Tashkent
310.01.2025SamarkandDilnoza640 000
4
5
Готово

3

First Sum_range — D2:D8 (amounts). Then the pairs: Criteria_range1 — B2:B8, Criteria1 — "Tashkent"; Criteria_range2 — C2:C8, Criteria2 — "Aziz".

Книга1 - Excel
—☐✕
F2fx
ABCDEFG
1DateCityManagerAmountQuestionAnswer
203.01.2025TashkentAziz1 250 000Aziz, Tashkent
310.01.2025SamarkandDilnoza640 000
4
5
Готово

4

Click OK. The result is 2,640,000. The formula: =СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent";C2:C8;"Aziz").

Example 1: by month, plus a numeric condition

Put the first day of the month in F1. The date column appears twice — “from” and “to”:

=СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent";A2:A8;">="&F1;A2:A8;"<="&КОНМЕСЯЦА(F1;0))

You can also put a condition on the sum column itself — Tashkent orders of 1 mln or more:

=СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent";D2:D8;">=1000000")

Книга1 - Excel
—☐✕
F2fx=СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent";A2:A8;">="&F1;A2:A8;"<="&КОНМЕСЯЦА(F1;0))
ABCDEFG
1DateCityManagerAmountMonth01.01.20251
203.01.2025TashkentAziz1 250 000Tashkent, month4 260 000
310.01.2025SamarkandDilnoza640 000Tashkent, 1 mln+4 850 000
418.01.2025TashkentJavohir2 100 000
527.01.2025TashkentAziz910 000
604.02.2025SamarkandDilnoza1 730 000
711.02.2025TashkentAziz480 000
818.02.2025TashkentJavohir1 500 000
9
Готово
1 — change the month (01.02.2025) and F2 shows February sales. F3: Tashkent’s three large orders
Книга1 - Excel
—☐✕
F3fx=СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent")
ABCDEFG
1DateCityManagerAmountFunctionTashkent total
203.01.2025TashkentAziz1 250 000SUMIF6 240 0001
310.01.2025SamarkandDilnoza640 000SUMIFS6 240 0002
418.01.2025TashkentJavohir2 100 000
527.01.2025TashkentAziz910 000
604.02.2025SamarkandDilnoza1 730 000
711.02.2025TashkentAziz480 000
818.02.2025TashkentJavohir1 500 000
9
Готово
Same result, but D2:D8 (green) is 1 — last in SUMIF, 2 — first in SUMIFS

Pro level: a cross-tab report and “or” with an array

  • A manager × month table with one formula. =СУММЕСЛИМН($C$2:$C$8;$A$2:$A$8;$D2;$B$2:$B$8;E$1). $D2 — the manager always comes from column D, E$1 — the month always comes from row 1. Write it in E2 and fill it across the table. It looks like a PivotTable, but the layout is fully under your control and updates by itself with new data.
  • “Or” with an array. =СУММ(СУММЕСЛИМН(D2:D8;B2:B8;{"Tashkent";"Samarkand"})) — the total for two cities.
  • Conditions from cells. With city, manager and month in cells, one formula becomes an interactive report: the user only changes a cell.
  • Empty condition = “all”. The "*" criterion matches any text cell. To make an empty cell mean “all cities”: B2:B8,IF(F1="","*",F1).
Книга1 - Excel
—☐✕
E2fx=СУММЕСЛИМН($C$2:$C$8;$A$2:$A$8;$D2;$B$2:$B$8;E$1)
ABCDEFG
1ManagerMonthAmountManagerJanuaryFebruary
2AzizJanuary1 250 000Aziz2 160 000480 000
3DilnozaJanuary640 000Dilnoza640 0001 730 000
4JavohirJanuary2 100 000Javohir2 100 0001 500 000
5AzizJanuary910 000
6DilnozaFebruary1 730 000
7AzizFebruary480 000
8JavohirFebruary1 500 000
9
ГотовоСреднее: 1435000Количество: 6Сумма: 8610000
The formula from E2 is filled across E2:F4. Aziz in January: 1,250,000 + 910,000

Try it in the simulator

Type =СУММЕСЛИМН(D2:D8;B2:B8;"Tashkent";C2:C8;"Aziz") in F2. Then in F3 calculate Dilnoza’s sales in Samarkand: =СУММЕСЛИМН(D2:D8;B2:B8;"Samarkand";C2:C8;"Dilnoza").

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1DateCityManagerAmountQuestionAnswer
245660TashkentAziz1250000Aziz, Tashkent
345667SamarkandDilnoza640000Dilnoza, Samarkand
445675TashkentJavohir2100000
545684TashkentAziz910000
645692SamarkandDilnoza1730000
745699TashkentAziz480000
845706TashkentJavohir1500000
9
10
11
12
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

89 / 154