Conditional Counting and Summing in Spreadsheets

Learn to count, add up, average and find the largest or smallest values in a list for only the rows that meet your conditions. Write criteria with comparisons, dates, blanks and wildcards; use COUNTIFS, SUMIFS, AVERAGEIFS, MAXIFS and MINIFS; build summary tables that copy correctly and handle either-or conditions; and use SUMPRODUCT for weighted totals and conditions the other functions cannot express. A small sales list runs through the whole material, with short extra examples for order totals, weighted averages and budget checks, and each topic shows the mistakes that give wrong answers without an error.

IntermediateLesson 2 of 7 in Spreadsheet Formulas and Functions Course

What you will learn

  1. Understand how conditional functions test each row of a list, and write criteria that use comparisons, cell references, dates, blanks and wildcards.
    • Count the rows that meet one condition with COUNTIF
      See how a range and a criterion select rows, and count the matches in a well-organized list.
    • Write criteria with comparisons, cell references, dates and blanks
      Build criteria that compare numbers, text and dates, take their values from cells, and find empty or filled cells.
    • Match partial text with wildcards
      Use the asterisk, question mark and tilde to match text that begins with, ends with or contains a pattern.
  2. Use COUNTIFS, SUMIF and SUMIFS, AVERAGEIF and AVERAGEIFS, and MAXIFS and MINIFS to summarize the rows that meet one or more conditions, and read their results correctly.
    • Count the rows that meet several conditions with COUNTIFS
      Combine conditions on one or more columns so that only rows meeting all of them are counted.
    • Add up values with SUMIF and SUMIFS
      Total the values in one column for the rows that meet conditions in other columns, with the arguments in the right order.
    • Average values with AVERAGEIF and AVERAGEIFS
      Find the average of the rows that meet conditions, and understand how blanks, zeros and empty results affect it.
    • Find the largest and smallest matching values with MAXIFS and MINIFS
      Return the highest or lowest value among the rows that meet one or more conditions, including dates, and recognize when no row matched.
  3. Turn conditional formulas into summary tables that copy correctly, handle either-or conditions without counting rows twice, and find and fix wrong results.
    • Build a summary table that copies correctly
      Lay out categories as criteria cells and write one formula with absolute and mixed references that fills the whole table.
    • Combine conditions with OR and exclusions
      Count and sum rows that meet one condition or another without counting any row twice, and leave out unwanted categories.
    • Find and fix wrong conditional results
      Recognize the typical causes of zero, too-small and error results in conditional formulas, and check results against the data.
  4. Use SUMPRODUCT to multiply and add arrays, build conditions from comparisons, and choose between it and the conditional functions.
    • Multiply and add arrays with SUMPRODUCT
      Use SUMPRODUCT for totals of quantity times price and for weighted averages, with ranges of matching size.
    • Add conditions inside SUMPRODUCT
      Turn comparisons into ones and zeros to count and sum with AND, OR and conditions the conditional functions cannot express.
    • Choose between the conditional functions and SUMPRODUCT
      Decide which function answers a summary question most clearly and reliably, and use one method to check the other.

Conditional Counting and Summing study guide

4 chapters

1

Pick out the right rows with criteria

Useful summaries begin with a precise choice of records. A criterion tells a function which stored values to accept, whether that means a region name, a numeric cutoff, a period of dates or part of a product name. You will build those tests on a small sales list, distinguish a count from a total, and see how quotes, cell references and text patterns change what a formula selects.

1.1 Count matching records

A conditional calculation starts by choosing which records belong in the answer. A criterion is the test used to make that choice. COUNTIF adds one to the count for each cell that passes its test; it does not add the numbers stored in those cells.

A sales list to work with

Enter this list in A1:F11. Each date is a real spreadsheet date in March 2026. Revenue is an amount with no currency symbol.

RowDateRegionRepProductUnitsRevenue
2March 2, 2026NorthAnaDesk lamp12480
3March 3, 2026SouthBenOffice chair4760
4March 5, 2026NorthChenOffice chair3570
5March 9, 2026EastAnaDesk lamp20800
6March 12, 2026SouthDevStanding desk2900
7March 16, 2026NorthBenDesk lamp8320
8March 19, 2026EastChenStanding desk1450
9March 23, 2026SouthAnaDesk organizer15225
10March 26, 2026NorthDevOffice chair5950
11March 30, 2026EastBenDesk organizer10150

The headers are Date, Region, Rep, Product, Units and Revenue in columns A through F. Keep one record per row and one kind of information per column. Leave subtotal rows out of the data range: a subtotal is not another sale.

Write the range, then the criterion

The syntax is COUNTIF(range, criteria). In =COUNTIF(B2:B11,"North"), the range is the ten region cells and the criterion is the text "North". Rows 2, 4, 7 and 10 match, giving 4 sales. South and East each have 3 sales.

Text goes in straight double quotes. A numeric equality can use a number directly: =COUNTIF(E2:E11,12) returns 1. To count records with at least 10 units, use =COUNTIF(E2:E11,">=10"). Four cells match: 12, 20, 15 and 10. The answer is 4 records, even though those records contain 57 units. A total of units needs SUMIF.

Let a label control the answer

Put North in H2 and write =COUNTIF(B2:B11,H2). Changing H2 to South changes the answer from 4 to 3. Keep H2 outside quotation marks so Excel reads the cell's value. An empty criteria cell is treated as 0; it does not ask for all categories.

COUNTIF ignores letter case: "north" matches "North". It still distinguishes spelling and spaces. A region entered as "North " has an extra trailing space and fails the criterion "North". Standardize labels instead of giving the same region several names.

Turn a count into a share

All ten region cells are filled, so =COUNTIF(B2:B11,"North")/COUNTA(B2:B11) returns 0.4. Percentage formatting displays 40%. The denominator counts all records, while the numerator counts North records. COUNT would be unsuitable for this denominator because region names are text.

These formulas use English function names and commas between arguments. A spreadsheet using a decimal comma may need semicolons between arguments, as in =COUNTIF(B2:B11;"North").

Key Takeaways

  • COUNTIF counts matching cells; SUMIF adds matching values.
  • Use one header row and one record per data row, without subtotals inside the list.
  • Put text criteria in quotes and cell references outside quotes.
  • Letter case does not affect COUNTIF, but spelling and spaces do.
  • A matching count divided by the total record count gives a share.

1.2 Build comparisons, date limits and blank tests

A criterion can ask for an exact value, a comparison or an empty cell. Write the test in the form the function expects, and compare the stored value even when the cell displays a formatted percentage or date.

Join operators to values
CriterionMeaning
500 or "=500"Equal to 500
">500"Greater than 500
">=500"At least 500
"<500"Less than 500
"<=500"At most 500
"<>500"Not equal to 500

=COUNTIF(F2:F11,">500") returns 5. The matching revenues are 760, 570, 800, 900 and 950. If H4 contains 500, write =COUNTIF(F2:F11,">"&H4). The & joins the quoted operator to the value in H4. Changing H4 to 800 leaves two matches, 900 and 950.

">H4" puts the letters H4 inside the criterion instead of reading the cell. ">"H4 leaves out the joining operator and is not valid formula syntax. For equality with H4, use H4 directly. A text label such as "North" needs quotes; unquoted North is read as a defined name and produces #NAME? when that name does not exist.

Use real dates and two boundaries

A date is stored as a day number. A time adds a fraction of a day. Put March 16, 2026 in H1 as a date, then count sales from that day onward with =COUNTIF(A2:A11,">="&H1). The answer is 5. ">="&DATE(2026,3,16) constructs the same boundary without relying on a typed date string's regional order.

A period needs two tests on the date column. With March 23, 2026 in H2, =COUNTIFS(A2:A11,">="&H1,A2:A11,"<"&H2) includes March 16 and March 19, giving 2. It excludes March 23.

To include the whole date in H2, even when records contain times, end with "<"&(H2+1). A test of "<="&H2 reaches only midnight at the start of that date. The next-day boundary includes afternoon entries while excluding the following day. A numeric interval works the same way: use separate ">=400" and "<=800" tests, not ">=400 and <=800" as one criterion.

Distinguish empty values from zero

In Excel, "" matches truly empty cells and formulas returning empty text. The criterion "<>" excludes truly empty cells but counts a cell containing a formula, even when its result is "". A formula returning empty text can therefore count in both tests; these two counts are not always complementary. COUNTA also counts that formula cell. A space and a numeric zero pass "<>" too.

A specific exclusion such as "<>North" also admits empty region cells. Add a separate "<>" condition to exclude truly empty cells as well. Check formula-produced labels for empty-text results separately.

A percentage displayed as 40% stores 0.4. It meets ">0.35", not ">35". For text, comparisons follow alphabetical order without case sensitivity: =COUNTIF(C2:C11,"<C") counts Ana and Ben, giving 6 sales. Chen comes after the single letter "C".

Key Takeaways

  • Quote a comparison operator and join a cell value with &, as in ">"&H4.
  • Use a date cell or DATE to build date criteria.
  • An interval needs a lower test and an upper test on the same column.
  • Use a next-day exclusive upper bound to include a whole day of timestamps.
  • In Excel, a formula returning empty text can count in both "" and "<>" tests; zero is a numeric value.
  • Compare stored percentages as decimals.

1.3 Choose text patterns with wildcards

A product list often contains families of names. Wildcards let a criterion describe part of a text value. The position of each wildcard changes what the pattern accepts, so begin with the wording of the question: starts with, ends with or contains.

Place the asterisk where text may vary

An asterisk, *, matches any sequence of characters, including no characters. In the sales list, D2:D11 contains the products.

CriterionWhat it selectsCount
"Desk*"Names beginning with Desk5
"*desk"Names ending with desk2
"*desk*"Names containing desk anywhere7
"Desk"The exact name Desk0

