SUMIF and SUMIFS Functions in Excel: Complete Guide with Practical Examples

Learning SUMIF and SUMIFS in Excel helps you turn a long list of transactions into meaningful totals. Imagine that you manage sales across several regions and want to know how much revenue comes from East. Instead of filtering the table and adding figures manually, you can calculate that amount with one formula. You can also calculate sales for a particular product within that region.

These functions are useful for business reporting, financial analysis, inventory management and project tracking. Moreover, they let you update calculations automatically when source values change. Furthermore, you do not need advanced programming skills to use them.

This guide explains the syntax, criteria, dates, wildcards and common errors using a consistent dataset. If you are just getting started, read our Excel for Beginners guide or explore the Excel Learning Hub. You can follow every example in a blank worksheet and later practice with the companion workbook.

What Are SUMIF and SUMIFS in Excel?

SUMIF calculates a total for records that satisfy one criterion. For example, a sales manager can add the revenue from all transactions in East. SUMIFS calculates a total for records that satisfy every specified criterion. It can add revenue from East transactions involving laptops only.

The regular SUM function adds numeric values without applying a filter. SUMIF and SUMIFS, by contrast, combine a condition with a calculation. They are sometimes called conditional aggregation functions because they summarize selected records rather than returning a result for each individual row.

Our IF and IFS in Excel guide explains how to classify individual records. SUMIF and SUMIFS answer a different question: how much do the matching records add up to? In practice, both techniques can work together in a reporting workbook.

Microsoft’s SUMIF reference and SUMIFS reference explain the official arguments. The examples below build on those definitions with original sales and project datasets. For related calculations, see the Excel Formulas and Functions guide.

Understanding Criteria and Logical Operators for SUMIF and SUMIFS in Excel

Build the example dataset

Enter the following data in cells A1:E9 of a worksheet named Sales Data. Use actual Excel dates from 2026 and enter the Units and Sales columns as numbers. You can apply currency formatting to Sales without typing currency symbols into the source values.

DateRegionProductUnitsSales ($)
2026-01-05EastLaptop22000
2026-01-08WestMonitor3900
2026-01-12EastMonitor41200
2026-01-18NorthLaptop11000
2026-02-03EastLaptop33000
2026-02-10WestLaptop22000
2026-02-15EastMonitor2600
2026-02-20NorthMonitor51500

The eight transactions represent 22 units and $12,200 in sales. Keep the headers in row 1 and avoid inserting a total row within the data range. In the following sales examples, place formulas outside A1:E9, such as in column H. Each example is independent unless stated otherwise.

Choose the right criteria

A criterion tells Excel which records qualify. It may be a text label, number, comparison or reference to an input cell. The criteria range is the column or group of cells that Excel checks. Meanwhile, the sum range contains the values you want to add.

CriterionMeaning
"East"Match the region East
2000Match exactly 2000
">2000"Greater than 2000
">=2000"At least 2000
"<2000"Less than 2000
"<=2000"At most 2000
"<>East"Not equal to East
G2Match the value in G2
">="&G2At least the numeric value in G2

Importantly, comparisons that contain operators need quotation marks around the operator or complete literal criterion. When the threshold comes from another cell, join the operator and reference with an ampersand. This allows the calculation to respond when the input changes.

SUMIF and SUMIFS in Excel: How SUMIF Works

SUMIF syntax and arguments

=SUMIF(range,criteria,[sum_range])

The first argument identifies the cells to check. The second supplies the condition. Finally, the optional third argument identifies the corresponding cells to add. If you omit it, Excel sums qualifying values from the first range itself. The square brackets in the syntax indicate an optional argument; do not type them in a working formula.

For dependable results, select matching ranges with the same dimensions. In our dataset, B2:B9 covers eight region cells and E2:E9 covers eight sales cells. Row 2 in one range corresponds to row 2 in the other. If you accidentally shift a range by one row, the formula may associate a region with the wrong sales figure.

Keep a simple distinction between the worksheet layout and the purpose of the calculation. A criteria range does not have to sit beside the sum range. It can be several columns away, provided that corresponding positions represent the same records. For example, B2 and E2 represent the same transaction in this dataset. Check these relationships when moving formulas into an existing report.

Calculate sales for East

Enter this formula in H2:

