🎉 Black Friday Sale: 40% OFF everything with code BF40 · ends 1 Dec  Shop now →

SUMIFS Excel Tutorial: SUMIFS, COUNTIFS and AVERAGEIFS Behind Every Dashboard

SUMIFS Excel adds numbers that meet several conditions at once: =SUMIFS(sum_range, criteria_range1, criteria1, …). COUNTIFS counts the matching rows and AVERAGEIFS averages them, using the same range and criteria pairs. These three functions drive most dashboard KPI cards. This tutorial gives the syntax, a worked example, an error-fix table and ready-made Excel dashboards from $6.99.

Last updated: November 2026

Key takeaways

  • SUMIFS takes the sum range first, then any number of criteria range and criteria pairs, up to 127 pairs.
  • COUNTIFS and AVERAGEIFS use the same pairs, so you learn one pattern and get three functions.
  • Date windows need two criteria joined with an ampersand, such as “>=”&DATE(2026,2,1).
  • A SUMIFS result of 0 almost always means numbers or dates stored as text, or a stray space in the criteria.
  • The Sales Dashboard For Online Store in Excel costs $17.99 once and gives you a finished data sheet to practise these formulas on.
Excel Pivot Tables & Dashboards: Basic to Advanced courseLaunch offer
🎓 NEXTGENTEMPLATES ACADEMY
Want to build dashboards like these yourself?
Excel Pivot Tables & Dashboards: Basic to Advanced

From your first Pivot Table to the Data Model, DAX, Power Query and a one-page KPI dashboard. 11h 51m of video by PK, with practice files, quizzes and a capstone.

SUMIFS, COUNTIFS and AVERAGEIFS compared

FunctionReturnsSyntaxTypical dashboard card
SUMIFSTotal of matching rows=SUMIFS(sum_range, range1, criteria1, ...)Net sales for East, Online, February
COUNTIFSNumber of matching rows=COUNTIFS(range1, criteria1, ...)Orders, tickets or appointments by status
AVERAGEIFSMean of matching rows=AVERAGEIFS(average_range, range1, criteria1, ...)Average order value, average resolution time

Excel dashboard templates that rely on this kind of calculation

TemplateFormatBest ForPrice
Sales Dashboard For Online Store in Excel (Best overall)ExcelE-commerce sales, margin and region reporting$17.99
Channel Sales Dashboard in ExcelExcelRetail, distributor, online and wholesale comparison$17.99
Regulatory Reporting KPI Dashboard in ExcelExcelMTD and YTD KPI tracking for compliance teams$14.99
Health Tech Dashboard Report in ExcelExcelAppointment counts, cancelled % and satisfaction scores$7.99
IT Dashboard Report in Excel (Best value)ExcelTicket counts, SLA met % and resolution time$6.99

How we picked the examples and templates

We built the worked example from the layout most business data sheets use: one row per transaction, one column per attribute. That is the shape every conditional-aggregation formula expects, so the example transfers to your own file.

For templates we searched the Excel dashboard and report catalog for products whose data sheet is one row per record and whose cards are totals, counts or averages. We left out VBA form tools and non-Excel formats, because this tutorial is about worksheet formulas.

What does the SUMIFS formula do in Excel?

SUMIFS filters a column by one or more conditions and adds up what is left. The conditions are joined with AND logic: a row must pass every test to be included. If you want a total for the East region, Online channel and January only, SUMIFS handles it in one cell.

The argument order trips people up. In SUMIFS the sum range comes first, then each criteria range followed by its criteria. The older SUMIF function does it the other way round, with the sum range last. Mixing them up is one of the most common sources of wrong totals.

COUNTIFS has no sum range because it counts rows, so it starts straight with the first criteria range. AVERAGEIFS starts with the average range, exactly like SUMIFS starts with the sum range. Microsoft documents all three on its SUMIFS function support page.

How do you use SUMIFS, COUNTIFS and AVERAGEIFS step by step?

  1. Lay out the data as a flat table. One header row, one record per row, no blank rows or merged cells. Convert it to an Excel Table with Ctrl+T so ranges grow when you add rows.
  2. Check the column types. Numbers must be numbers and dates must be real dates. Left-aligned values in a numeric column usually mean text.
  3. Pick the column you want to total. This is the sum range, for example Net Sales in E2:E9.
  4. Add the first condition. Type the criteria range, a comma, then the criteria in quotes, for example B2:B9,"East".
  5. Add more condition pairs. Each extra test is another comma-separated range and criteria. Every range must have the same number of rows as the sum range.
  6. Use operators inside quotes. Write ">=400" or "<>Online". To compare to a cell, join with an ampersand: ">="&G1.
  7. Move the criteria into cells. Put Region and Channel in dropdown cells and refer to them. The formula then drives a dashboard card instead of a one-off answer.
  8. Lock the ranges. Use absolute references such as $E$2:$E$9, or Table column names, before copying the formula across a grid.