=COUNTIF(D2:D11,"Desk*") selects the three Desk lamp sales and the two Desk organizer sales. The pattern "*desk*" also selects both Standing desk sales. Matching ignores case, so lowercase "desk" still finds "Desk lamp".

The broader pattern changes the group itself. A report on products whose names start with Desk should not include Standing desk. Inspect the names selected by a pattern before using its total as a category total.

Match a fixed number of characters

A question mark, ?, matches exactly one character. =COUNTIF(C2:C11,"???") counts rep names with three characters. Ana, Ben and Dev match; Chen does not. Their sales add up to 8 records. Spaces also count as characters, so an extra space can change whether a fixed-length pattern matches.

A wildcard is a text tool. =COUNTIF(E2:E11,"1*") returns 0 for the numeric Units column; it does not find numeric values starting with the digit 1. To count numbers at least 10, use a numeric comparison such as ">=10".

Search for a real question mark

A tilde, ~, escapes a wildcard: ~? means an actual question mark and ~* an actual asterisk. For comments in G2:G50, =COUNTIF(G2:G50,"*~?*") finds comments containing a question mark anywhere. Without the tilde, "*?*" asks for text containing at least one character. It would count ordinary comments with no question mark.

Use a changing search term or add matching values

If H5 contains chair, =COUNTIF(D2:D11,"*"&H5&"*") counts the three Office chair sales. Both asterisks are quoted text joined to the cell value. "<>*desk*" excludes product names containing desk, leaving the three chair sales.

The same criteria work in SUMIF and the IFS functions. =SUMIF(D2:D11,"Desk*",F2:F11) adds 480, 800, 320, 225 and 150, giving 1,975. The criterion selects product cells; the value range supplies revenue.

An ordinary equality comparison does not interpret wildcards. =D2="Desk*" tests for the literal value "Desk*". To use a wildcard pattern, put it in a function that supports criteria. If an exact name fails because of a trailing space, clean the name; adding a broad wildcard can hide the space while also admitting unwanted products.

Key Takeaways

  • An asterisk matches any number of text characters; a question mark matches exactly one.
  • Wildcard placement distinguishes starts with, ends with and contains.
  • A tilde makes an asterisk or question mark literal.
  • Wildcards match text, not numeric prefixes.
  • Ordinary equality comparisons do not interpret wildcard patterns.
2

Count, sum, average and find extremes with conditions

Once the right rows are selected, the operation determines what the answer means. A count tells you how many records match; a total, average, maximum or minimum describes their values in a different way. You will use each conditional function, follow the ranges through a worked selection, and learn how zeros, missing numbers and absent categories affect the result you report.

2.1 Keep rows that meet every condition

COUNTIFS counts records that pass several tests at once. Each test is a pair: the range to inspect followed by its criterion. The tests can refer to different columns or set two boundaries on one column.

Follow one record through all the tests

The syntax is COUNTIFS(criteria_range1, criteria1, criteria_range2, criteria2, ...). For North lamp sales, write =COUNTIFS(B2:B11,"North",D2:D11,"Desk lamp"). Row 2 passes both tests, so it contributes 1. Row 4 is North but sells a chair, so it contributes 0. Row 7 passes both, giving a final count of 2.

This is AND logic: every condition must hold in the same record. Excel supports up to 127 range-and-criterion pairs. A single pair also works, giving the same answer as COUNTIF.

Add a units test to count North chair sales with at least 4 units:

=COUNTIFS(B2:B11,"North",D2:D11,"Office chair",E2:E11,">=4")

Rows 4 and 10 are North chair sales, but their units are 3 and 5. Only row 10 passes the third test, so the result is 1. The order of the pairs does not change the selected records.

Put both limits on the same range

To count sales from 5 through 12 units inclusive, use =COUNTIFS(E2:E11,">=5",E2:E11,"<=12"). The matching values are 12, 8, 5 and 10, giving 4. Repeating a range is useful because each row's number must satisfy both limits.

For dates, put March 16, 2026 in H1 and March 23, 2026 in H2. =COUNTIFS(A2:A11,">="&H1,A2:A11,"<"&H2) selects March 16 and March 19. March 23 is excluded by the upper boundary. Using date cells lets the report period change without editing the formula.

Match both size and position

Every criteria range must have the same number of rows and columns. B2:B11 has ten cells, while D2:D10 has nine. Combining them gives #VALUE! because the function cannot pair every position.

Equal size alone is not enough. B2:B11 and D3:D12 both have ten cells, but each region would be tested beside the product one row lower. That formula can return an ordinary number that answers the wrong question. Check the first and last row of every range, not just its length.

Recognize an impossible combination

=COUNTIFS(B2:B11,"North",B2:B11,"East") returns 0. A region cell cannot equal two different region names at once. COUNTIFS does not turn the two criteria into "North or East".

Two conditions on one column are not always impossible. A unit count of 8 can be both at least 5 and at most 12. The question is whether one stored value can pass both tests. For separate alternatives such as North or East, add disjoint counts or use an OR calculation that handles overlap.

Key Takeaways

  • COUNTIFS joins range-and-criterion pairs with AND.
  • Each record must pass every test in the same row.
  • Repeat a range to set compatible lower and upper boundaries.
  • All ranges must have the same dimensions and refer to corresponding records.
  • Two different equality criteria on one cell do not create OR.

2.2 Total the values from selected rows

A conditional sum tests one set of cells and adds values from corresponding positions. In the sales list, the Region column can choose the records while the Revenue column supplies the amounts to add.

Start with SUMIF

SUMIF(range, criteria, sum_range) puts the tested range first and the values to add last. =SUMIF(B2:B11,"South",F2:F11) finds South in rows 3, 6 and 9. It adds revenues 760, 900 and 225, giving 1,885. It counts no other region's revenue.

The last argument is optional. Without it, SUMIF adds the tested values themselves. =SUMIF(F2:F11,">500") selects revenues above 500 and adds 760, 570, 800, 900 and 950, giving 3,980. COUNTIF with that criterion would return 5 records, not their revenue.

Put the values first in SUMIFS

SUMIFS(sum_range, criteria_range1, criteria1, ...) moves the values to the first position. To total North sales with at least 5 units, write =SUMIFS(F2:F11,B2:B11,"North",E2:E11,">=5"). The matching revenues are 480, 320 and 950, giving 1,750.

FunctionFirst argumentPosition of value range
SUMIFRange to testThird; optional
SUMIFSRange to addFirst; required

SUMIFS can use one condition or up to 127 pairs. Reading it as "add revenue where region is North and units are at least 5" helps check the order. =SUMIFS(B2:B11,F2:F11,">500") instead tries to add region names where revenue exceeds 500. The text contributes nothing, giving 0.

Keep each amount with its record

In SUMIFS, every criteria range must match the sum range's size and shape. Different dimensions cause #VALUE!. Equal dimensions with different starting rows can still give an incorrect total.

SUMIF can conceal even a size mismatch. It uses the first cell of sum_range as the start of an area shaped like the tested range. Give it matching full ranges explicitly. =SUMIF(B2:B11,"South",F3:F12) is shifted one row and adds 570, 320 and 950. It returns 1,840 without an error, although South revenue is 1,885.

Only numeric values contribute to the sum. A revenue imported as the text "950" is skipped. If North's final revenue were stored that way, its total would fall from 2,320 to 1,370. Changing the number format alone does not turn stored text into a number; convert the data.

Read totals alongside counts

With March 16, 2026 in H1, =SUMIFS(F2:F11,A2:A11,">="&H1) returns 2,095. This is revenue from that date onward, not a count of sales. North revenue divided by all revenue is 2,320 divided by 5,605, about 41.4%.

To use a matching row count as the average denominator, check that at least one row matches and every selected value is numeric. If a revenue is missing, the row still counts but has no amount to average. Use the number of matching numeric values as the denominator, or use AVERAGEIFS directly.

Key Takeaways

  • SUMIF puts its value range third; SUMIFS puts it first.
  • SUMIF without a value range adds the tested cells themselves.
  • SUMIFS includes only rows passing every criterion.
  • Align range positions as well as dimensions.
  • Text amounts and empty value cells contribute nothing to the sum.
  • A row count is an average denominator only when every matching value is numeric.

2.3 Average the matching numbers

An average describes the size of a matching numeric value. It depends on both the matching total and how many numbers contributed to that total. A missing value and a real zero therefore have different effects.

Select the group, then average its values

AVERAGEIF(range, criteria, average_range) follows the SUMIF order. =AVERAGEIF(B2:B11,"East",F2:F11) selects revenues 800, 450 and 150. Their total is 1,400; dividing by three numeric values gives approximately 466.67. The unrounded result remains in the cell even if the display shows two decimal places.

For several criteria, use AVERAGEIFS(average_range, criteria_range1, criteria1, ...). Put the values first and align every criteria range with them. =AVERAGEIFS(F2:F11,D2:D11,"Office chair",B2:B11,"<>South") selects the North chair revenues 570 and 950. Their total of 1,520 divided by 2 gives 760. AVERAGEIFS requires all ranges to have the same size and shape.

Decide whether an absent value is unknown or zero

North's original revenues are 480, 570, 320 and 950. The average is 580. If row 7's revenue is empty, the average uses three numbers: 480, 570 and 950. Their sum of 2,000 divided by 3 is approximately 666.67.

If row 7 instead contains 0, four numbers contribute. The sum is still 2,000, but dividing by 4 gives 500. Enter 0 when the amount really is zero. Leave an unknown amount missing so the average does not treat it as a measured zero. Text in the average range is also excluded.

Selected valuesNumeric countAverage
480, 570, 320, 9504580
480, 570, empty, 9503≈ 666.67
480, 570, 0, 9504500
Handle a group with no numbers