=SUMIF(B2:B9,"East",E2:E9)

Excel checks the Region column for East. The matching records are rows 2, 4, 6 and 8. Their sales amounts are $2,000, $1,200, $3,000 and $600. Consequently, the result is $6,800.

You can verify the answer by adding those four amounts manually. By contrast, the other records remain in the worksheet but do not contribute to this total. If you change the sales amount in E2 from 2000 to 2500, the total increases by $500. Restore the original value before continuing with the next example.

Excel SUMIF function showing the criteria range, criterion and sum range in a conditional sales calculation.

Practical SUMIF and SUMIFS in Excel: Single-Criterion Examples

Calculate total laptop sales

To calculate sales by product instead of region, change the criteria range to column C. Keep the sales column as the sum range.

=SUMIF(C2:C9,"Laptop",E2:E9)

The result is $8,000. For comparison, monitor sales total $4,200. Together, the two product categories account for all $12,200. This is a useful reconciliation check for a dataset where each transaction belongs to one product category.

A useful habit when learning SUMIF and SUMIFS in Excel is to keep the condition and the measure separate in your mind. Here, the condition is Laptop, but the measure is sales revenue. To calculate the number of laptops sold instead, change the sum range to D2:D9. The result is eight units. As a result, the same product criterion can answer different business questions without changing the underlying data.

Sum transactions above a threshold

Sometimes you want to apply the condition directly to the values you are adding. To calculate sales for transactions worth at least $2,000, omit the separate sum range.

=SUMIF(E2:E9,">=2000")

The result is $7,000 because the three qualifying transactions contain $2,000, $3,000 and $2,000. However, replacing the operator with > would exclude both transactions worth exactly $2,000. The result would then be $3,000. Always decide whether the threshold itself should count.

Exclude a region

Use the not-equal operator to add sales from every region except East.

=SUMIF(B2:B9,"<>East",E2:E9)

The result is $5,400. Together with the East total of $6,800, it reconciles to the grand total. In a dataset containing missing region labels, you should decide whether those records belong in the excluded group and handle them explicitly.

Use dynamic criteria and fixed ranges

Type East into G2, then enter this formula in H2:

=SUMIF($B$2:$B$9,G2,$E$2:$E$9)

The result is $6,800. Change G2 to West and the result becomes $2,900. Absolute references keep the source ranges fixed when you copy the formula down, while G2 can change to G3 or G4. You can also use an unanchored version for a single calculation: =SUMIF(B2:B9,G2,E2:E9).

Build a regional summary

To create a compact regional summary, enter East, West and North in G2:G4. Copy the anchored formula from H2 into H3:H4. The results should be $6,800, $2,900 and $2,500 respectively. Together, the three values equal the overall sales total. If another region appears in your data, add it to the summary instead of assuming the current list is complete.

For a dynamic minimum sales amount, put 2000 in G2 instead and use:

=SUMIF(E2:E9,">="&G2)

This returns $7,000. In addition, a controlled input list can make a summary easier to use. See our guide to Excel drop-down lists for a way to limit region choices to valid entries.

SUMIF and SUMIFS in Excel: How SUMIFS Works

SUMIFS syntax and argument order

=SUMIFS(sum_range,criteria_range1,criteria1,[criteria_range2,criteria2],...)

Unlike SUMIF, SUMIFS requires the sum range first. Each subsequent criteria range has its own matching criterion. One pair is required; further pairs are optional. This design allows you to combine several filters within the same calculation.

Consider a manager who needs a report for a specific product in a particular region. The manager could filter the source data by both fields, but a formula provides a reusable summary without changing the visible rows. When new figures replace the existing values, the formula updates its total. A report can contain several such formulas, each with its own clearly labeled criteria.

All ranges must have the same number of rows and columns. Use references covering the same records and start each range on the same data row. Otherwise, Excel may return an error or the calculation may not reflect the intended records.

Calculate East laptop sales

=SUMIFS(E2:E9,B2:B9,"East",C2:C9,"Laptop")

The function checks both Region and Product. Rows 2 and 6 satisfy both criteria, so the result is $5,000. East monitor transactions do not qualify, and neither do laptops sold in West or North. In other words, the formula uses AND logic between criteria pairs.

