Excel Practice Test

โ–ถ

The SUMIFS function in Excel is one of the most practical tools in any analyst's or accountant's repertoire. While the basic SUM formula adds up a range of cells, SUMIFS lets you add up only the cells that meet one or more specific conditions. You can sum all sales from a particular region, all expenses in a given month, or all orders above a certain dollar amount โ€” all in a single formula. If you have ever manually filtered a spreadsheet to add up a subset of data, SUMIFS eliminates that workflow entirely.

SUMIFS was introduced in Excel 2007 as an improvement over the older SUMIF function, which only handles a single condition. The plural S on the end signals its ability to handle multiple criteria simultaneously. Mastering SUMIFS is a milestone in Excel proficiency: once you understand how it works, you unlock a family of related functions (COUNTIFS, AVERAGEIFS) that follow the same pattern, letting you apply your knowledge immediately across a broader set of analytical tasks. Finance teams, operations analysts, and project managers all rely on SUMIFS daily for budgets, sales dashboards, and inventory summaries.

Understanding SUMIFS also prepares you for Excel's broader conditional function family. COUNTIFS counts rows meeting multiple criteria using the same syntax pattern. AVERAGEIFS averages values. MINIFS and MAXIFS (added in Excel 2019) return the minimum or maximum values from a range filtered by criteria. Once you internalize the SUMIFS argument structure โ€” sum range first, then pairs of criteria range and criteria โ€” all five functions feel identical to use. Building competency in SUMIFS is therefore a multiplier: you are not just learning one function, you are learning a family of six that analysts use every single day.

SUMIFS also scales elegantly as your data grows. A well-constructed SUMIFS formula that works on 500 rows works identically on 500,000 rows without modification. Analysts who build dynamic models for small datasets often find those same models still running without alteration years later when the underlying data has expanded dramatically. This scalability is one reason financial modelers prefer SUMIFS over manual filters or pivot tables for calculations embedded in structured reports โ€” the formula keeps producing correct results regardless of how many new rows are added to the source data below.

Consider a practical scenario: a regional sales manager has a spreadsheet with 3,000 transaction rows. Each row has a salesperson name, a product category, a sale date, and a dollar amount. With SUMIFS, one formula gives the manager Q1 sales for Widget A by rep, another gives YTD sales by product, another gives last-month totals by category โ€” all without filtering, copying, or creating separate sheets. The entire analytical layer sits in a summary table, driven by SUMIFS, and updates the moment new transactions are added to the source data below. This is the power of SUMIFS in practical use.

SUMIFS Syntax at a Glance
  • =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
  • sum_range โ€” the column of numbers you want to add up
  • criteria_range1 โ€” the column to check for your first condition
  • criteria1 โ€” the value, text, or expression to match in criteria_range1
  • Additional criteria_range/criteria pairs are optional โ€” up to 127 pairs total
  • All ranges must be the same size and shape

The argument order in SUMIFS is the most common stumbling block for users familiar with SUMIF. In SUMIF, the syntax is =SUMIF(criteria_range, criteria, sum_range) โ€” criteria range comes first, sum range last. SUMIFS flips this: =SUMIFS(sum_range, criteria_range1, criteria1) โ€” sum range first, then your condition pairs. Always double-check the argument order when switching between the two functions, as the mismatch is subtle and produces silent wrong results rather than an error.

Here is a concrete example. Suppose column A holds product names, column B holds regions, and column C holds sales amounts. To sum all sales of Widget A in the North region, write: =SUMIFS(C2:C100, A2:A100, "Widget A", B2:B100, "North"). Excel scans each row: if column A equals Widget A AND column B equals North, it includes that row's column C value in the total. Rows that fail either condition are skipped entirely.

You can use cell references instead of hardcoded values to make formulas dynamic. If E2 holds the product name and F2 holds the region, write =SUMIFS(C2:C100, A2:A100, E2, B2:B100, F2). Change the values in E2 or F2 and the formula recalculates instantly. This pattern is the foundation of dropdown-driven dashboards where users pick a region or time period from a menu and the summary table updates automatically. Pair it with conditional formatting and you can highlight which categories are exceeding their targets in real time.

Absolute references are critical when copying SUMIFS formulas across a table. If your sum range is in column C and you want to copy the formula across multiple columns, lock the criteria ranges with $ signs: =SUMIFS(C$2:C$100, $A$2:$A$100, E2, $B$2:$B$100, F2). The sum range column C will shift as you copy right, while the criteria ranges stay fixed. This pattern is the backbone of multi-column summary tables where each column represents a different metric (units, revenue, cost) but shares the same filtering criteria.

Named ranges take SUMIFS formulas to another level of readability. Instead of =SUMIFS(C2:C100, A2:A100, E2, B2:B100, F2), you can write =SUMIFS(SalesAmt, ProductName, E2, Region, F2). The formula now reads almost like plain English, making it far easier for colleagues to understand and maintain. Define named ranges with Ctrl+F3 or via the Name Box to the left of the formula bar.