=AVERAGEIF(B2:B11,"West",F2:F11) gives #DIV/0! because there are no West revenues. The same error occurs when matching rows exist but every value is empty or text. A zero result would mean a calculated mean of zero, which is different from having nothing to average.

For the complete numeric sales list, a count guard can display a message: =IF(COUNTIF(B2:B11,"West")=0,"No sales",AVERAGEIF(B2:B11,"West",F2:F11)). On an incomplete list, check numeric completeness too; a positive row count does not guarantee an average can be calculated. Check the cause before using IFERROR, since it would hide a range-size error as well as a missing-group error.

Combine groups using their sizes

The regional averages are 580, approximately 628.33 and approximately 466.67. Taking their simple mean gives approximately 558.33, not the overall average of 560.50. North has four sales while South and East have three each, so the simple mean gives the smaller groups too much influence.

Add group sums and divide by the combined numeric count. Here, 2,320 plus 1,885 plus 1,400 gives 5,605, and 4 plus 3 plus 3 gives 10. Their quotient is 560.50. Keep full precision until the final display; do not build a combined mean from rounded group averages.

Key Takeaways

  • AVERAGEIF puts the value range last; AVERAGEIFS puts it first.
  • Empty cells and text are excluded from the average range, but zero is included.
  • No matching numbers produces #DIV/0!, not an average of zero.
  • A matching row count does not detect missing numeric values.
  • Combine group sums and numeric counts to find an overall average.

2.4 Find a matching maximum, minimum or date

The largest or smallest value can answer a different question from a total. MAXIFS and MINIFS search only the records that pass their criteria. Their result is the value found, not a description of the record that contains it.

Keep the value range first

The syntax is MAXIFS(max_range, criteria_range1, criteria1, ...) or MINIFS(min_range, criteria_range1, criteria1, ...). Like SUMIFS, both functions require every condition to hold for the same record.

For Ana's largest revenue, use =MAXIFS(F2:F11,C2:C11,"Ana"). Ana's values are 480, 800 and 225, so the result is 800. To find the smallest South revenue, =MINIFS(F2:F11,B2:B11,"South") compares 760, 900 and 225 and returns 225.

Adding criteria narrows the candidates. =MAXIFS(E2:E11,B2:B11,"North",D2:D11,"Desk lamp") compares the North lamp quantities 12 and 8 and returns 12. =MINIFS(E2:E11,D2:D11,"Office chair") returns 3 from quantities 4, 3 and 5. The value range determines whether the answer measures units or revenue.

Check what a zero result means

With no West sales, =MAXIFS(F2:F11,B2:B11,"West") returns 0. MINIFS also returns 0 when no row meets its criteria. That output alone does not establish that an actual sale had zero revenue.

Use a count to distinguish the missing category: =IF(COUNTIFS(B2:B11,"West")=0,"No sales",MAXIFS(F2:F11,B2:B11,"West")). With more criteria, give the count exactly the same tests. For a report that depends on complete amounts, also check that matching value cells contain numbers. The row count checks the selection, not the quality of every value.

Every range must have the same size and shape. A shorter range gives #VALUE!; a range shifted down one row can silently pair the wrong values and criteria.

Treat earliest and latest as numeric extremes

Spreadsheet dates increase as time passes. =MAXIFS(A2:A11,C2:C11,"Ben") therefore finds Ben's latest sale, March 30, 2026. MINIFS finds the earliest. Apply a date format to the output: in the Excel 1900 date system, that latest date may otherwise appear as the serial number 46111.

A maximum revenue of 800 does not by itself return Ana's name or the sale date. Retrieving a field from the matching record needs a lookup, and ties may give more than one matching record. Keep the report label clear about whether it shows an amount, a quantity or a date.

Recognize an older Excel version

MAXIFS and MINIFS are available in Microsoft 365, Excel for the web, Excel 2019 and later perpetual versions, and Google Sheets. Excel 2016 without a Microsoft 365 subscription does not support them and can show #NAME?.

For Ana's positive revenues in that older version, =MAX(IF(C2:C11="Ana",F2:F11)) can be entered with Ctrl+Shift+Enter. Current Excel versions calculate this array formula without that special entry. A correctly spelled unsupported function needs a compatible method or version; changing the criterion will not make the function available.

Key Takeaways

  • MAXIFS and MINIFS put the values first and combine criteria with AND.
  • A zero result can mean no record matched; check the same criteria with COUNTIFS.
  • Date maxima are latest dates and date minima are earliest dates.
  • These functions return a value, not the whole matching record.
  • Excel 2019 and later, Microsoft 365, Excel for the web and Google Sheets support both functions.
3

Build reliable conditional summaries

A useful report must keep working when formulas are copied, categories change or records are added. You will build summaries driven by labels, lock the references that must stay fixed, and handle either-or groups without counting a record twice. You will also trace unexpected results back to their criteria, stored data and ranges, using independent totals and selected records as checks.

3.1 Build a summary you can copy

A summary table is easier to maintain when labels supply the criteria. Write one formula that points to the labels, then control which references move as you fill it down or across.

Fill one formula down a column

Put North, South and East in G2:G4. In H2 enter =SUMIFS($F$2:$F$11,$B$2:$B$11,G2) and fill down to H4. The absolute data ranges stay fixed, while G2 becomes G3 and then G4. The results are 2,320, 1,885 and 1,400.

Without absolute references, the data ranges move down with each copy. That may happen to leave an answer unchanged when the omitted record belongs to another category. To see the risk, put South first and North second. An unlocked North formula copied down would use F3:F12 and B3:B12. It misses the North sale in row 2 and reports 1,840 instead of 2,320.

The placement of the dollar sign controls the lock. In Excel, F4 cycles a selected reference through absolute, mixed and relative forms.

ReferenceFixed part when copied
$F$2Column and row
$G2Column G
H$1Row 1
G2Neither
Fill a two-way table

Keep regions in G2:G4. Put Desk lamp, Office chair, Standing desk and Desk organizer in H1:K1. Enter this in H2:

=SUMIFS($F$2:$F$11,$B$2:$B$11,$G2,$D$2:$D$11,H$1)

Fill across and down. $G2 keeps the region label in column G as the formula moves across, while its row changes when filled down. H$1 keeps the product label on row 1 while its column changes across.

RegionDesk lampOffice chairStanding deskDesk organizer
North8001,52000
South0760900225
East8000450150

SUMIFS returns 0 for combinations with no matching sale. Hard-coding "North" and a product name in each formula would make every cell a separate edit and prevent useful copying.

Reconcile the whole table

The values above must add to SUM(F2:F11), or 5,605. This comparison works because each sale belongs to exactly one region and one listed product. A count table with the same complete categories must add to ten records.

A smaller summary total can reveal a missing category or a spelling difference. A label containing "North " with a trailing space selects none of the correctly entered North rows. A correct formula cannot repair an incorrect label.

Include new records deliberately

For an Excel table named Sales, =SUMIFS(Sales[Revenue],Sales[Region],G2) uses column names and grows with added rows. When filled down, the named columns stay the same and the label reference moves.

Whole-column references such as =SUMIFS(F:F,B:B,G2) also include added records. They include everything else in those columns too. A separately entered total or note that matches the criterion can enter the calculation. Keep data columns dedicated to records, or use a table to make the intended range explicit.

Key Takeaways

  • Lock data ranges and let category label references move when copying down.
  • Use $G2 for side labels and H$1 for top labels in a two-way table.
  • Check totals when categories cover every record exactly once.
  • Excel table columns grow as records are added.
  • Whole-column ranges include notes and totals as well as records.
  • A correct formula still needs labels that match the stored categories.

3.2 Handle either-or groups and exclusions

AND requires all tests to pass. OR accepts a row when at least one alternative passes. Before adding conditional results, decide whether the groups can overlap; that determines whether simple addition is valid.

Add groups that cannot overlap

A region cell cannot be both North and East. =COUNTIF(B2:B11,"North")+COUNTIF(B2:B11,"East") therefore counts each selected row once and gives 7. The matching revenue is =SUMIF(B2:B11,"North",F2:F11)+SUMIF(B2:B11,"East",F2:F11), or 3,720.

In Excel, an array constant can shorten that list of alternatives: =SUM(COUNTIF(B2:B11,{"North","East"})). COUNTIF produces counts 4 and 3, and SUM adds them. =SUM(SUMIFS(F2:F11,B2:B11,{"North","East"})) similarly combines the two revenues. For a workbook shared with Google Sheets, adding separate results avoids differences in how array criteria are evaluated; those array-list forms need ARRAYFORMULA in Sheets.

Remove an overlap once

A North sale can also be a Desk lamp sale. Adding the North count of 4 and the lamp count of 3 counts rows 2 and 7 twice.

=COUNTIF(B2:B11,"North")+COUNTIF(D2:D11,"Desk lamp")-COUNTIFS(B2:B11,"North",D2:D11,"Desk lamp")

The result is 4 plus 3 minus 2, or 5 distinct sales. Subtract the intersection once because the initial addition counted it twice and the question needs it once. Subtracting it twice would remove those valid sales entirely.

The same reasoning applies to sums. Add both groups' totals, then subtract the total belonging to both groups. Use SUMIFS for that intersection so the correction measures revenue, not a count of records.

Keep another restriction in both alternatives

For sales in North or East with at least 10 units, both alternatives need the units test. In Excel, =SUM(COUNTIFS(B2:B11,{"North","East"},E2:E11,">=10")) gives 3: one North sale and two East sales. A portable form adds two COUNTIFS calls, one for each region, each containing the units condition.

Typing "North or East" or "North,East" as one criterion does not create alternatives. It looks for that exact text in one cell.

Exclude unwanted values

