- Learn
- Computer Science & IT
- Digital Skills
- Spreadsheet Formulas and Functions
- Conditional Counting and Summing
Conditional Counting and Summing in Spreadsheets
IntermediateLesson 2 of 7 in Spreadsheet Formulas and Functions Course
What you will learn
- 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 COUNTIFSee 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 blanksBuild criteria that compare numbers, text and dates, take their values from cells, and find empty or filled cells.
- Match partial text with wildcardsUse the asterisk, question mark and tilde to match text that begins with, ends with or contains a pattern.
- Count the rows that meet one condition with COUNTIF
- 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 COUNTIFSCombine conditions on one or more columns so that only rows meeting all of them are counted.
- Add up values with SUMIF and SUMIFSTotal 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 AVERAGEIFSFind 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 MINIFSReturn the highest or lowest value among the rows that meet one or more conditions, including dates, and recognize when no row matched.
- Count the rows that meet several conditions with COUNTIFS
- 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 correctlyLay out categories as criteria cells and write one formula with absolute and mixed references that fills the whole table.
- Combine conditions with OR and exclusionsCount and sum rows that meet one condition or another without counting any row twice, and leave out unwanted categories.
- Find and fix wrong conditional resultsRecognize the typical causes of zero, too-small and error results in conditional formulas, and check results against the data.
- Build a summary table that copies correctly
- Use SUMPRODUCT to multiply and add arrays, build conditions from comparisons, and choose between it and the conditional functions.
- Multiply and add arrays with SUMPRODUCTUse SUMPRODUCT for totals of quantity times price and for weighted averages, with ranges of matching size.
- Add conditions inside SUMPRODUCTTurn 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 SUMPRODUCTDecide which function answers a summary question most clearly and reliably, and use one method to check the other.
- Multiply and add arrays with SUMPRODUCT
Conditional Counting and Summing study guide
1Pick 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.
| Row | Date | Region | Rep | Product | Units | Revenue |
|---|---|---|---|---|---|---|
| 2 | March 2, 2026 | North | Ana | Desk lamp | 12 | 480 |
| 3 | March 3, 2026 | South | Ben | Office chair | 4 | 760 |
| 4 | March 5, 2026 | North | Chen | Office chair | 3 | 570 |
| 5 | March 9, 2026 | East | Ana | Desk lamp | 20 | 800 |
| 6 | March 12, 2026 | South | Dev | Standing desk | 2 | 900 |
| 7 | March 16, 2026 | North | Ben | Desk lamp | 8 | 320 |
| 8 | March 19, 2026 | East | Chen | Standing desk | 1 | 450 |
| 9 | March 23, 2026 | South | Ana | Desk organizer | 15 | 225 |
| 10 | March 26, 2026 | North | Dev | Office chair | 5 | 950 |
| 11 | March 30, 2026 | East | Ben | Desk organizer | 10 | 150 |
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
| Criterion | Meaning |
|---|---|
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.
| Criterion | What it selects | Count |
|---|---|---|
"Desk*" | Names beginning with Desk | 5 |
"*desk" | Names ending with desk | 2 |
"*desk*" | Names containing desk anywhere | 7 |
"Desk" | The exact name Desk | 0 |
=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.
2Count, 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.
| Function | First argument | Position of value range |
|---|---|---|
| SUMIF | Range to test | Third; optional |
| SUMIFS | Range to add | First; 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 values | Numeric count | Average |
|---|---|---|
| 480, 570, 320, 950 | 4 | 580 |
| 480, 570, empty, 950 | 3 | ≈ 666.67 |
| 480, 570, 0, 950 | 4 | 500 |
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.
3Build 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.
| Reference | Fixed part when copied |
|---|---|
$F$2 | Column and row |
$G2 | Column G |
H$1 | Row 1 |
G2 | Neither |
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.
| Region | Desk lamp | Office chair | Standing desk | Desk organizer |
|---|---|---|---|---|
| North | 800 | 1,520 | 0 | 0 |
| South | 0 | 760 | 900 | 225 |
| East | 800 | 0 | 450 | 150 |
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
$G2for side labels andH$1for 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
| Result | First checks |
|---|---|
| Zero or a total that is too small | Criteria, spaces, missing records, stored text |
#VALUE! | Range dimensions; closed source workbook |
#DIV/0! in an average | Matching 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.
4Calculate 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:
- The first line contributes 3 times 4.50, or 13.50.
- The second contributes 5 times 2.00, or 10.00.
- The third contributes 2 times 12.25, or 24.50.
- 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
| Question | Clear 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
1Choose records with clear criteria
13 steps
- 1IntroductionDecide 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.
- 2ExampleFollow 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.
- 3TipMove 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. - 4ChallengeCount 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.
- 5ExplanationBuild a changing cutoff
Suppose H4 holds a revenue cutoff of 500. Write
">"&H4as 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. - 6ExampleUse 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. - 7ChallengeKeep 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
"<="&H2miss 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. - 8Key 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. - 9ExplanationPlace 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.
- 10ExampleEscape 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. - 11ChallengeSelect 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. - 12ChallengeCombine 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. - 13RecapRead 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.
2Choose a count, total, average or extreme
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionChoose what the answer measures
- 2ExampleRequire both tests in one record
- 3ChallengeCheck whether two criteria can both be true
- 4TipKeep positions aligned
- 5ExampleUse SUMIF for one selection
- 6ExplanationMove the values first for SUMIFS
- 7ChallengeRepair a zero revenue total
- 8ExampleFind a mean from the selected numbers
- 9ChallengeChange a missing value to a real zero
- 10Key InsightCombine groups without equalizing their sizes
- 11TipDistinguish no numbers from zero
- 12ExampleFind a value at an extreme
- 13ChallengeMake a missing category visible
- 14ConnectionFind the latest matching date
- 15ChallengeInterpret two outputs together
- 16RecapLabel the output you can justify
3Build and check a copied report
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake a report that survives copying
- 2ExampleCopy down from a label cell
- 3ExplanationLock different parts for two directions
- 4ChallengePredict the next copied references
- 5ExampleAdd alternatives on one column
- 6ExampleCorrect overlap across columns
- 7ChallengeKeep a shared condition in both alternatives
- 8Key InsightAsk whether excluded groups leave blanks
- 9ExplanationTrace a small summary total
- 10ChallengeChoose a repair that addresses the cause
- 11ChallengeReconcile after the repair
- 12RecapCheck the next change as well as today's total
4Build SUMPRODUCT calculations from rows
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionThink in corresponding positions
- 2ExampleCalculate each order line
- 3ExampleDivide weighted products by total weight
- 4ChallengeDiagnose an omitted order line
- 5ExplanationTurn a comparison into ones and zeros
- 6ExampleMultiply masks for AND
- 7Key InsightSee why raw OR scores double-count
- 8ChallengeCount an overlapping OR once
- 9ExampleTest a calculated unit price
- 10ChallengeCompare a cost with its own budget
- 11TipChoose a supported text test
- 12ConnectionUse the simpler function for a simple selection
- 13ChallengeChoose a method for an absent extreme
- 14Key InsightCheck agreement without ignoring the records
- 15RecapMake the contribution match the question
Conditional Counting and Summing practice questions
Set 1: Read averages, extremes and copied summaries10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
#DIV/0!. None of the cells contains a spreadsheet error. What does this show?Show answerHide answer
Question 4 of 10
=MAXIFS(D2:D12,B2:B12,"Archive") return?Show answerHide answer
#DIV/0! is the no-numeric-values behavior associated with averages.Question 5 of 10
Show answerHide answer
Question 6 of 10
$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?Show answerHide answer
$G$2 would keep every copied row selecting the original category.Question 7 of 10
Show answerHide answer
$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
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
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
=COUNTIF(B2:B6,"Repair") return?Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
">0.7", and why?Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
>=DATE(2026,8,1) and <=DATE(2026,8,31) and finds only one entry. What correction gives the intended August count?Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
"Box*"?Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
=SUMIF(A2:A5,"Central",C2:C5) return?Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
=SUMPRODUCT(--(D2:D4>C2:C4)) return when C is Budget and D is Actual?Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
=COUNTIFS(A1:A5,"<>Metro",A1:A5,"<>") return?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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
=SUMIFS(Sales[Amount],Sales[Category],G2) include those records?Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
#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?Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute reference
$F$2:$F$11 continues to identify the same revenue cells after a formula is filled down.AND logic
Arithmetic mean
Array
Asterisk wildcard
"*desk*" accepts both "Desk lamp" and "Standing desk" because desk can appear anywhere.AVERAGEIF
AVERAGEIFS
B
Bounded range
C
Calculated condition
Case-sensitive match
Comparison operator
">=10" accepts a quantity of 10 as well as larger numeric quantities.Concatenation
">"&H4 uses the current cutoff in H4 instead of comparing with the letters "H4".Conditional aggregation
Conditional extreme
Conditional share
Conditional sum
COUNTIF
COUNTIFS
Criteria pair
E2:E11,">=4" adds a minimum-unit test to an existing region-and-product count.Criterion
=COUNTIF(B2:B11,"North"), the criterion "North" selects the matching region cells.D
Date serial number
Disjoint groups
Double unary
--(B2:B11="South") makes a region comparison countable by SUMPRODUCT instead of leaving logical values.E
Empty text
"" matches an empty-text criterion, while COUNTA still counts its cell.EXACT
Exclusion criterion
"<>South" leaves out South but can still admit a record whose region cell is empty.Exclusive boundary
G
Group average
I
Inclusion-exclusion
Intersection
L
Line total
Logical array
M
MAXIFS
MINIFS
Mixed reference
$G2 keeps the region column fixed and H$1 keeps the product row fixed.N
No-match result
#DIV/0! when its revenue is averaged with AVERAGEIFS.Number stored as text
Numeric count
Numeric mask
O
OR logic
Q
Question-mark wildcard
"???" accepts "Ana" but not "Chen", because the names have different lengths.R
Range alignment
Reconciliation
Record
Relative reference
Row-by-row comparison
S
SEARCH
Shifted range
Structured reference
Sales[Revenue] includes new sales added as rows of Sales without editing each summary formula.Sum range
SUMIF
=SUMIF(B2:B11,"South",F2:F11) adds revenue from the matching South records.SUMIFS
SUMPRODUCT
T
Tilde escape
"*~?*" finds comments containing a real question mark, even within longer text.Timestamp
W
Weight
Weighted average
Wildcard
"Desk*" to accept several names that begin with the same text.#
#DIV/0!
#DIV/0! error indicates division with no valid nonzero denominator; conditional averages return it when no numbers can be averaged.#DIV/0! if every selected amount is empty or text.#NAME?
#NAME? error indicates an unrecognized name, which can come from missing text quotes, a misspelled function or version support.#VALUE!
#VALUE! error indicates an invalid value or argument arrangement; mismatched range dimensions are a common cause in IFS functions.#VALUE!.- 1Logical Functions
- 2Conditional Counting and Summing
- 3Lookup Functions
- 4Text Functions
- 5Date and Time Functions
- 6Dynamic Arrays
- 7Troubleshooting Formulas
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.