For tables formatted with Ctrl+T, Excel automatically creates structured reference names like Table1[Sales Amount] that work the same way and update dynamically as the table grows. Structured references combined with SUMIFS create self-documenting formulas that remain correct even when columns are rearranged.

For teams sharing workbooks, adding a comment to complex SUMIFS formulas (Insert > Comment) explaining what each criteria pair filters saves significant debugging time for anyone who inherits the file. Self-documenting formulas are a mark of professional Excel work.

6 Ways to Use SUMIFS in Real Workbooks

๐Ÿ”ด Sales Dashboard

Sum revenue by product, rep, and region simultaneously. Create a pivot-style table where each cell uses SUMIFS with row and column headers as dynamic criteria. Update a dropdown and the entire dashboard recalculates.

๐ŸŸ  Budget Variance Tracker

Pull actuals by department and cost center for any time period. Subtract from budget figures to get variance. Use SUMIFS with date criteria to show month-to-date, quarter-to-date, or year-to-date spend automatically.

๐ŸŸก Customer Aging Report

Categorize outstanding invoices into 0-30, 31-60, 61-90, and 90+ day buckets using date comparison criteria. Each bucket is a SUMIFS on the invoice amount column filtered by days outstanding range.

๐ŸŸข Inventory Reorder Monitor

Sum on-hand quantities by SKU prefix and warehouse location using wildcards. Compare against reorder points. Flag categories where SUMIFS total falls below threshold using conditional formatting.

๐Ÿ”ต Payroll Reconciliation

Match payroll system totals against accounting system entries by department and pay period. Two SUMIFS formulas side by side with a variance column โ€” any non-zero result flags a discrepancy for investigation.

๐ŸŸฃ Marketing Attribution

Attribute revenue to campaigns, channels, and time windows. Sum conversions by UTM source, campaign name, and date range to calculate cost-per-acquisition and ROAS without leaving Excel or exporting to another tool.

Criteria in SUMIFS can take several forms beyond simple text or number matches. Comparison operators let you filter by range: >100 matches values above 100, <=500 matches values at or below 500. When using operators, wrap the expression in quotes: =SUMIFS(C2:C100, C2:C100, ">100"). To combine an operator with a cell reference, use the ampersand: =SUMIFS(C2:C100, C2:C100, ">"&E2) where E2 holds your threshold value.

Date criteria work the same way. If column D holds order dates and you want to sum sales in January 2025, use two conditions on the same date column: =SUMIFS(C2:C100, D2:D100, ">=1/1/2025", D2:D100, "<=1/31/2025"). For dynamic date ranges, the DATE function is cleaner and avoids locale-dependent format ambiguity. The formula becomes =SUMIFS(C2:C100, D2:D100, ">="&DATE(2025,1,1), D2:D100, "<="&DATE(2025,1,31)), which works correctly regardless of whether the workbook is opened in the US, UK, or Europe.

Wildcards extend SUMIFS to partial text matches. The asterisk (*) matches any sequence of characters; the question mark (?) matches a single character. To sum all sales where the product name starts with Pro, use =SUMIFS(C2:C100, A2:A100, "Pro*"). This is particularly useful with product SKUs, department codes, or category prefixes. The tilde (~) escapes wildcard characters if you need to match a literal asterisk or question mark in your data. This wildcard behavior mirrors how the COUNTIF function in Excel works, so learning one applies directly to the other.

Combining multiple criteria on the same column unlocks between-range filtering. To sum sales where units sold is between 10 and 50 inclusive, use two criteria on the units column: =SUMIFS(Revenue, Units, ">=10", Units, "<=50"). Both conditions must be true for a row to be included, which naturally implements the between-range filter without any helper column. This pattern applies equally to dates, amounts, scores, or any numeric field where you need to isolate a specific range of values rather than an exact match.

Text criteria in SUMIFS support the full range of Excel's text comparison capabilities. Exact match is the default: criteria "North" matches only cells containing exactly North, case-insensitively. For begins-with matching, append an asterisk: "North*" matches North, Northeast, Northampton. For ends-with, prepend: "*East" matches Northeast, SouthEast. For contains, wrap in asterisks: "*Exec*" matches Executive, Director Executive, Executive VP. These patterns handle the messy real-world data that rarely conforms to perfectly standardized values, making SUMIFS robust even when your source data has inconsistent formatting or mixed naming conventions across different teams or time periods.

๐Ÿ“‹ Sales Analysis

Sum monthly sales by rep and region: =SUMIFS(Sales, RepCol, "Martinez", RegionCol, "East", MonthCol, "March"). Use named ranges (Ctrl+F3) to make formulas readable across large models. Combine with a pivot-style summary table where rows are reps and columns are months โ€” each cell runs SUMIFS with row/column headers as criteria references.