Several exclusions can work together with AND. =SUMIFS(F2:F11,B2:B11,"<>South",D2:D11,"<>Desk lamp") totals 570, 950, 450 and 150, giving 2,120. A record must be outside South and not a lamp.

For one excluded region, total minus excluded part also works: =SUM(F2:F11)-SUMIF(B2:B11,"South",F2:F11) gives 3,720. Empty region cells are not South, so they belong in this difference too. A separate "<>" criterion removes truly empty labels; in Excel, formula cells returning empty text still pass that test.

Key Takeaways

  • Add separate counts or sums directly when the selected groups are disjoint.
  • For overlapping groups, add both results and subtract their intersection once.
  • Apply any shared AND restriction to every OR alternative.
  • Several <> tests can exclude several unwanted categories.
  • An exclusion of a named category can still include empty category cells.

3.3 Diagnose a wrong result before hiding it

A formula can be accepted by the spreadsheet and still answer the wrong question. Diagnose a surprising result by checking the selected records, the values attached to those records and the meaning of the output.

Start with the result you see
ResultFirst checks
Zero or a total that is too smallCriteria, spaces, missing records, stored text
#VALUE!Range dimensions; closed source workbook
#DIV/0! in an averageMatching rows and matching numeric values
#NAME?Quotes, function spelling, version support

A North count of 3 instead of 4 can come from one entry of "North ". It is a different stored text value because of its trailing space. Clean inconsistent labels, for example with TRIM, so all summaries use the same corrected data. Uppercase versus lowercase alone does not explain a COUNTIF difference.

Inspect numeric values, not just number formats

Imported amounts can look like numbers while remaining text. SUMIF, SUMIFS, AVERAGEIF(S), MAXIFS and MINIFS skip such values in the value range. An imported North revenue of "950" reduces the sum to 1,370. It also changes the numeric count used by an average.

Left alignment or a green error indicator in Excel can be clues, but inspect the stored values. Convert text amounts with the appropriate conversion command. Merely choosing a numeric display format leaves text as text. Do not replace missing values with zeros unless those zeros represent real values.

Trace the ranges together

Compare the first and last reference in every range. A shorter criteria range in an IFS function gives #VALUE!. A same-size range shifted by one row often gives no error and pairs the wrong records. A range ending before new records excludes them from every result that uses it.

COUNTIF(S) and SUMIF(S) can also give #VALUE! when referencing calculated cells in a closed external workbook. Open the source workbook and recalculate before concluding that the criteria are wrong. Criteria longer than 255 characters can produce incorrect results in these functions; avoid relying on a long text field as an exact criterion.

Read the argument order aloud. SUMIF puts values third; SUMIFS puts them first. An empty criteria cell is treated as 0, and a specific not-equal criterion can include blank labels. Both can produce an unexpected number without a syntax error.

Check time boundaries and empty selections

If a date total misses the end day's afternoon records, inspect the timestamps. Replace an upper limit of "<="&H2 with "<"&(H2+1) when H2 is the intended final date.

An average's #DIV/0! can mean no matching rows or no numeric amounts in matching rows. A maximum or minimum of 0 can mean the category is missing. IFERROR changes what is displayed but does not distinguish these causes; correct the cause or test the specific missing condition.

Recheck by an independent route

Filter the list to the intended records and compare selected numeric amounts with the status-bar sum and count. Reconcile a complete category table with the grand total. For complete numeric values, divide the matching sum by their count and compare with AVERAGEIFS. A SUMPRODUCT calculation can check a SUMIFS total too, provided both formulas select the intended rows.

Key Takeaways

  • A zero or small result can come from mismatched labels or values stored as text.
  • Equal-size shifted ranges can give wrong results without an error.
  • No matching numbers causes an average error; a missing extreme can appear as zero.
  • Check timestamps when an end-day total is incomplete.
  • Check a result against filtered records, totals or an independently written formula.
  • Find the cause before using IFERROR to replace an error display.
4

Calculate flexible conditional results with SUMPRODUCT

Some summaries need a calculation in every row before they can decide what to include. SUMPRODUCT multiplies corresponding values and adds the results, which supports order totals, weighted averages and flexible row tests. You will build its conditions as numeric masks, handle overlapping alternatives, and choose between that flexibility and the simpler conditional functions for a maintained report.

4.1 Multiply matching positions and total the products

SUMPRODUCT calculates a total made from pairs of values. It multiplies values in corresponding positions and then adds the products. This makes it useful for order totals and averages in which some values carry more weight than others.

Work out an order total

For this separate order, B2:B4 contains quantities 3, 5 and 2. C2:C4 contains unit prices 4.50, 2.00 and 12.25. =SUMPRODUCT(B2:B4,C2:C4) performs these steps:

  1. The first line contributes 3 times 4.50, or 13.50.
  2. The second contributes 5 times 2.00, or 10.00.
  3. The third contributes 2 times 12.25, or 24.50.
  4. Adding 13.50, 10.00 and 24.50 gives 48.00.

Each quantity must stay paired with its own price. Multiplying the total quantity by the total of the prices would create extra combinations that are not order lines. SUMPRODUCT avoids a helper column of line totals, but its arithmetic is the same as calculating and summing those totals.

The syntax is SUMPRODUCT(array1, array2, ...), with up to 255 arrays. An array here is usually a range. All arrays must have the same dimensions. C2:C10 paired with D2:D5 gives #VALUE! because the positions cannot be matched.

Give each value its proper weight

A weighted average multiplies each value by its weight and divides the combined products by the total weight. Suppose scores 82, 74 and 90 are in B2:B4 and their credits 4, 2 and 3 are in C2:C4.

=SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4)

The products are 328, 148 and 270, totaling 746. The weights total 9, so the result is approximately 82.89. AVERAGE(B2:B4) gives 82 because it gives all three scores equal influence. Dividing by three after multiplying by credits would also use the wrong denominator. The denominator must be the sum of the weights, and it must not be zero.

Notice how text is handled

When ranges are separate arguments, SUMPRODUCT treats nonnumeric entries and empty cells as zero. A quantity entered as the text "three" therefore contributes nothing in =SUMPRODUCT(B2:B4,C2:C4). There may be no error to draw attention to the omitted line.

Arithmetic inside one argument behaves differently. =SUMPRODUCT(B2:B4*C2:C4) gives the same 48.00 on the numeric order, but a cell containing "three" causes #VALUE! when multiplied. Multiplying a condition by a text value can fail for the same reason. Check numeric inputs before deciding whether an argument arrangement is suitable.

Limit the arrays to your records

SUMPRODUCT evaluates every position supplied. A whole-column formula such as =SUMPRODUCT(A:A,B:B) multiplies more than a million positions in Excel, including unused rows. Use bounded ranges or table columns that expand with the records. SUMPRODUCT handles arrays without Ctrl+Shift+Enter, including in older Excel versions.

Key Takeaways

  • SUMPRODUCT multiplies corresponding positions and adds the products.
  • Arrays must have matching dimensions and corresponding records.
  • A weighted average divides the product total by the sum of the weights.
  • Separate array arguments treat text as zero; explicit multiplication can raise an error on text.
  • Use data-sized ranges to avoid unnecessary whole-column calculation.

4.2 Turn row tests into numeric masks

A range comparison produces one TRUE or FALSE result per row. SUMPRODUCT can use these results as a mask: a 1 keeps a row and a 0 excludes it. Arithmetic supplies the conversion from logical results to numbers.

Count one test, then combine tests with AND

=SUMPRODUCT(--(B2:B11="South")) returns 3. The double minus, --, turns TRUE into 1 and FALSE into 0. Without conversion, =SUMPRODUCT(B2:B11="South") returns 0 because SUMPRODUCT does not add the logical values as numbers in a bare argument.

Multiplying comparisons performs AND. =SUMPRODUCT((B2:B11="North")*(D2:D11="Office chair")*F2:F11) totals 1,520. The two comparisons multiply to 1 only in rows 4 and 10; their revenues 570 and 950 remain. A FALSE in either condition produces a zero contribution. This is the same selection as a SUMIFS with those two criteria.

Convert an OR score into one inclusion decision

Adding comparisons gives 0 when neither is true, 1 when one is true and 2 when both are true. =SUMPRODUCT((B2:B11="North")+(D2:D11="Desk lamp")) returns 7, counting the North lamp rows twice.

Use a greater-than-zero test around the addition: =SUMPRODUCT(--((B2:B11="North")+(D2:D11="Desk lamp")>0)). Each row now contributes at most 1, giving 5. For a revenue total, multiply this final mask by F2:F11. Keep parentheses around the complete OR test so the comparison acts on the sum of the conditions.

Test a calculation in each row

The sales list has no zero or missing unit counts. =SUMPRODUCT(--(F2:F11/E2:E11>100)) divides revenue by units in each row, compares that unit price with 100, and counts the TRUE results. Chairs cost 190 per unit and standing desks 450, so five sales match. Lamps cost 40 and organizers 15, so they do not.

=SUMPRODUCT((F2:F11/E2:E11>100)*F2:F11) totals matching revenue of 3,630. A zero units cell would cause #DIV/0!. An unrelated false mask does not prevent the array division from being evaluated; inspect or handle the zero before using that calculation.

Compare two columns directly

In a separate budget list, C2:C5 contains budgets 100, 250, 80 and 300. D2:D5 contains actual costs 120, 240, 95 and 300. =SUMPRODUCT(--(D2:D5>C2:C5)) counts two overspends. Each actual cost is compared with its own budget; the equal final pair does not pass a strict greater-than test.

A computed test such as MONTH(A2:A11)=3 can similarly identify March dates. It selects March in every year present; include a year restriction if the question requires one year's March.

Use a search for text containment