SUMIFS in Excel combining region and product criteria to calculate total laptop sales in the East region.

Add a third criterion

Suppose you only want East laptop transactions with at least three units. Add the Units column as a third criteria range.

=SUMIFS(E2:E9,B2:B9,"East",C2:C9,"Laptop",D2:D9,">=3")

The result is $3,000. Row 2 contains only two units, so it no longer qualifies. Row 6 satisfies all three criteria. Similarly, changing the minimum quantity to four produces zero, because no record matches all conditions. A zero result is not automatically an error; it may be a legitimate answer.

SUMIF and SUMIFS in Excel: Key Differences

FeatureSUMIFSUMIFS
CriteriaOneOne or multiple
Sum range positionThird, optionalFirst, required
LogicSingle criterionAND between criteria pairs
Typical useTotal by regionTotal by region and product
Example resultEast: $6,800East laptops: $5,000

Choose SUMIF when one straightforward condition is sufficient. Choose SUMIFS when your report requires several filters or when you prefer a consistent syntax for conditional summaries. SUMIFS also supports just one criteria pair, so you do not have to add unnecessary conditions.

When comparing SUMIF and SUMIFS in Excel, think about the maintenance of the workbook as well as the immediate task. A simple formula is often easier for a colleague to review. Conversely, a report designed around multiple filters may benefit from a consistent SUMIFS structure. Both choices are valid as long as the criteria and corresponding ranges express the actual business rule. The workbook examples will allow you to compare these approaches side by side.

Side-by-side comparison of SUMIF and SUMIFS functions in Excel showing syntax and multiple criteria differences.

SUMIF and SUMIFS in Excel: Working with Dates

Calculate monthly sales

Excel stores dates as numeric values. Therefore, you can use comparison criteria to define a reporting period. To calculate January 2026 sales, include dates on or after January 1 and before February 1.

=SUMIFS(E2:E9,A2:A9,">="&DATE(2026,1,1),A2:A9,"<"&DATE(2026,2,1))

The result is $5,100. For February, change the boundaries to February 1 and March 1.

=SUMIFS(E2:E9,A2:A9,">="&DATE(2026,2,1),A2:A9,"<"&DATE(2026,3,1))

February sales total $7,100. The two months reconcile to the grand total of $12,200. Importantly, using the DATE function avoids ambiguities between day-first and month-first regional formats.

Use adjustable date boundaries

Enter a start date in G2 and the first excluded date in G3. Both must be genuine dates rather than text. You can now reuse the formula for different reporting periods.

=SUMIFS(E2:E9,A2:A9,">="&G2,A2:A9,"<"&G3)

For example, January 12 through February 10 inclusive requires G2 to contain January 12 and G3 to contain February 11. The result is $7,200. An exclusive upper boundary is particularly helpful when the data contains time stamps, because it includes transactions throughout the final intended day.

Create a dynamic monthly report

For a reusable monthly report, put the first day of the selected month in G2 and use the EDATE function to determine the beginning of the following month. This removes the need to type different end dates for months of different lengths. In a shared workbook, label G2 clearly as the reporting month and validate that the cell contains an appropriate date.

=SUMIFS(E2:E9,A2:A9,">="&G2,A2:A9,"<"&EDATE(G2,1))

This formula returns $5,100 when G2 contains January 1, 2026. Change the input to February 1 to obtain $7,100. The source ranges remain unchanged, which makes the approach useful when building a report that users refresh regularly.

Using Wildcards and OR Conditions with SUMIF and SUMIFS in Excel

Match part of a text value

Wildcards allow a criterion to match a pattern rather than an exact label. An asterisk represents any sequence of characters, and a question mark represents exactly one character. A tilde before a wildcard makes it literal. These features are useful for product codes or names that follow a consistent convention.

=SUMIF(C2:C9,"Lap*",E2:E9)

This returns $8,000 because all Laptop entries begin with Lap. Similarly, "Monit?r" matches Monitor. If product labels contain an actual asterisk, use ~* to match it literally. Avoid overly broad patterns that may include unintended product names.

Combine alternative conditions safely

To calculate sales in East or West, add the totals from two separate SUMIF formulas. The region categories are mutually exclusive, so each record can contribute at most once.

=SUMIF(B2:B9,"East",E2:E9)+SUMIF(B2:B9,"West",E2:E9)