What does a worked SUMIFS example look like?

Take eight orders. Columns are A Date, B Region, C Channel, D Units and E Net Sales, in rows 2 to 9.

DateRegionChannelUnitsNet Sales
05 Jan 2026EastOnline10500
12 Jan 2026WestRetail4220
20 Jan 2026EastRetail6330
03 Feb 2026EastOnline8410
14 Feb 2026WestOnline12640
27 Feb 2026EastRetail5275
09 Mar 2026WestRetail7385
18 Mar 2026EastOnline9470

Now the formulas and what each returns:

QuestionFormulaResult
Net sales, East and Online=SUMIFS(E2:E9,B2:B9,"East",C2:C9,"Online")1,380
How many East Online orders?=COUNTIFS(B2:B9,"East",C2:C9,"Online")3
Average East Online order=AVERAGEIFS(E2:E9,B2:B9,"East",C2:C9,"Online")460
February net sales=SUMIFS(E2:E9,A2:A9,">="&DATE(2026,2,1),A2:A9,"<"&DATE(2026,3,1))1,325
West orders of 400 or more=COUNTIFS(B2:B9,"West",E2:E9,">=400")1
West units sold=SUMIFS(D2:D9,B2:B9,"West")23
Retail average order=AVERAGEIFS(E2:E9,C2:C9,"Retail")302.5

Check the maths against the table: East Online is 500 + 410 + 470 = 1,380, divided by 3 orders gives 460. February is 410 + 640 + 275 = 1,325. Retail is 220 + 330 + 275 + 385 = 1,210 over 4 orders, which is 302.5. All orders total 3,230, and East (1,985) plus West (1,245) matches it.

The date formula deserves a note. It uses “less than 1 March” instead of “less than or equal to 28 February”. That form works for any month length and for dates that carry a time of day, so it is the safer pattern.

How do you apply multiple criteria, wildcards and OR logic?

SUMIFS uses AND logic by default, so two criteria on different columns narrow the result. To use two criteria on the same column, add the column twice. For orders between 300 and 500, write =COUNTIFS(E2:E9,">=300",E2:E9,"<=500").

Wildcards work with text criteria. An asterisk matches any run of characters and a question mark matches one. "E*" matches East, and "*line" matches Online. To count blank cells use "", and for non-blank use "<>".

OR logic needs a small trick. Wrap the criteria in an array constant and sum the pieces: =SUM(SUMIFS(E2:E9,B2:B9,{"East","West"})) returns 3,230 on the sample. Alternatively add two SUMIFS together, which is easier to audit when you hand the file to someone else.

Which formulas do the other tools use for the same job?

A PivotTable gives you the same totals with drag and drop, and our Excel pivot table dashboard tutorial covers it. Pivots are faster for exploring, while SUMIFS is better when a card must sit in a fixed cell with a fixed label.

In Power BI the equivalent is a DAX measure, usually CALCULATE(SUM(Sales[Net]), Sales[Region] = “East”). In Google Sheets, SUMIFS, COUNTIFS and AVERAGEIFS use the same syntax as Excel. For database-style conditions Excel also offers DSUM, and SUMPRODUCT handles tests that SUMIFS cannot express, such as comparing two columns row by row.

If your criteria come from a lookup, pair SUMIFS with the formulas in our XLOOKUP, FILTER and SORT tutorial. If the source data is messy, clean it first with the steps in the Excel Power Query tutorial, because SUMIFS is only as good as the columns you feed it.

What are the most common SUMIFS errors and how do you fix them?

SymptomCauseFix
#VALUE!Criteria ranges and sum range have different sizes, or the formula points at a closed workbookMake every range the same number of rows; open the source file or bring the data into the same workbook
Result is 0Numbers stored as text, or a trailing space in the data or criteriaConvert with Text to Columns or VALUE, and clean with TRIM
Date window returns 0Dates stored as text, or an operator written without quotesRe-enter dates as real dates; write ">="&DATE(...)
Total looks too smallCriteria apply AND logic, so the filter is stricter than intendedUse OR logic with an array constant or two SUMIFS added together
Wrong total after copying downRanges are relative and slide off the dataUse $ anchors or an Excel Table
#DIV/0! from AVERAGEIFSNo row matches every criterionWrap in IFERROR, or check with COUNTIFS first
Argument order mistakeUsing SUMIF order (sum range last) in SUMIFSPut the sum range first in SUMIFS
Wildcard matches too muchAsterisk or question mark in the data itselfPut a tilde before the character, such as "~*"