D2:D11="Desk*" means literal text in a comparison. For contains-desk matching, =SUMPRODUCT(--ISNUMBER(SEARCH("desk",D2:D11))) returns 7. SEARCH gives a position for a match and an error otherwise; ISNUMBER turns those outcomes into the needed logical mask. SEARCH ignores letter case. A case-sensitive equality can instead use EXACT.

Key Takeaways

  • Convert comparisons to 1/0 values with arithmetic such as the double minus.
  • Multiplying masks joins tests with AND.
  • For OR, test whether the sum of masks is greater than zero to include overlaps once.
  • SUMPRODUCT can test calculated values and compare columns row by row.
  • A false mask does not protect a calculation from division by zero.
  • Ordinary comparisons inside SUMPRODUCT do not interpret wildcards.
  • MONTH tests the month, so dates from different years need an additional restriction.

4.3 Choose a formula that fits the question

Start with the answer the report needs: a count, a total, an average or an extreme. Then inspect the conditions. The clearest function is the one whose structure matches that question and remains easy to check when the data changes.

Match the operation and the test
QuestionClear starting point
How many names begin with Desk?COUNTIF with "Desk*"
What is North chair revenue?SUMIFS
What is the average matching revenue?AVERAGEIFS
What is the largest East lamp revenue?MAXIFS
How many rows exceed their own budgets?SUMPRODUCT
What is the total of quantity times price?SUMPRODUCT

COUNTIFS, SUMIFS, AVERAGEIFS, MAXIFS and MINIFS suit column-against-value tests. A criterion can be a fixed value, a cell value, a comparison or a wildcard pattern. They are readable and efficient on long lists. SUMIFS for North chair revenue returns 1,520; MAXIFS for East lamp revenue returns 800. They answer different kinds of question even when the selected rows are similar.

SUMPRODUCT suits calculations within a row, comparisons between two columns, overlapping OR groups and weighted products. For unit price above 100, it can compare revenue divided by units without adding a helper column. For a case-sensitive product test, EXACT(D2:D11,"Desk lamp") checks the letters' case too; ordinary COUNTIF criteria do not.

Do not force a total into an extreme

SUMPRODUCT adds contributions. Multiplying a revenue by a mask and summing the results gives a total, not a largest sale. Use MAXIFS or MINIFS for extremes. For a conditional average built with SUMPRODUCT, divide the matching total by its matching numeric count. For a weighted average, divide weighted products by the sum of weights. The denominator must describe the values that actually contributed.

Check two methods against the same records

Compare =SUMIFS(F2:F11,B2:B11,"North",D2:D11,"Office chair") with =SUMPRODUCT((B2:B11="North")*(D2:D11="Office chair")*F2:F11). Both return 1,520 on the complete numeric sales list.

If they disagree, inspect row alignment, criteria spelling, missing amounts and text values. Explicit SUMPRODUCT multiplication can fail on text that SUMIFS skips. Agreement supports the calculation, but two different groups can happen to have the same total. Read both selections and check the records too.

Keep a maintained report readable

Use label cells for criteria instead of burying changeable values inside long formulas. Bounded ranges or table columns show which records are included and avoid unnecessary SUMPRODUCT work. A short SUMIFS is usually easier for a colleague to edit than a multiplied mask that solves the same simple task.

Google Sheets provides the same listed conditional functions and SUMPRODUCT with the same argument order. Single-criterion formulas transfer directly. Excel's array-constant criteria forms need extra array handling in Sheets, so adding separate disjoint COUNTIF or SUMIF results is the simpler shared form. Function names and argument separators still follow the spreadsheet's locale.

Key Takeaways

  • Choose the required operation before choosing how to express the conditions.
  • Use IFS functions for column-against-value tests and SUMPRODUCT for row calculations and weighted products.
  • SUMPRODUCT returns an added result, not a maximum or minimum.
  • Compare both the numeric answer and the selected records when checking two methods.

Conditional Counting and Summing examples

4 Walkthroughs

1

Choose records with clear criteria

13 steps
Build and check a count, a changing cutoff, date boundaries and a text pattern.
  1. 1
    IntroductionDecide which records belong

    A conditional summary starts with a selection rule. A count asks how many records pass that rule; a sum asks how much their values add up to.

    Work with ten sales. Their regions in B2:B11 are North, South, North, East, South, North, East, South, North and East. Each cell represents one sale, so a matching cell contributes exactly one to a COUNTIF result.

  2. 2
    ExampleFollow a count through the column

    Enter =COUNTIF(B2:B11,"North").

    The first region is North, so the count starts at 1. The next is South, which adds nothing. North also appears at the third, sixth and ninth positions. There are four matches, so the result is 4.

    The criterion is quoted text. Letter case does not matter, but an extra space in a region name can stop it matching.

  3. 3
    TipMove the criterion into a cell

    Put North in H2 and use =COUNTIF(B2:B11,H2). The function reads the value of H2. Change that cell to East and the result becomes 3.

    Quoting "H2" would ask for the text "H2". An empty H2 is treated as 0, not as a request for every region. Keeping the criterion in a labeled cell makes the selection visible when the report is edited.

  4. 4
    ChallengeCount records or add units?

    The unit counts of ten sales are 12, 4, 3, 20, 2, 8, 1, 15, 5 and 10. What does =COUNTIF(E2:E11,">=10") return, and what does the answer measure?

    ---reveal---

    It returns 4 sales. The matching values are 12, 20, 15 and 10. Their total is 57 units, but COUNTIF adds one for each matching cell. A total of those values requires a sum.

  5. 5
    ExplanationBuild a changing cutoff

    Suppose H4 holds a revenue cutoff of 500. Write ">"&H4 as the criterion. The quoted operator joins the stored cell value, producing a greater-than-500 test.

    In =COUNTIF(F2:F11,">"&H4), changing H4 changes the test without editing the formula. Writing ">H4" instead puts the letters H4 in the comparison; leaving out & gives invalid syntax.

  6. 6
    ExampleUse two boundaries for a period

    The ten sales dates are March 2, 3, 5, 9, 12, 16, 19, 23, 26 and 30, all in 2026. Put March 16 in H1 and March 23 in H2 as real dates.

    =COUNTIFS(A2:A11,">="&H1,A2:A11,"<"&H2) includes March 16 and March 19, giving 2. The lower date is included; the upper date is excluded. Each date cell is tested against both boundaries.

  7. 7
    ChallengeKeep an afternoon entry on the final day

    H2 contains March 23, 2026 at midnight. A report should include all of that day. Why would a criterion of "<="&H2 miss a sale recorded at 3:00 PM, and how should the upper criterion change?

    ---reveal---

    The afternoon timestamp is greater than midnight at the start of March 23. Use "<"&(H2+1) to accept times before March 24 begins, including every time on March 23.

  8. 8
    Key InsightTell an empty result from a stored zero

    In Excel, a criterion of "" matches truly empty cells and formulas returning empty text. A criterion of "<>" excludes truly empty cells but counts a cell containing a formula, even when its result is empty text.

    That formula cell can count in both tests. COUNTA also counts it. A space and a numeric zero pass "<>" too, so a nonempty count does not establish that every cell contains a meaningful label.

  9. 9
    ExplanationPlace the wildcard around the text

    An asterisk matches any sequence of text characters, including none. "Desk*" accepts names starting with Desk, while "*desk" accepts names ending with desk. "*desk*" accepts desk anywhere.

    For "Desk lamp", "Standing desk" and "Desk organizer", a contains-desk pattern accepts all three names. A starts-with-Desk pattern accepts only the lamp and organizer. Matching ignores letter case.

  10. 10
    ExampleEscape a real punctuation mark

    A question mark in a criterion normally represents exactly one character. A tilde changes its role: ~? means an actual question mark.

    For comments in G2:G50, =COUNTIF(G2:G50,"*~?*") counts comments containing that punctuation. The asterisks allow text on either side. Without the tilde, "*?*" accepts any text containing at least one character, even if it has no question mark.

  11. 11
    ChallengeSelect the intended product names

    A product list contains "Desk lamp", "Standing desk", "Desk organizer" and "Lamp shade". You want names that begin with Desk. What criterion selects the intended group, and why is a contains-desk pattern too broad?

    ---reveal---

    Use "Desk*". It accepts Desk lamp and Desk organizer. "*desk*" also accepts Standing desk because the word appears at the end, so it selects a different group.

  12. 12
    ChallengeCombine the pattern with the right range

    Product names are in D2:D11 and unit counts are numeric values in E2:E11. You need the number of product names containing chair, with the search word stored in H5. How would you write the count?

    ---reveal---

    Use =COUNTIF(D2:D11,"*"&H5&"*"). The pattern belongs on the text column. Applying a digit pattern such as "1*" to numeric unit counts would not select numbers by their displayed starting digit.

  13. 13
    RecapRead the selection before using the answer

    Before accepting a conditional count, read its two arguments as a question: which cells are tested, and what stored value or pattern must they match?

    Then inspect a boundary record: the exact cutoff, a time on the last date, or a name that only partly matches. These records reveal whether your quotes, operators and wildcard positions express the group you intended.

2

Choose a count, total, average or extreme

16 steps
Work through matching records and interpret the result of each conditional function.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionChoose what the answer measures
  2. 2
    ExampleRequire both tests in one record
  3. 3
    ChallengeCheck whether two criteria can both be true
  4. 4
    TipKeep positions aligned
  5. 5
    ExampleUse SUMIF for one selection
  6. 6
    ExplanationMove the values first for SUMIFS
  7. 7
    ChallengeRepair a zero revenue total
  8. 8
    ExampleFind a mean from the selected numbers
  9. 9
    ChallengeChange a missing value to a real zero
  10. 10
    Key InsightCombine groups without equalizing their sizes
  11. 11
    TipDistinguish no numbers from zero
  12. 12
    ExampleFind a value at an extreme
  13. 13
    ChallengeMake a missing category visible
  14. 14
    ConnectionFind the latest matching date
  15. 15
    ChallengeInterpret two outputs together
  16. 16
    RecapLabel the output you can justify