The result is $9,700. However, separate sums can double count records when conditions overlap. For example, East sales and Laptop sales share two transactions worth $5,000. Subtract the intersection to count each qualifying record only once.

=SUMIF(B2:B9,"East",E2:E9)+SUMIF(C2:C9,"Laptop",E2:E9)-SUMIFS(E2:E9,B2:B9,"East",C2:C9,"Laptop")

This produces $9,800. Similarly, the same principle applies when combining other overlapping groups.

Avoid overlapping criteria with a helper column

A second approach uses a helper column to evaluate whether a row meets either condition. Put the following formula in F2 of the sales worksheet and copy it down to F9. The helper column returns the sale amount for qualifying rows and zero for other rows.

=IF(OR(B2="East",C2="Laptop"),E2,0)
=SUM(F2:F9)

The second formula belongs outside the source data, such as in H2. Its result is also $9,800. This method makes the individual included amounts visible for auditing. It also connects the techniques in our IF and IFS tutorial with the conditional totals covered here. Do not try to represent East or West by requiring the Region column to equal East and West simultaneously in one SUMIFS formula.

Using SUMIF and SUMIFS in Excel for Business

Project expenditure, procurement and risk costs

Consider a separate project cost worksheet named Project Management. Each row describes one planned or incurred cost item. Enter these fictional records in A1:E7. The amounts are illustrative and use a single currency. For procurement, Approved refers to authorization, not necessarily payment.

ProjectCost typeStatusRisk levelAmount ($)
AlphaEquipmentApproved—4500
AlphaServicesApproved—2000
BetaEquipmentPending—3000
AlphaMitigationApprovedHigh1200
BetaMitigationApprovedMedium800
BetaServicesApproved—1500

The total recorded cost is $13,000. Keep this dataset on its own sheet; the formulas below refer to that sheet’s columns, not the earlier sales table.

To calculate recorded costs for Alpha, use:

=SUMIF(A2:A7,"Alpha",E2:E7)

The result is $7,700. This total includes all Alpha items regardless of status. To calculate only approved equipment purchases across both projects, add a criterion for the cost type and another for approval.

=SUMIFS(E2:E7,B2:B7,"Equipment",C2:C7,"Approved")

The result is $4,500. Finally, calculate approved mitigation costs associated with high risks.

=SUMIFS(E2:E7,B2:B7,"Mitigation",C2:C7,"Approved",D2:D7,"High")

The result is $1,200. Together, these formulas provide different views of the same records. Nevertheless, distinguish between authorized, committed and paid costs in real financial reports. A single status field may not capture every accounting distinction.

SUMIF and SUMIFS formulas for project management budget tracking, approved purchases and risk mitigation costs.

Turn calculations into useful reports

Conditional sums can feed a project dashboard or a monthly sales summary. For instance, build one row per region and one column per month, then copy a SUMIFS formula across the report using carefully anchored ranges. A separate control cell can hold the reporting period.

Use conditional formatting to highlight high expenditure or low sales. Our Excel dashboard guide explains how to display those indicators. For a large dataset with many changing categories, a PivotTable may be a more efficient alternative. Keep the source data consistent regardless of the reporting method.

Use Excel Tables for expanding datasets

The fixed ranges in these examples make cell references easy to follow. A real sales register, however, may acquire new rows every week. Convert the sales dataset into an Excel Table and name it SalesData to allow formulas to refer to named columns. The following example uses structured references instead of explicit cell addresses.

=SUMIFS(SalesData[Sales ($)],SalesData[Region],"East",SalesData[Product],"Laptop")

With the original records, this produces $5,000. If you append a valid East laptop transaction to the table, the calculation includes it automatically. Preserve the exact column headers shown in the dataset or adjust the structured references to match your own workbook. A table provides a useful foundation for repeatable reporting with SUMIF and SUMIFS in Excel.

Common Errors When Using SUMIF and SUMIFS in Excel

Check the ranges and argument order

A common error occurs when you copy a SUMIF formula and simply add another condition. Remember that SUMIFS places the sum range first. If the criteria range has eight rows and the sum range has seven, correct the dimensions before trusting the result. SUMIF may infer a differently sized sum range from its starting cell, so aligned ranges are good practice for both functions.