For year-to-date totals, combine SUMIFS with today's date: =SUMIFS(Sales, DateCol, ">="&DATE(YEAR(TODAY()),1,1), DateCol, "<="&TODAY()). This automatically updates every day without changing the formula.

๐Ÿ“‹ Budget Tracking

Track actuals vs. budget by department and cost center: =SUMIFS(Actuals, DeptCol, B2, CostCenterCol, C2). Set up a budget vs. actual table where each row uses SUMIFS to pull the actual spend for that department/cost center combination. Subtract from budgeted amounts to calculate variance automatically.

For multi-month budget tracking, add a month criteria: =SUMIFS(Actuals, DeptCol, B2, MonthCol, "<="&CurrentMonth) gives you cumulative spend-to-date, which you can compare against the same portion of the annual budget.

๐Ÿ“‹ Inventory Management

Sum inventory quantities by warehouse and SKU prefix: =SUMIFS(Qty, WarehouseCol, "WH-East", SKUCol, "ELEC*"). Wildcards let you aggregate entire product families without listing every SKU. Use this to build a reorder dashboard that flags categories where total on-hand quantity falls below the reorder point threshold.

For FIFO valuation, combine SUMIFS with DATE criteria to sum quantities received within a specific cost period, then calculate average cost per unit across that window before applying it to current inventory valuation.

SUMIFS integrates naturally with other Excel functions to build more sophisticated calculations. Wrapping SUMIFS in IFERROR handles cases where criteria columns are empty or ranges do not exist yet: =IFERROR(SUMIFS(C2:C100, A2:A100, E2), 0) returns zero instead of an error. This is essential in templates where some rows may not be filled in yet, especially shared workbooks that new users populate incrementally over time.

To sum with OR logic โ€” where you want rows matching condition A OR condition B โ€” add separate SUMIFS calls together: =SUMIFS(C2:C100, A2:A100, "Widget A")+SUMIFS(C2:C100, A2:A100, "Widget B"). Be careful not to double-count rows that match both conditions. As an alternative, SUMPRODUCT with Boolean arrays handles complex OR/AND combinations in a single expression: =SUMPRODUCT(((A2:A100="Widget A")+(A2:A100="Widget B")>0)*C2:C100). The SUM formula in Excel underpins both approaches; understanding when each is appropriate keeps your workbooks clean and easy to audit.

Dynamic array SUMIFS, available in Microsoft 365, can return arrays of totals for multiple criteria at once. Write =SUMIFS(C2:C100, A2:A100, F2:F10) where F2:F10 lists all the products you want totals for โ€” the formula spills ten results into a column automatically without copying down. Combined with UNIQUE and SORT functions, you can build fully automated summary tables that expand as new products or regions are added to your source data, eliminating the need to manually update formula ranges or add new rows to your dashboard.

Another powerful integration is SUMIFS with OFFSET or INDEX to create rolling window calculations. A rolling 3-month sum formula uses SUMIFS with date criteria derived from TODAY() minus 90 days: =SUMIFS(Sales, DateCol, ">="&(TODAY()-90), DateCol, "<="&TODAY()). This formula always shows the most recent 90 days of activity without any manual date updates. For fiscal calendar offsets where your fiscal year does not start in January, wrap the date calculation in a helper that converts fiscal periods to calendar dates, then feed those calendar dates as criteria.

Performance optimization matters when SUMIFS runs on very large datasets or recalculates frequently. The main levers are: (1) reduce range size to only the rows that could ever contain matching data โ€” avoid entire-column references like A:A; (2) put the most selective criteria first (the one that eliminates the most rows) so Excel short-circuits evaluation early; (3) use Excel Tables instead of plain ranges, as structured references update automatically and are processed efficiently by the calculation engine; (4) consider switching to a data model and Power Pivot DAX measures for datasets exceeding one million rows.

For most workbooks with tens of thousands of rows, a well-structured SUMIFS formula calculates in milliseconds and never requires optimization beyond keeping range sizes bounded.

One advanced pattern worth mastering is using SUMIFS with helper columns for computed categories. If your source data is granular (individual transactions) but you need to summarize by fiscal quarter, customer tier, or age bucket, add a helper column that computes the category with a formula, then reference that helper column in your SUMIFS criteria range. This is faster than embedding the computation logic inside SUMIFS itself and makes the formula logic much easier to audit and modify later.

SUMIFS also excels at data reconciliation. If you have sales data from your CRM and payment data from your accounting system, SUMIFS can tell you whether the two match at the customer-month level: sum CRM sales for a given customer in March, sum accounting receipts for the same customer in March, subtract โ€” any non-zero result flags a discrepancy.