3

Build and check a copied report

12 steps
Lock references, combine OR groups and diagnose a total that does not reconcile.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake a report that survives copying
  2. 2
    ExampleCopy down from a label cell
  3. 3
    ExplanationLock different parts for two directions
  4. 4
    ChallengePredict the next copied references
  5. 5
    ExampleAdd alternatives on one column
  6. 6
    ExampleCorrect overlap across columns
  7. 7
    ChallengeKeep a shared condition in both alternatives
  8. 8
    Key InsightAsk whether excluded groups leave blanks
  9. 9
    ExplanationTrace a small summary total
  10. 10
    ChallengeChoose a repair that addresses the cause
  11. 11
    ChallengeReconcile after the repair
  12. 12
    RecapCheck the next change as well as today's total
4

Build SUMPRODUCT calculations from rows

15 steps
Calculate weighted products, construct numeric masks and choose a maintainable formula.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionThink in corresponding positions
  2. 2
    ExampleCalculate each order line
  3. 3
    ExampleDivide weighted products by total weight
  4. 4
    ChallengeDiagnose an omitted order line
  5. 5
    ExplanationTurn a comparison into ones and zeros
  6. 6
    ExampleMultiply masks for AND
  7. 7
    Key InsightSee why raw OR scores double-count
  8. 8
    ChallengeCount an overlapping OR once
  9. 9
    ExampleTest a calculated unit price
  10. 10
    ChallengeCompare a cost with its own budget
  11. 11
    TipChoose a supported text test
  12. 12
    ConnectionUse the simpler function for a simple selection
  13. 13
    ChallengeChoose a method for an absent extreme
  14. 14
    Key InsightCheck agreement without ignoring the records
  15. 15
    RecapMake the contribution match the question

Conditional Counting and Summing practice questions

40 Practice Questions in 4 sets

Set 1: Read averages, extremes and copied summaries10 Practice Questions

Question 1 of 10

A matching group has numeric values 80, 0 and 40, plus one genuinely empty value cell. What average does AVERAGEIFS return?
  1. 40
  2. 30
  3. 60
  4. 0
Show answerHide answer
Answer: A
The three numbers total 120 and their numeric count is 3, so the average is 40. The empty cell is excluded, while the real zero remains in the denominator. Dividing by all four matching rows would give 30 and incorrectly treat the missing value as a measured zero.

Question 2 of 10

One workshop group has 2 numeric scores with a mean of 70. A second has 6 numeric scores with a mean of 90. What is the combined mean?
  1. 80
  2. 82.50
  3. 87.50
  4. 85
Show answerHide answer
Answer: D
The first group contributes a score total of 140 and the second contributes 540. Their combined total of 680 divided by 8 scores gives 85. Taking the mean of 70 and 90 gives 80, but gives the smaller group the same influence as the group with six scores.

Question 3 of 10

COUNTIFS finds 5 matching records, but AVERAGEIFS on their Amount column returns #DIV/0!. None of the cells contains a spreadsheet error. What does this show?
  1. All five matching amounts are numeric zeros.
  2. The matching amounts contain no numeric values.
  3. The category has no matching records at all.
  4. The five numeric amounts cancel to a zero sum.
Show answerHide answer
Answer: B
The positive row count establishes that records match, while the average error shows that none of their amounts is numeric. Empty cells or stored text can produce this combination. Five real zeros would have a numeric count of 5 and an average of 0, not a division error.

Question 4 of 10

No record has Category equal to "Archive". What does =MAXIFS(D2:D12,B2:B12,"Archive") return?
  1. #DIV/0!
  2. An empty cell
  3. 0
  4. #NAME?
Show answerHide answer
Answer: C
MAXIFS returns 0 when no row meets its criteria. That output does not establish that an Archive record with a value of zero exists; the category is absent. A matching COUNTIFS can distinguish this case, while #DIV/0! is the no-numeric-values behavior associated with averages.

Question 5 of 10

A latest-service-date formula returns 46296 with General formatting. The selected records and returned serial value are correct. What should be changed to display a readable date?
  1. Apply a date format to the result cell.
  2. Subtract the earliest selected date.
  3. Replace MAXIFS with a conditional sum.
  4. Convert the result into a text criterion.
Show answerHide answer
Answer: A
A spreadsheet date is stored as a serial number, so a correct latest-date result can appear numeric under General formatting. Apply a date format to change its display without changing the value. Summing the dates would change the calculation and would not identify the latest matching service.

Question 6 of 10

A summary formula in H2 uses $F$2:$F$20 for amounts, $B$2:$B$20 for regions and G2 for the current region label. What should its region-label reference become after filling it down one row?
  1. G2
  2. H2
  3. G3
  4. $G$2
Show answerHide answer
Answer: C
The relative label reference G2 moves one row down to G3. The two absolute data ranges stay fixed, so the copied formula tests the next category against the same records. Locking the label as $G$2 would keep every copied row selecting the original category.

Question 7 of 10

A two-way report has regions in G2:G5 and services in H1:K1. Amounts are F2:F40, regions B2:B40 and services D2:D40. What formula in H2 can fill the full report correctly?
  1. =SUMIFS($F$2:$F$40,$B$2:$B$40,G$2,$D$2:$D$40,$H1)
  2. =SUMIFS(F2:F40,B2:B40,$G2,D2:D40,H$1)
  3. =SUMIFS($F$2:$F$40,$B$2:$B$40,$G$2,$D$2:$D$40,$H$1)
  4. =SUMIFS($F$2:$F$40,$B$2:$B$40,$G2,$D$2:$D$40,H$1)
Show answerHide answer
Answer: D
Keep the data ranges fixed, the region-label column fixed and the service-header row fixed. $G2 moves through region rows, while H$1 moves through service columns. Fully absolute labels would repeat one region-service combination throughout the report; unlocked data ranges would shift away from the records.

Question 8 of 10

A support log has 8 urgent requests, 7 billing requests and 3 requests that are both urgent and billing. How many requests are urgent or billing?
  1. 15
  2. 12
  3. 18
  4. 9
Show answerHide answer
Answer: B
Add the two group counts and subtract the shared 3 once, giving 12 distinct requests. The raw total of 15 counts each shared request twice. Subtracting the shared group twice would remove those requests completely, even though they meet the either-or condition.

Question 9 of 10

A report needs the total amount for records that are Priority "High" or Type "Renewal". Amount is D2:D30, priority B2:B30 and type C2:C30; all amounts are numeric. Some records satisfy both labels. What calculation counts each amount once?
  1. Add both conditional sums, then subtract the sum matching both labels.
  2. Add both conditional sums, then subtract the count matching both labels.
  3. Add both conditional sums, then subtract twice the sum matching both labels.
  4. Add both conditional sums without subtracting the shared records.
Show answerHide answer
Answer: A
Each overlapping amount appears in both conditional sums, so subtracting its amount once leaves it included once. Subtracting a count mixes records with amounts and does not correct the duplicated revenue. Subtracting twice the shared sum would exclude those valid records entirely.

Question 10 of 10

A revenue total omits a cell that displays 640. Inspection shows its stored value is text, while the criterion matches correctly. What repair addresses the cause?
  1. Broaden the text criterion with an asterisk.
  2. Replace the total with a matching row count.
  3. Apply two decimal places to the amount cell.
  4. Convert the stored text value into a number.
Show answerHide answer
Answer: D
Conditional sums skip text in the value range, even when the characters look like a number. Convert the stored text into numeric 640 so it can contribute to the total. Applying a number display format changes appearance but leaves the underlying text unchanged, so the total can remain too small.
Set 2: Select records and total their values10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Service categories in B2:B6 are "Repair", "Setup", "Repair", "Repair" and "Setup". What does =COUNTIF(B2:B6,"Repair") return?
  1. 2
  2. 3
  3. 5
  4. 6
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A team has 24 recorded requests, including 9 marked "Urgent". Every status cell is filled. What share of requests is urgent?
  1. 26.67%
  2. 62.50%
  3. 9.00%
  4. 37.50%
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

H3 holds a changing minimum mass in kilograms. Which criterion selects masses at least as large as that cell value?
  1. ">="&H3
  2. ">H3"
  3. ">"&H3
  4. "<=H3"
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A completion rate cell stores 0.72 and displays 72%. Does it pass a COUNTIF criterion of ">0.7", and why?
  1. No; the stored value is below 70.
  2. No; percentages cannot pass comparisons.
  3. Yes; its stored value exceeds 0.7.
  4. Yes; the test compares the text "72%".
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A log contains July 31, 2026 at 2:00 PM; August 1 at midnight; August 31 at 6:00 PM; and September 1 at midnight. A monthly report uses dates >=DATE(2026,8,1) and <=DATE(2026,8,31) and finds only one entry. What correction gives the intended August count?
  1. Use <DATE(2026,9,1) as the upper test; count 2.
  2. Use <=DATE(2026,9,1) as the upper test; count 3.
  3. Use >DATE(2026,8,1) as the lower test; count 0.
  4. Use >=DATE(2026,7,31) as the lower test; count 2.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A label column contains "Box", "Toolbox", "Box lid", "Boxed" and "Mail". How many labels match the criterion "Box*"?
  1. 2
  2. 3
  3. 4
  4. 5
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A task must have Status equal to "Open" and Priority equal to "High" to count in a report. Status is in B2:B20 and Priority in D2:D20. How should the count be written?
  1. =COUNTIF(B2:B20,"Open")+COUNTIF(D2:D20,"High")
  2. =COUNTIFS(B2:B20,"Open",B2:B20,"High")
  3. =COUNTIFS(B2:B20,"Open",D2:D20,"High")
  4. =COUNTIFS(B2:B20,"Open",D3:D21,"High")
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Five deliveries have (Depot, Mass in kg) values (A, 6), (B, 10), (A, 10), (A, 14) and (B, 8). How many are from depot A and have a mass from 6 through 10 kg, inclusive?
  1. 1
  2. 3
  3. 4
  4. 2
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Zone labels in A2:A5 are "Central", "Outer", "Central" and "Outer". Amounts in C2:C5 are 85, 120, 65 and 40. What does =SUMIF(A2:A5,"Central",C2:C5) return?
  1. 2
  2. 310
  3. 150
  4. 160
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A3:A18 holds item categories and D3:D18 holds amounts. What formula totals amounts for "Tools" that are strictly greater than 250?
  1. =SUMIFS(A3:A18,D3:D18,">250",A3:A18,"Tools")
  2. =SUMIFS(D3:D18,A3:A18,"Tools",D3:D18,">250")
  3. =SUMIFS(D3:D18,A3:A18,"Tools",D3:D18,">=250")
  4. =SUMIFS(D3:D18,A3:A18,"Tools")