Where does SUMIFS fit into a real dashboard?

A dashboard card is a SUMIFS, COUNTIFS or AVERAGEIFS formula whose criteria come from a dropdown or slicer-style selection. Change the dropdown and every card recalculates. The data sheet sits behind it as one flat table, which is the same shape as the worked example above. To colour the rows those formulas count, use our 20 rules for conditional formatting in Excel.

Build the cards in a consistent order. Start with counts (orders, tickets), add totals (net sales), then derive ratios from the other two cells, such as average order value. Dividing two cells you already trust is easier to audit than one long formula. Our sales commission dashboard in Excel shows how quota and payout figures sit on top of this kind of structure.

Which Excel dashboard templates give you a ready data sheet to practise on?

1. Sales Dashboard For Online Store in Excel: best overall

SUMIFS Excel sales dashboard for an online store

This template covers Gross Sales, Net Sales, Discount, Shipping Cost and Profit Margin % across five tabs: Overview, Product Performance, Lead Source, Region and Monthly Trends. You paste a Shopify, WooCommerce, BigCommerce, Magento, Wix or Etsy export into the data sheet and the dashboard refreshes.

Who it is for: e-commerce operators who want a flat, owned reporting layer instead of a monthly subscription. The listing compares it with tools such as Triple Whale, which starts at $299 per month.

  • Gross Sales, Net Sales, Discount, Shipping Cost and Profit Margin % on the Overview page
  • Product profitability drilldowns by product and category
  • Lead source and region breakdowns
  • Monthly trend tracking

Use it to practise: total net sales per region, count orders per lead source, and average margin per month with the formulas above. Price: $17.99, one-time. Get the Sales Dashboard For Online Store in Excel.

Best for: anyone who wants to see SUMIFS-style KPIs in a finished e-commerce report.

2. Channel Sales Dashboard in Excel

Channel sales dashboard in Excel with KPI cards and charts

This dashboard compares retail, distributor, online and wholesale performance from one Data Sheet. It has five analysis pages, KPI cards, charts, slicers and navigation buttons, and it reports gross sales, net sales, profit margin %, product category performance, customer segment contribution and month-wise patterns.

Who it is for: brands, sales teams and distributors who keep channel data in separate files.

Use it to practise: sum net sales by channel, count orders by customer segment, and compare average margin by region. Price: $17.99. See the Channel Sales Dashboard in Excel.

Best for: multi-channel sellers who need a side-by-side view.

3. Regulatory Reporting KPI Dashboard in Excel

Regulatory reporting KPI dashboard in Excel

Seven sheets track compliance, audit performance and financial risk with MTD and YTD actuals, targets and previous-year comparisons. Colour-coded arrows show improvement in green and decline in red, and a month drop-down filters the Dashboard sheet.

Who it is for: finance, compliance and risk teams that report monthly.

Use it to practise: a month selector feeding YTD totals is the same idea as a SUMIFS with a date ceiling. Price: $14.99. Open the Regulatory Reporting KPI Dashboard in Excel.

Best for: teams that think in month-to-date and year-to-date.

4. Health Tech Dashboard Report in Excel

Health tech dashboard report in Excel with appointment KPI cards

This report has 5 KPI cards (Total Appointment, Cancelled %, Pending %, Satisfaction Score and App Login Count) and 5 pivot-driven charts across 4 sheets. The Data Sheet holds one row per appointment, which is the layout COUNTIFS and AVERAGEIFS expect.

Who it is for: clinic operations leads, telemedicine product managers and health-tech founders.

Use it to practise: count cancelled appointments per department, then divide by total appointments to rebuild the Cancelled % card. Price: $7.99. Try the Health Tech Dashboard Report in Excel.

Best for: learning rate calculations from count data.

5. IT Dashboard Report in Excel: best value

IT dashboard report in Excel showing tickets and SLA met percentage

Five KPI cards cover Resolved %, Open %, Customer Rating, Avg. Resolution Time (Days) and SLA Met %. Month, Department and Agent slicers filter the Summary page, and a Report page lists Ticket ID, Assigned Agent, Resolution Time and SLA Status. It needs no VBA or coding.

Who it is for: IT managers, analysts and MSPs.

Use it to practise: AVERAGEIFS for resolution time per agent, and COUNTIFS for tickets with SLA status Met. Price: $6.99. Download the IT Dashboard Report in Excel.