This scales to thousands of customers using a table where each row runs two SUMIFS calls and a variance column. Combining SUMIFS with standard deviation in Excel adds another analytical layer, helping you identify not just whether discrepancies exist but whether they fall within normal variation or represent genuine outliers worth investigating.

Building a SUMIFS-based reporting dashboard starts with a clean data table: one header row, consistent column types, no merged cells, no blank rows mid-data. The SUMIFS formulas reference this table, while the dashboard area is a separate zone of the workbook โ€” ideally a separate sheet โ€” containing dropdown menus for selecting filters and cells that display the SUMIFS results. This separation between data and presentation is a core Excel modeling principle that keeps workbooks maintainable over time.

Version compatibility is worth noting: SUMIFS works in Excel 2007 and later on Windows and Mac, and in all recent versions of Excel for the web. MINIFS and MAXIFS require Excel 2019 or Microsoft 365. SUMPRODUCT as a SUMIFS alternative works in Excel 2003 and later, making it useful if you need backward compatibility with very old versions โ€” though in practice, Excel 2007 compatibility covers virtually all modern business environments.

Google Sheets also supports SUMIFS with identical syntax, so formulas written in Excel transfer directly to Google Sheets without modification, a practical benefit for teams that work across both platforms.

Auditing SUMIFS formulas is straightforward: select the formula cell and press Ctrl+[ to jump to all referenced ranges simultaneously. For complex nested formulas, use Evaluate Formula (Formulas tab) to step through the calculation and see intermediate results. The Watch Window (Formulas tab) lets you monitor a SUMIFS result cell while editing data elsewhere in the workbook, useful for verifying that formula results change as expected when test values are entered. These native Excel tools make SUMIFS formulas transparent and easy to verify during both development and ongoing maintenance.

Test Your Excel Skills
127
Max criteria pairs per SUMIFS call
2007
Excel version that introduced SUMIFS
3x
Faster than SUMPRODUCT on large ranges
0
Return value when no rows match (not an error)
1M+
Excel rows SUMIFS can process
5+
Sister functions: COUNTIFS, AVERAGEIFS, MINIFS, MAXIFS, SUMPRODUCT

Pros

  • Live updates automatically when source data changes
  • Can reference criteria from cells for dynamic dashboards
  • No setup required โ€” one formula, immediately usable
  • Works inside other formula chains (IFERROR, SUMPRODUCT, etc.)
  • Handles date range criteria directly without grouping steps

Cons

  • Formula complexity grows with each added criteria pair
  • No built-in drill-down to see the underlying rows
  • Can become slow with very large datasets and many criteria
  • Harder to audit than a pivot table's visual layout
  • Requires exact range alignment โ€” no auto-expand like pivot tables
Practice Excel Questions

Excel Questions and Answers

What is the difference between SUMIF and SUMIFS?

SUMIF handles one condition; SUMIFS handles multiple conditions simultaneously. The argument order also differs: SUMIF uses (criteria_range, criteria, sum_range) while SUMIFS uses (sum_range, criteria_range1, criteria1). For any new formula, prefer SUMIFS โ€” it is strictly more capable than SUMIF and handles the single-condition case just as well.

Can SUMIFS use wildcard characters?

Yes. The asterisk (*) matches any sequence of characters and the question mark (?) matches a single character. For example, =SUMIFS(C2:C100, A2:A100, "Pro*") sums all rows where column A starts with Pro. Use a tilde (~) to escape a literal asterisk or question mark in your data.

Why does my SUMIFS return 0 when I expect a non-zero result?

The most common causes are: text stored as numbers or numbers stored as text, where the format mismatch means nothing matches; extra spaces in your criteria column that are not visible but break the match; or criteria range and sum range sizes that do not align. Try TRIM() on your criteria column and check cell formats with Ctrl+1.

How do I use SUMIFS with date ranges?

Use two criteria on the same date column: =SUMIFS(C2:C100, D2:D100, ">="&DATE(2025,1,1), D2:D100, "<="&DATE(2025,1,31)). The DATE function avoids ambiguity from regional date format differences. You can also reference cells containing start and end dates directly.

Can SUMIFS sum across multiple sheets?

Not directly with a single SUMIFS formula. For multi-sheet summing, consolidate your data into one sheet first using Power Query. Alternatively, INDIRECT can reference sheet names dynamically but it is volatile and recalculates constantly, slowing your workbook. Power Query consolidation is the cleanest solution.

How do I sum with OR logic in SUMIFS?

SUMIFS applies AND logic by default โ€” all conditions must match. For OR logic, add multiple SUMIFS calls together: =SUMIFS(C2:C100, A2:A100, "Widget A")+SUMIFS(C2:C100, A2:A100, "Widget B"). Be careful not to double-count rows that match both conditions simultaneously.
โ–ถ Start Quiz