Show answerHide answer

Save this lesson to see this answer.

Set 3: Calculate products and flexible row tests10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Quantities are 4 and 6, with corresponding unit prices 2.50 and 3.00. What total does SUMPRODUCT return?
  1. 55.00
  2. 28.00
  3. 23.00
  4. 19.00
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Three scores are 60, 80 and 90. Their weights are 1, 2 and an unknown positive weight, respectively. The weighted mean is 80. What weight belongs to the score of 90?
  1. 1
  2. 2
  3. 3
  4. 4
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Region labels are in A2:A8. What SUMPRODUCT formula counts labels equal to "Coastal"?
  1. =SUMPRODUCT(A2:A8="Coastal")
  2. =SUMPRODUCT(A2:A8,"Coastal")
  3. =SUMPRODUCT(--(A2:A8="Coastal"))
  4. =SUMPRODUCT(--(A2:A8<>"Coastal"))
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Three items have (Budget, Actual) amounts (90, 95), (140, 140) and (200, 185). What does =SUMPRODUCT(--(D2:D4>C2:C4)) return when C is Budget and D is Actual?
  1. 1
  2. 2
  3. 3
  4. 0
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A four-row log has (Team, Type, Amount) records (Red, Rush, 40), (Red, Normal, 30), (Blue, Rush, 20) and (Blue, Normal, 10). A SUMPRODUCT adds the Red and Rush masks, then multiplies by Amount. It returns 130. What total includes each qualifying amount once, and what change is needed?
  1. 60; multiply the Red and Rush masks.
  2. 40; keep only rows meeting both tests.
  3. 130; the existing masks already implement OR.
  4. 90; test the added masks for greater than zero.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A stock list needs the smallest numeric mass for items whose category matches a cell in H2. What function most directly fits this report?
  1. SUMIFS
  2. SUMPRODUCT
  3. MINIFS
  4. AVERAGEIFS
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Numeric costs total 900. Travel costs total 260 and equipment costs total 310. A separate review finds that 430 belongs to exactly one of those two groups. What amount lies outside both groups?
  1. 330
  2. 260
  3. 400
  4. 470
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A conditional formula pairs codes B5:B16 with amounts E6:E17. Both ranges have 12 cells. What record-pairing problem is visible in these references?
  1. The ranges have different numbers of cells.
  2. Each code is paired with the next record's amount.
  3. The ranges are invalid because columns are not adjacent.
  4. The ranges cannot calculate without absolute references.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A comment must contain an actual asterisk to qualify. What COUNTIF criterion finds that character anywhere in the comment?
  1. "*~**"
  2. "***"
  3. "~*"
  4. "*?*"
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

In Excel, A1:A5 contains "Metro", "Rural", a truly empty cell, a formula returning empty text, and a single space. What does =COUNTIFS(A1:A5,"<>Metro",A1:A5,"<>") return?
  1. 1
  2. 2
  3. 4
  4. 3
Show answerHide answer

Save this lesson to see this answer.

Set 4: Repair and justify complete report calculations10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

C2:C14 holds categories and F2:F14 holds numeric amounts. What formula totals the amounts in category "Maintenance"?
  1. =SUMIFS(C2:C14,F2:F14,"Maintenance")
  2. =COUNTIFS(C2:C14,"Maintenance")
  3. =SUMIFS(F2:F14,C2:C14,"Maintenance")
  4. =SUMIF(F2:F14,"Maintenance",C2:C14)
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Team A has 3 matching records with amounts 60, empty and 120. Team B has 3 with amounts 0, 180 and 240. All listed numbers are numeric. What combined average includes the recorded amounts correctly?
  1. 100
  2. 120
  3. 115
  4. 150
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Equipment records contain category and inspection date. You need the earliest inspection date for "Pump". What calculation and output format fit that question?
  1. MAXIFS on dates; date format.
  2. MINIFS on dates; General format.
  3. SUMIFS on dates; date format.
  4. MINIFS on dates; date format.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A copied report uses Sales table columns and a relative category label. New records are added as rows of the Sales table. Why do formulas such as =SUMIFS(Sales[Amount],Sales[Category],G2) include those records?
  1. The named table columns expand with added table rows.
  2. The relative label turns the data ranges into full columns.
  3. SUMIFS automatically searches below any referenced range.
  4. The number format extends the formula to adjacent records.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A log has numeric amounts. A report must total rows where either Site is "Harbor" or Type is "Express", but only when Status is "Complete". Some Harbor rows are Express. What three-part calculation handles the selection?
  1. Harbor total plus Express total minus their overlap; omit Status.
  2. Completed Harbor total plus all Express total minus completed overlap.
  3. Completed Harbor total plus completed Express total minus completed overlap.
  4. Completed Harbor total plus completed Express total minus twice their overlap.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

SUMIFS returns #VALUE! using amount range F2:F25 and criteria range B2:B24. What is the first repair when both columns describe the same 24 records in rows 2 through 25?
  1. Wrap SUMIFS in IFERROR to display zero.
  2. Change the criteria range to B2:B25.
  3. Change the criterion to a wildcard pattern.
  4. Convert the amount range into quoted text.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An invoice report gives a matching count of 4, a total of 720 and an average of 240. Inspection finds one selected amount stored as text "280"; the other three are numeric. A colleague reports 180 by dividing the total by the row count. What repair and updated average account for all four amounts?
  1. Convert the text amount; the new mean is about 333.33.
  2. Keep the text amount; the corrected mean is 180.
  3. Keep the text amount; the reported mean stays 240.
  4. Convert the text amount; the updated mean is 250.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two rated tasks have scores 50 and 90 with weights 3 and 1. What weighted mean belongs in the report?
  1. 60
  2. 70
  3. 120
  4. 240
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An order list has positive quantities and numeric revenue. You need total revenue from orders with revenue per unit above 50 that are in either Zone "Urban" or Channel "Online". Some orders satisfy both labels. What SUMPRODUCT structure expresses the question?
  1. Multiply revenue by a unit-price mask and by the raw sum of the two label masks.
  2. Multiply revenue by a unit-price mask and by a greater-than-zero test of the added label masks.
  3. Multiply revenue by a unit-price mask and by the product of the two label masks.
  4. Multiply units by a unit-price mask and by a greater-than-zero test of the added label masks.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Product labels in D2:D18 include different capitalizations. How can you count labels equal to "Valve", including an exact match of uppercase and lowercase letters?
  1. =SUMPRODUCT(--(D2:D18="Valve"))
  2. =COUNTIF(D2:D18,"Valve")
  3. =SUMPRODUCT(--ISNUMBER(SEARCH("Valve",D2:D18)))
  4. =SUMPRODUCT(--EXACT(D2:D18,"Valve"))
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

61 Key Terms, each with its definition

A

Absolute reference
An absolute reference fixes both the row and the column with dollar signs, keeping a source range unchanged when formulas are copied.
The reference $F$2:$F$11 continues to identify the same revenue cells after a formula is filled down.
AND logic
AND logic accepts a record only when every required test is true for that record; one failed test excludes it from the selection.
A sale must be North and a lamp to pass the two tests in a North-lamp report.
Arithmetic mean
An arithmetic mean is a numeric total divided by the number of contributing numeric values, giving equal weight to each such value.
Revenues of 100, 0 and an empty cell have a mean of 50 because two numeric values contribute.
Array
An array is a set of values arranged in positions, often supplied by a cell range or produced by a calculation across that range.
B2:B4 supplies three quantity values whose positions correspond to the three prices in C2:C4.
Asterisk wildcard
An asterisk wildcard represents any sequence of text characters, including no characters, wherever it appears in a criterion.
The pattern "*desk*" accepts both "Desk lamp" and "Standing desk" because desk can appear anywhere.
AVERAGEIF
AVERAGEIF calculates the arithmetic mean of numeric values passing one criterion, with an optional separate value range given last.
An East revenue average selects the East records, then averages only their numeric revenue values.
AVERAGEIFS
AVERAGEIFS averages numeric values from its first range for records meeting every later criterion, excluding empty and text values.
A chair average outside South uses a product equality and a region exclusion on the same records.

B

Bounded range
A bounded range has explicit endpoints around the intended data, limiting the positions evaluated in a formula such as SUMPRODUCT.
Using A2:A500 instead of A:A avoids evaluating unused positions across an entire Excel column.

C