Investigate zero totals and unexpected values

A zero total may mean that no records qualify, that matching values sum to zero, or that the source data contains numeric text. Start by filtering the source table manually and checking whether the expected records appear. Also inspect labels for extra spaces and inconsistent spelling. Use numeric values for amounts and real dates for date criteria.

When a comparison uses a cell reference, check that you joined the operator to the reference correctly. For instance, ">="&G2 uses the value in G2, whereas ">=G2" contains literal characters. Review the formula after copying it to confirm that fixed ranges did not shift.

Troubleshoot errors systematically

An external reference to a closed workbook can cause a #VALUE! error with these functions. Open the referenced workbook and recalculate if necessary. Microsoft’s SUMIF and SUMIFS troubleshooting guide documents additional causes, including inconsistent SUMIFS range sizes and very long criteria strings.

Test the formula on a small set of known records before using it in a report. Check a matching row, a nonmatching row, an exact threshold and a case with no matches. Reconcile subgroup totals to the grand total only when groups form a complete, nonoverlapping partition. This avoids hiding double counting behind a plausible-looking figure.

In addition, keep a short description of the reporting rule beside each total. A label such as Approved equipment costs communicates much more than a label such as Total 2. When requirements change, review the description, the criteria and the formula together. This is especially important in project reports where similarly named measures can refer to different stages of spending.

SUMIF and SUMIFS in Excel: Free Practice Workbook

The companion workbook is planned to include ten worksheets, twenty exercises with automatic feedback, worked formulas and a solutions sheet. You will be able to change the input values and compare the results with the examples in this guide.

Free Excel SUMIF & SUMIFS Practice Workbook — download link pending final asset validation.

Start with the Sales Data sheet, then practice single criteria, multiple criteria, date ranges and wildcards. Next, try the project management scenarios and complete the exercises without looking at the solutions. The workbook will use fictional data, editable inputs and no macros or external data connections.

Frequently Asked Questions About SUMIF and SUMIFS in Excel

What is the difference between SUMIF and SUMIFS?

SUMIF calculates a total based on one criterion. SUMIFS calculates a total based on one or more criteria, requiring all specified conditions to match. They also use a different argument order, so check the syntax when converting a formula.

Can SUMIFS work with only one criterion?

Yes. Supply a sum range, one criteria range and one criterion. For example, =SUMIFS(E2:E9,B2:B9,"East") returns $6,800 on the sales dataset. You can add further criteria pairs later.

How do I use multiple criteria in SUMIFS?

Start with the sum range, then supply a range and criterion for each filter. All range dimensions should match. If you specify East and Laptop, only transactions meeting both conditions contribute to the result.

Can SUMIFS calculate totals between two dates?

Yes. Use the date range twice, once for the inclusive start and once for the exclusive end. Construct dates with DATE or use cells containing real Excel dates. This is useful for monthly reports.

How can I apply OR conditions?

Add separate conditional sums if the groups cannot overlap. If they can overlap, subtract the shared total or use a helper column that marks every qualifying row once. SUMIFS criteria pairs alone use AND logic.

Why does my SUMIFS return zero?

Check the selected ranges, text labels, numeric values and date criteria. A zero can also be correct if there are no matching records. Compare the formula with a manual filter before changing it.

Can SUMIF use wildcard characters?

Yes. Use an asterisk to match a sequence of characters and a question mark to match one character. To match these symbols literally, precede them with a tilde.

Do SUMIF and SUMIFS work in older Excel versions?

Both functions work in Excel 2016 and later versions, including Microsoft 365. Formula separators may differ according to regional settings. If your installation uses semicolons, substitute them for the commas between arguments.

Conclusion

SUMIF and SUMIFS in Excel make conditional totals easier to calculate, review and maintain. Start with one criterion, then add multiple filters and date boundaries as your reports become more detailed. Pay special attention to argument order and overlapping conditions.

Finally, practice with the example datasets and reconcile your results against known totals. Once you feel comfortable with conditional sums, explore the related tutorials in the Excel Learning Hub to develop your reporting skills further.

Get Practical Insights from TechTeamSynergy

Join TechTeamSynergy Weekly for practical insights, frameworks, templates and resources covering Technology, Team and Transformation.

Join TechTeamSynergy Weekly →