Best for: the lowest-cost way to see ticket KPIs on a working data sheet.

How do you choose between building it yourself and buying a template?

Your situationBetter choice
You need one or two totals in an existing fileWrite the SUMIFS yourself using the steps above
You need a full e-commerce or channel report this weekSales Dashboard For Online Store in Excel ($17.99) or Channel Sales Dashboard in Excel ($17.99)
You report to a compliance or finance leadRegulatory Reporting KPI Dashboard in Excel ($14.99)
You track tickets or appointmentsIT Dashboard Report in Excel ($6.99) or Health Tech Dashboard Report in Excel ($7.99)
You want the formulas inside a larger systemSee the Excel VBA systems roundup

Other worked patterns live in our construction job costing dashboard in Excel, where budget and actual are summed by job and cost code, and in the small business bookkeeping template, where totals are summed by account and month.

When is SUMIFS not the right answer?

SUMIFS is slow on very large sheets. Hundreds of thousands of rows with dozens of SUMIFS cells can make a workbook sluggish, and a PivotTable or Power Query load will recalculate faster.

It also cannot do OR logic natively, cannot test one column against another row by row, and cannot return a list. For those, use SUMPRODUCT, FILTER or a PivotTable. If many people edit the data at once, or you need row-level security and audit history, a database or BI tool is the better home than a workbook.

Finally, SUMIFS cannot fix bad data. If the same region appears as East, east and E. in the source, no formula will reconcile them. Clean the column first.

Frequently asked questions

What does SUMIFS do in Excel?

SUMIFS adds the values in a range for rows that meet every condition you set. You give it the range to total, then pairs of a criteria range and a criterion. For example, it can total net sales where region is East and channel is Online.

What is the difference between SUMIF and SUMIFS?

SUMIF accepts one condition and puts the sum range last. SUMIFS accepts up to 127 condition pairs and puts the sum range first. Because the argument order differs, copying a SUMIF pattern into SUMIFS gives wrong results. Most people use SUMIFS everywhere, since it also works with a single condition.

How do I use SUMIFS with multiple criteria?

Add each extra test as another pair of arguments after the sum range: criteria range, then criterion. A row must pass all tests to be included. For two tests on the same column, such as a minimum and a maximum, list that column twice with different operators.

How do I use SUMIFS between two dates?

Use the same date column twice. The first criterion is greater than or equal to the start date, the second is less than the day after the end date. Join the operator to the date with an ampersand, for example greater-or-equal sign in quotes, then &DATE(2026,2,1).

Can SUMIFS use OR logic?

Not directly, because conditions are joined with AND. Pass an array constant as the criterion and wrap the formula in SUM, such as {East,West} written with quotes, or add two SUMIFS formulas together. Adding two formulas is easier to read and audit for most users.

Why does my SUMIFS formula return 0?

The usual causes are numbers or dates stored as text, extra spaces in the data or criteria, and an operator typed without quotes. Left-aligned numbers are a clue. Convert the column to real numbers, clean text with TRIM, and check that the criteria match exactly.

What is the difference between COUNTIFS and COUNTIF?

COUNTIF counts cells that meet one condition. COUNTIFS counts rows that meet several conditions at once, using the same range and criteria pairs as SUMIFS. It has no sum range, since it returns a count of matching rows rather than a total.

How does AVERAGEIFS handle no matching rows?

AVERAGEIFS returns a #DIV/0! error when no row meets all the criteria, because there is nothing to average. Wrap the formula in IFERROR to show a blank or zero, or run COUNTIFS first so you know whether any rows match.

Does SUMIFS work in Google Sheets?

Yes. Google Sheets supports SUMIFS, COUNTIFS and AVERAGEIFS with the same argument order as Excel, so formulas usually copy across unchanged. Date handling and array constants can differ slightly, so test any OR-logic formulas after moving a file between the two.

How many criteria can SUMIFS take?

SUMIFS accepts up to 127 pairs of criteria range and criterion. In practice, more than five or six pairs becomes hard to read. At that point move the criteria into helper cells, or switch to a PivotTable so the logic is visible.

Get more Excel dashboard templates

Start with the Sales Dashboard For Online Store in Excel at $17.99 for a full e-commerce reporting layer, or pick up the IT Dashboard Report in Excel at $6.99 to practise on ticket data. Each is a one-time purchase.

We publish walkthroughs on the NextGenTemplates YouTube channel. For team planning sheets that pair with these reports, see the team workload and task capacity tracker in Excel.

🎓 Learn to build this yourself. Excel Pivot Tables & Dashboards: Basic to Advanced · $59 launch priceStart the course →
Scroll to Top