Calculated condition
A calculated condition tests a value worked out inside each row, such as revenue divided by units, instead of a stored column alone.
A unit-price condition can select sales over 100 per unit without a separate unit-price helper column.
Case-sensitive match
A case-sensitive match distinguishes uppercase and lowercase characters, unlike ordinary COUNTIF text criteria and equality matching.
A report can require an exact case match for a product code even when ordinary category counts ignore case.
Comparison operator
A comparison operator specifies a relationship such as greater than, equal to or not equal to between a stored value and a cutoff.
The criterion ">=10" accepts a quantity of 10 as well as larger numeric quantities.
Concatenation
Concatenation joins text and values into one text expression; the ampersand builds a criterion from an operator and a cell value.
The criterion ">"&H4 uses the current cutoff in H4 instead of comparing with the letters "H4".
Conditional aggregation
Conditional aggregation calculates a count, sum, average or extreme using only records that meet the stated selection criteria.
A revenue report uses conditional aggregation to total only sales recorded for the North region.
Conditional extreme
A conditional extreme is the largest or smallest value within a selected group, rather than a total or a count of that group.
A report can show a region's minimum revenue alongside its total revenue to answer different questions.
Conditional share
A conditional share is the matching part divided by the whole, using the same kind of quantity in both parts of the ratio.
Four North sales among ten recorded sales give a share of 0.4, displayed as 40%.
Conditional sum
A conditional sum is the total of numeric amounts attached to records passing a selection, with each selected amount added once.
When three South sales bring in 1,885 in revenue, the conditional sum for South is 1,885 while its conditional count is only 3.
COUNTIF
COUNTIF is a function that counts cells passing one criterion; each matching cell contributes one to the result.
In a list with four North sales, COUNTIF returns four for North even though those sales contain different quantities and revenues.
COUNTIFS
COUNTIFS counts corresponding positions that pass every supplied range-and-criterion pair, using AND to combine the tests.
A North chair count adds one only when the same sale has both the region and product labels.
Criteria pair
A criteria pair consists of a range to inspect followed by the criterion applied to each corresponding position in that range.
Adding E2:E11,">=4" adds a minimum-unit test to an existing region-and-product count.
Criterion
A criterion is a test that decides whether a cell or record belongs in a calculation, such as a region name or a minimum quantity.
In =COUNTIF(B2:B11,"North"), the criterion "North" selects the matching region cells.

D

Date serial number
A date serial number is a stored numeric representation of a calendar date, allowing spreadsheet functions to compare dates in order.
A latest-date formula can display a serial number until its result cell receives a date format.
Disjoint groups
Disjoint groups have no records in common, so their conditional counts or sums can be added without correcting for overlap.
North and East are disjoint when every sale has exactly one region value in its Region cell.
Double unary
The double unary is two minus signs used to convert logical TRUE/FALSE array results into numeric 1/0 values for calculation.
--(B2:B11="South") makes a region comparison countable by SUMPRODUCT instead of leaving logical values.

E

Empty text
Empty text is a string containing no characters, often returned by a formula; it looks blank even though the cell contains a formula.
A formula returning "" matches an empty-text criterion, while COUNTA still counts its cell.
EXACT
EXACT compares two text values with case sensitivity and can supply a logical test within a SUMPRODUCT calculation.
EXACT can distinguish "Desk lamp" from "DESK LAMP" when the case of the label matters.
Exclusion criterion
An exclusion criterion rejects a named value or pattern, while other conditions may still be needed to require a meaningful filled value.
The criterion "<>South" leaves out South but can still admit a record whose region cell is empty.
Exclusive boundary
An exclusive boundary leaves its endpoint out of a selection, using a strict comparison such as less than the next day.
An August report ending before September 1 includes August 31 timestamps without including September.

G

Group average
A group average describes the numeric values in one selected group; combining groups requires accounting for their numeric sizes.
A four-sale region must carry more weight than a three-sale region when their revenue means are combined.

I

Inclusion-exclusion
Inclusion-exclusion combines two overlapping groups by adding their results and subtracting their shared result once.
Counts of 4 and 3 with an intersection of 2 give 5 distinct matching records after the correction.
Intersection
An intersection is the set of records that belong to both selected groups, found by applying the groups' conditions together.
The intersection of North and Desk lamp contains the North lamp sales counted in both groups.

L

Line total
A line total is the quantity for one order record multiplied by its unit price, before totals from other records are added.
Three items at 4.50 each contribute a line total of 13.50 to the combined order amount.
Logical array
A logical array contains a TRUE or FALSE value at each position, often produced by comparing a whole range with a criterion.
Comparing every region with "South" creates a logical array with TRUE only at South records.

M

MAXIFS
MAXIFS returns the largest numeric value from records meeting all its criteria, with the value range placed before the criteria pairs.
A rep summary uses MAXIFS on revenue to find that rep's largest matching sale amount.
MINIFS
MINIFS returns the smallest numeric value from records meeting all its criteria, with matching dimensions for the value and test ranges.
MINIFS on a date column finds the earliest inspection among records for the selected equipment category.
Mixed reference
A mixed reference locks only its column or only its row, allowing a formula to follow one direction while holding the other fixed.
In a two-way report, $G2 keeps the region column fixed and H$1 keeps the product row fixed.

N

No-match result
A no-match result occurs when no record passes the criteria; its displayed form depends on the function used for the calculation.
A missing region produces 0 in MAXIFS but #DIV/0! when its revenue is averaged with AVERAGEIFS.
Number stored as text
A number stored as text contains numeric-looking characters without being a numeric value, so conditional value calculations can skip it.
An imported revenue of text "950" does not contribute until the stored value is converted into a number.
Numeric count
A numeric count is the number of contributing number values; for an average, it includes real zeros but excludes empty and text values.
Four matching rows can supply only three numbers when one selected amount has not been recorded.
Numeric mask
A numeric mask is an array of 1s and 0s that keeps or removes corresponding row contributions in an array calculation.
Multiplying revenue by a region mask keeps the selected revenue and changes other contributions to zero.

O

OR logic
OR logic accepts a record when at least one alternative test is true, including a record that passes more than one alternative.
A North-or-lamp selection accepts a North chair sale and an East lamp sale, as well as a North lamp sale.

Q

Question-mark wildcard
A question-mark wildcard represents exactly one character in a text criterion; spaces also occupy a character position.
The pattern "???" accepts "Ana" but not "Chen", because the names have different lengths.

R

Range alignment
Range alignment keeps corresponding positions tied to the same records, so a selected label is tested with its own values.
Pairing B2:B11 with D3:D12 is misaligned even though both ranges contain ten cells.
Reconciliation
Reconciliation compares a report with an independent total or count to check that its categories account for the intended records.
A complete nonoverlapping region summary should total the same revenue as the original sales list.
Record
A record is one complete entry in a list, with its related fields kept together so formulas can test the same entry across columns.
A sale occupies one row, keeping its date, region, rep, product, units and revenue together.
Relative reference
A relative reference changes its row and column positions with a copied formula, allowing each copy to use the next category label.
G2 becomes G3 when a summary formula is copied down one row to read the next region name.
Row-by-row comparison
A row-by-row comparison tests corresponding entries from two columns against each other, giving each record its own comparison value.
Actual cost above budget needs each actual amount compared with its own row's budget, not one shared cutoff.

S

SEARCH
SEARCH returns the position of a text fragment inside a value without case sensitivity, or an error when that fragment is absent.
ISNUMBER applied to SEARCH results supplies a contains-desk mask for a SUMPRODUCT count.
Shifted range
A shifted range begins at the wrong record relative to another range, pairing values with other records even when dimensions match.
A region range starting on row 2 and a revenue range starting on row 3 can produce a wrong total silently.
Structured reference
A structured reference names a table or table column in an Excel formula, keeping the range tied to the table as its records grow.
Sales[Revenue] includes new sales added as rows of Sales without editing each summary formula.
Sum range
A sum range contains the numeric values to add after matching records are selected; text and empty value cells do not add an amount.
Revenue supplies the sum range while Region supplies the test range in a regional revenue total.
SUMIF
SUMIF adds values selected by one criterion, taking the tested range first and an optional separate value range as its third argument.
The formula =SUMIF(B2:B11,"South",F2:F11) adds revenue from the matching South records.
SUMIFS
SUMIFS adds values from its first range for records passing every later criteria pair, with all ranges matched in size and shape.
A North summary with a minimum quantity uses SUMIFS to apply the region and quantity tests together.
SUMPRODUCT
SUMPRODUCT multiplies numeric values at corresponding array positions and adds the products, supporting line totals and weighted results.
An order total pairs each quantity with its own unit price before adding the resulting amounts.

T

Tilde escape
A tilde escape makes a following asterisk or question mark a literal character instead of a wildcard in the criterion.
The pattern "*~?*" finds comments containing a real question mark, even within longer text.
Timestamp
A timestamp records a date and a time together; the time is represented by a fractional part added to the date number.
A sale at 3:00 PM is later than midnight at the start of the same calendar date.

W

Weight
A weight specifies how much influence a value has in a weighted calculation, such as credits attached to a course score.
A score attached to four credits contributes four times its value to the weighted product total.
Weighted average
A weighted average divides the sum of each value times its weight by the sum of the weights, which must not be zero.
Scores with different credit weights require a weighted average to reflect their different contributions.
Wildcard
A wildcard is a character that represents unknown text characters inside a supported criterion, making partial-text matching possible.
A product report uses "Desk*" to accept several names that begin with the same text.

#

#DIV/0!
The #DIV/0! error indicates division with no valid nonzero denominator; conditional averages return it when no numbers can be averaged.
Matching category rows can still produce #DIV/0! if every selected amount is empty or text.
#NAME?
The #NAME? error indicates an unrecognized name, which can come from missing text quotes, a misspelled function or version support.
An unquoted region label can be interpreted as a defined name instead of a text criterion.
#VALUE!
The #VALUE! error indicates an invalid value or argument arrangement; mismatched range dimensions are a common cause in IFS functions.
SUMIFS cannot pair a ten-cell sum range with a nine-cell criteria range and returns #VALUE!.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started