Ravindra BagaleCourses & study guides मराठी Track your progress

3. Formulas and Functions

Excel

Practice and Answer Key: SUMIFS, COUNTIFS and IF

Use an eight-row dataset to answer a manager's questions

A manager preparing the Monday handover wants to compare two cities, check which rows passed a time limit and decide whether the team's amount target was met. All of the answers come from one workbook. Each requires you to choose the right population and output. A total for completed orders, a count of rows and an average across timings are different measurements.

This chapter practice uses fictional quick-commerce records inspired by Blinkit and Amazon Now. The orders, status, values and timing rules are invented. Build the workbook in a fresh editable Excel file. Try each exercise with the evidence from the rows before opening the answer. The displayed answers and the follow-up change tests let you verify your result.

  • SUMIFS. Select the records that meet every criterion and add one numeric measure.
  • COUNTIFS. Select the records meeting every criterion and count those rows.
  • AVERAGEIF and AVERAGEIFS. Review which population supplied the values used for an average.
  • IF. Apply one threshold to each row with a stated rule for the exact boundary.
  • Audit. Explain the expected record IDs, check the results at a boundary and trace any difference to a particular condition or range.

Enter the original practice rows

Save a scratch workbook with an Orders Practice worksheet. Starting in A1, use the six headings below. The eight records begin in row 2 and end in row 9. Keep columns D and E numeric. Type the labels in City and Status consistently so comparison tests have one clear vocabulary. If you paste from the page instead of typing, verify where the cells landed and make sure each number remained numeric.

Rows A1:F9 from the synthetic city report
A · Order IDB · CityC · PlatformD · AmountE · MinutesF · Status
AMN-2001KolhapurAmazon Now34011Delivered
BLK-2002SolapurBlinkit18017Delivered
BLK-2003KolhapurBlinkit5209Delivered
AMN-2004SolapurAmazon Now26019Cancelled
BLK-2005KolhapurBlinkit15016Delivered
AMN-2006SolapurAmazon Now61012Delivered
BLK-2007KolhapurBlinkit9014Returned
BLK-2008SolapurBlinkit4308Delivered

Check what each row represents

One row is one sample order and these eight order IDs are distinct. Amount is the recorded value for the order. It is not automatically a completed sale because the status could be Cancelled or Returned. Minutes is the recorded time field for this exercise. It is available even for the two rows whose status is not Delivered. If a report is about finished deliveries only, say that separately.

Build a reliable starting count

Confirm the source has eight ID rows, six Delivered rows, one Cancelled row and one Returned row. Sum the eight recorded amounts independently and expect 2,580. The completed subset contributes 2,230 and the excluded values are 260 and 90. This full-file reconciliation gives you a control for later results, even before you type an individual conditional formula.

Why does the file contain a valid numeric amount for a cancelled record?

It records the original order value. You can still classify the record by status. Include or exclude that amount according to the report definition rather than deleting the row or treating every number as a completed sale.

Read each question as a separate measurement

Kolhapur has three delivered amounts: 340, 520 and 150, totaling 1,010. The returned amount 90 is excluded.
Check the two conditions together. A matching city still needs a matching delivery status.

Identify the records on paper

For the delivered Kolhapur question, check B and F on each row. Match the city exactly as entered in the file and require Delivered. Circle AMN-2001, BLK-2003 and BLK-2005. Their amounts give 340 plus 520 plus 150, or 1,010. BLK-2007 is also in Kolhapur and has amount 90, but its Returned status excludes it from this measure.

For the delivered Solapur amount, select BLK-2002, AMN-2006 and BLK-2008. These sum to 1,220. The question that counts Solapur deliveries uses the same population and returns 3. A COUNTIFS formula does not need to read column D for this record count, because it only decides how many rows meet the two conditions.

Use a representative test row for a threshold

The time question says “more than 15 minutes.” That places 15 inside the allowed time and 16 outside it. In our dataset the rows at 17, 19 and 16 minutes meet the late rule. One of those rows was cancelled. Include it when counting all recorded times greater than 15, and exclude it when the measurement is restricted to completed deliveries.

Under the rule more than 15 is Late, 14 and 15 minutes are On time while 16 minutes is Late.
The threshold is strict. The exact cutoff provides a test even when the main sample has no row at that value.

Trace the delivered Kolhapur total before typing it

  1. Name the measure

    The manager wants an amount, not a row count. The values to add come from D2:D9, the numeric Amount range.

  2. List the conditions

    The city in B2:B9 must be Kolhapur. The status in F2:F9 must be Delivered. Both conditions apply on the same row.

  3. Match the same input positions

    All three formula ranges begin in row 2 and end in row 9. Cross-check one matching row and one returned row to show how the conditions align with the amounts.

  4. Prove the expected result

    The three included IDs give values of 340, 520 and 150. Their sum is 1,010. If the result is 1,100, investigate whether the returned 90 was included.

Read the functions by the role of each argument

SUMIFS begins with the range of values to add, then takes a criteria range and a criterion as a pair for each requirement. COUNTIFS begins directly with its first criteria range and criterion. The extra S is part of the function name. AVERAGEIF takes the first criteria range and criterion, followed by an optional range to average. AVERAGEIFS puts its range to average first. Read the signature for the function you are actually using.

Keep measurements and criteria on matching rows

For the city totals, Amount is D2:D9, City is B2:B9 and Status is F2:F9. Use matching dimensions and the same start and end rows. D2:D9 with B3:B10 has the same number of cells, but the city on each position belongs to a different record. A result can calculate and still use a wrong pairing. In an audit select each range and check its boundaries before interpreting a number.

Write criteria with exact boundaries

In a SUMIFS or COUNTIFS criteria position, a comparison such as greater than 15 is supplied as ">15". In an IF logical test use E2>15, which evaluates directly to TRUE or FALSE. The two positions have different roles. Where your Excel expects a different list separator, use the same order of arguments with the divider configured for your installation.

You can keep a cutoff value in a cell such as K2 to revise it once. In =COUNTIF(E2:E9,">"&$K$2), the comparison operator is text and is joined to the number from K2. In the corresponding IF you can use E2>$K$2. The absolute address keeps the cutoff fixed when you copy the row formula. Give K2 a label and check it contains a verified number before publishing the report.

Lab 1 · Answer five manager questions and tag every row

Goal. Calculate the existing eight-row answer key in six steps and explain which records produce the results. Use G for the per-row tag and H2:H6 for the summary, leaving the six source columns unchanged. Put a heading in G1 and write the summary descriptions nearby without overlapping the source table.

  1. Calculate delivered amounts for Kolhapur and Solapur. In H2 add Amount where City is Kolhapur and Status is Delivered. Duplicate the shape of the formula for Solapur in H3. Verify the row IDs first. Use all eight rows and keep the original amount field as the sum range.
  2. Count Solapur deliveries. In H4 count records where City is Solapur and Status is Delivered. Compare the matching records with your H3 selection. It should be the same set and a different output unit.
  3. Count recorded times above 15 minutes. In H5 count Minutes greater than 15 across all rows. The question does not limit status. Include AMN-2004 with its recorded 19 minutes in this calculation.
  4. Average Kolhapur timings. In H6 take a simple average of recorded Minutes for the four Kolhapur rows. All four values belong to this question. Later you will also calculate the average for only Delivered rows and compare.
  5. Label the eight records. In G2 use IF to return Late for more than 15 minutes and On time otherwise, assuming valid numeric times as entered in the exercise. Fill down through G9. Check that the three late record IDs match the H5 count.
  6. Reconcile the complete delivered set. Add H2 and H3. Verify 2,230 based on the six Delivered rows across both cities. Compare with 2,580 across all rows. The difference equals the Returned and Cancelled amounts together.
Open the exact formulas and original answer key
H2 =SUMIFS(D2:D9,B2:B9,"Kolhapur",F2:F9,"Delivered")
H3 =SUMIFS(D2:D9,B2:B9,"Solapur",F2:F9,"Delivered")
H4 =COUNTIFS(B2:B9,"Solapur",F2:F9,"Delivered")
H5 =COUNTIF(E2:E9,">15")
H6 =AVERAGEIF(B2:B9,"Kolhapur",E2:E9)
G2 =IF(E2>15,"Late","On time")
  • H2. 1,010.
  • H3. 1,220.
  • H4. 3.
  • H5. 3.
  • H6. 12.5 minutes.
  • Late IDs. BLK-2002, AMN-2004 and BLK-2005.

H6 averages 11, 9, 16 and 14. H2 and H3 exclude one known exception each. The G2 expression needs to follow each row when filled. Check G9 refers to E9.

Expected evidence. The amount and count for the Solapur deliveries use the same three IDs. The H5 time count and the copied G tags agree because they use the same rule on the same valid cases. If H2 is 1,100, check the status criterion before changing a source number. If H6 only reads approved Delivered rows, it is answering a different average question.

Lab 2 · Build a paid-category measure and test a target

Goal. Select a paid subset, assess a threshold with an exact boundary, then check the impact of a single change. Add a sheet named Paid Practice. The invented checkout summary uses five recorded payments and a delivery-minute field. Paid Yes means this sample has a confirmed paid status. Amount may legitimately be zero for a recorded line in the lesson.

Data for Paid Practice in rows 2 through 6
A · Payment IDB · CategoryC · PaidD · AmountE · Minutes
P-01FruitsYes10010
P-02FruitsNo4017
P-03DairyYes6012
P-04FruitsPending3015
P-05BakeryYes018
  1. Define the paid-Fruits subset. In H2 add the numeric Amount for Fruits rows with Paid exactly Yes. In H3 count those same rows. Predict which case contributes before entering either expression.
  2. Enter and label a target. Put Paid Fruits target beside J2 and type 100 into J2. In H4 return Target met when H2 is at least J2 and Below target otherwise. The source value equals the threshold in this case, so your comparison must handle equality.
  3. Verify a control group. Count all cases with Paid Yes and confirm there are three. Their total amount is 160. P-05 belongs to that paid count even though its amount is a measured zero. Distinguish this control from the narrower Fruits amount.
  4. Change one status in your scratch copy. Change P-02 from No to Yes. The Fruits count becomes 2 and the amount becomes 140. The target stays met. Restore No and check H2 and H3 return to their original values.
  5. Test the target boundary without changing the input data. Set J2 to 101. H4 changes to Below target while H2 stays 100. Restore J2 to 100. Verify which dependency caused each change.
Open the paid-category answer and comparison formulas
H2 =SUMIFS(D2:D6,B2:B6,"Fruits",C2:C6,"Yes")
H3 =COUNTIFS(B2:B6,"Fruits",C2:C6,"Yes")
H4 =IF(H2>=J2,"Target met","Below target")

P-01 contributes 100 and is the only original paid Fruits row. The other Fruits rows have No or Pending. The count is 1 and the target of 100 is met. Changing P-02 makes a second record contribute its 40. The target check uses the resulting amount rather than the count.

Expected evidence. For the original data, H2 is 100 and H3 is 1. H4 is Target met. If H2 gives 170, the amount likely used all Fruits records instead of only confirmed Yes. Confirm both criteria before computing a target status. Save the restored scratch workbook or close it after checking.

Extend the report with clearly named populations

Compare an all-row average with a completed-only average

H6 measures the four recorded Kolhapur times. It answers 12.5 minutes because the rows contain 11, 9, 16 and 14. If the manager now asks only about completed Kolhapur deliveries, use AVERAGEIFS with Minutes first and both City and Status criteria. The selected times are 11, 9 and 16, giving 12.0. Label the results separately to preserve the scope of each question.

Using the same original source, compute the average for Delivered Solapur rows. AVERAGEIFS reads three values, 17, 12 and 8. Their mean is about 12.33 minutes. Compare this with the all-Solapur average of 14.0 minutes from 17, 19, 12 and 8. The 19-minute cancelled record explains why the two averages differ. A correct formula can produce a different percentage or mean once the business definition changes.

Choose the base for a late-delivery percentage

Two of the six completed orders took greater than 15 minutes. The late share among completed orders is therefore 2 out of 6, or about 33.33%. The three late recorded times among all eight rows yield 37.5%. Those measurements answer different questions. If a batch has zero completed orders, there is no measured completed-order percentage. Keep that unavailable state visible along with the completed count of zero.

To create the completed late count, use =COUNTIFS(E2:E9,">15",F2:F9,"Delivered"). A separate =COUNTIF(F2:F9,"Delivered") gives the base for comparison. Verify that the population inside the numerator condition is a subset of the population in the denominator. If you used the all-row late count with the completed-only denominator, a real proportion would be misrepresented.

Which three IDs pass the all-row late test, and which two remain in the completed subset?

The all-row test matches BLK-2002, AMN-2004 and BLK-2005. AMN-2004 is Cancelled. The completed subset keeps BLK-2002 and BLK-2005.

Use test cases to catch a wrong answer before handover

Check a value at exactly the threshold

The eight-row sample is useful for a first report, but it has no recorded time of exactly 15. Create three small test rows outside the sample using 14, 15 and 16 minutes. Run the same IF logic on those cells. Expect On time, On time and Late. If the middle result is Late, the expression probably used greater-than-or-equal instead of strictly greater. Fix the comparison before copying it to any new data.

Explain why a plausible wrong result occurred

ObservationCheckControl
Kolhapur amount is 1,100Look for a missing Delivered condition.Compare the three qualifying IDs and the one Returned row.
Solapur count is 4One Cancelled row may have been included.Match the three completed rows used for H3.
COUNTIF expression is rejectedReview the quotation marks around the cutoff criterion.Use the quoted comparison text in the criteria argument.
SUMIFS gives an error or wrong amountCompare dimensions and actual row alignment across ranges.Start all source fields at row 2 and end at row 9 for this fixture.
15 minutes is tagged LateCheck if the comparison includes equality.Try 14, 15 and 16 next to each other.

When a copied tag reads the wrong row, compare formulas in the first and last output. G9 should check E9, with the same threshold rule as G2. If you used a threshold cell such as K2, the threshold address should stay anchored. Separately test a new valid record just outside the current range. Fixed summary ranges can leave it out even when its row tag calculates correctly.

Handle missing fields without confusing the result

The sample uses numeric timings and valid statuses. In a practice copy replace one timing with a blank and another with the text Pending. A report policy that treats both as unmeasured should route them to review before comparing with 15. An empty-looking input and a measured zero need a different response. The lab's short IF assumed values already met its quality rule.

Use a separate review outcome

Try =IF(E2="","Missing time",IF(ISNUMBER(E2),IF(E2>15,"Late","On time"),"Review time")) in one scratch row. This checks whether there is a value, tests whether it is numeric and applies the comparison only on the numeric path. If the business also forbids negative minutes, add a range check before supplying a normal result. Test a numeric zero under the rule you actually intend.

Count the available measured durations separately from the number of orders. Use COUNT on the numeric source range for this controlled input. The denominator of a time-rate report should represent the known relevant population. A formula returning empty text looks blank but COUNTA can still count it. Decide which kind of missing value you are auditing and keep those data-quality results visible.

A time formula displays an empty string. Can a populated-cell count still count it?

Yes. COUNTA can count an empty string produced by a formula. A numeric count treats it differently. Use the appropriate check and inspect the cell's content when blank-looking results matter.

Build a reusable city summary driven by a cell reference

After completing the original exercises, suppose the manager wants one result row per city rather than separate formulas with city names typed into them. Put the city in its own field, then let the summary formula read it. This keeps the comparison visible, helps you fill the same formula into the next row and makes it easier to validate a change. Work on the original eight-row Orders Practice dataset.

Place the result and criteria fields deliberately

Use M1:R1 for City, Delivered Amount, Delivered Orders, Delivered Mean Minutes, Late Delivered and Late Share. Put Kolhapur in M2 and Solapur in M3. Put the verified timing cutoff of 15 in K2. Write the formulas below into N2:R2, checking one function at a time. The source ranges stay fixed and the referenced city row follows each summary destination.

N2 =SUMIFS($D$2:$D$9,$B$2:$B$9,$M2,$F$2:$F$9,"Delivered")
O2 =COUNTIFS($B$2:$B$9,$M2,$F$2:$F$9,"Delivered")
P2 =AVERAGEIFS($E$2:$E$9,$B$2:$B$9,$M2,$F$2:$F$9,"Delivered")
Q2 =COUNTIFS($B$2:$B$9,$M2,$F$2:$F$9,"Delivered",$E$2:$E$9,">"&$K$2)
R2 =IF(O2=0,"No completed orders",Q2/O2)

Fill N2:R2 down one row. Inspect N3. The source ranges in D, B and F remain unchanged, while its city criterion is now M3. Each summary row has its own city, but every row reads the complete Orders table. Leave P2:P3 numeric when the completed timings are present and format R2:R3 as percentages for readability.

Controls for the reusable delivered summary
CityAmountCountMean minutesLateLate share
Kolhapur1,010312.00133.33%
Solapur1,220312.33133.33%

Test a city with an empty selection separately

Try a new summary row with Nagpur, which has no records in this dataset. The Delivered Amount and Delivered Orders results are zero for that selection. A plain AVERAGEIFS for no qualifying numeric values can report a divide-by-zero error. Where the question has an intentional no-data case, use a documented conditional check before averaging. R can already say No completed orders because it reads the count first.

Restore the two-city report after checking. If your worksheet receives incomplete timing fields, count available numeric timings as well as completed orders before interpreting the average or late share. The original lab assumes each completed row has a usable time. A condition on status tells you which orders are finished. It does not validate whether their minutes can be measured.

Compare several thresholds without changing the source time

What happens if the manager wants the count for a tighter cutoff? Keep the recorded times unchanged and revise only the cutoff in K2. The all-row calculation should include every recorded time above it. The completed calculation should include only Delivered rows above it. Write separate formulas with the same number cell so you can compare both populations after each change.

Use a reference in the criteria expression

In the scratch workbook compare =COUNTIF(E2:E9,">"&$K$2) with =COUNTIFS(E2:E9,">"&$K$2,F2:F9,"Delivered"). The first uses one criterion. The second applies another required condition to each row. Predict the count at each cutoff in the table before editing K2. Use the same strict greater-than rule as the first lab.

Count records with time strictly greater than each limit
CutoffAll recorded ordersDelivered only
1153
1242
1532
1900

Moving from 12 to 15 changes the all-row count by one while the completed count stays at two. The extra comparison only removes the Returned record at 14 minutes from the all-row group. Moving down to 11 makes the Delivered record at 12 minutes qualify. Explain the change using the exact row and status. Restore K2 to 15 before you compare the first lab's original outcomes.

A blank threshold cell changes the calculation's meaning. Some criteria functions can treat an empty referenced criterion as zero when it is supplied directly. With a joined comparison string, an empty input can likewise produce an unintended criterion. Require a valid threshold before running the report. A check that refuses to publish an incomplete cutoff gives the manager a clearer explanation than an unexplained count.

Distinguish a true zero total from no qualifying records

In Paid Practice, one paid Bakery row has a verified amount of zero. There is no paid Sports row in the same source. A sum with no qualifying numeric values can also return zero, so the displayed amount alone cannot distinguish those two cases. Count the matching rows under the same conditions. The Bakery selection gives one matching row. Sports gives zero matching rows.

Add matching-count and data-type checks before the target check

Change the category criterion in a scratch version of H2 and H3 from Fruits to Bakery. Verify Amount 0 and Count 1. Next change the category to Sports and verify Amount 0 and Count 0. The aggregate is the same and the selection evidence differs. Apply a target decision only when the metric has the observations required by its business definition.

For example, if H3 is the count of paid rows and verified amount data are available, =IF(H3=0,"No eligible rows",IF(H2>=J2,"Target met","Below target")) displays an explicit empty selection before comparing the paid sum. Some reports intentionally count a no-sale period toward a goal. If that is the rule, keep the no-activity signal and document how the target result should behave. The sheet should communicate the policy used.

Recognise a matching row with no amount

In a spare copy remove the measured zero for P-05, leaving its Paid Yes and Bakery labels intact. The row still qualifies by those two criteria. A zero total may remain because there was no numeric amount to add. Inspect the Amount field and test its type before deciding that the result is a true measured zero. Restore the 0 when done. This is why a categorical record count and a numeric completeness check can both be needed.

Prepare a handover that survives another row

Reports usually receive new records. In a scratch copy add a ninth order named BLK-2009 in row 10. Give it Kolhapur, Blinkit, amount 200, time 15 and status Delivered. The old formulas reference rows 2 to 9, so they can omit the new record even while the copied tag in G10 calculates correctly. Check the summary ranges before interpreting results from a growing data file.

Update every related range and predict the effects

  • Expected amount change. After widening the amount and its conditions together, the delivered Kolhapur amount rises to 1,210. Solapur stays 1,220. Total Delivered reaches 2,430.
  • Expected count change. Delivered Kolhapur count rises from 3 to 4. The total record count rises from eight to nine. Solapur count stays at three.
  • Expected boundary change. The new row takes exactly 15 minutes. G10 is On time and the all-row late count remains 3. This proves the equality test even when the input population grows.

Review a Table-based worksheet later if your input grows often. An Excel Table's named ranges can follow the table's rows, while fixed address formulas need a more explicit update. In either design verify the first and last IDs and that every related field reaches the same row before trusting a report. Keep the original answer-key workbook and use a separate append experiment for these checks.

Document which source and rule you used

A helpful written handover names the worksheet, the source extent, the qualifying statuses, the timing cutoff and the unit of each result. Mention exactly which cases were added or excluded. Provide one supported result with the sample IDs. This makes it possible to reproduce the totals as of the handover rather than interpreting fresh source rows as changes in Excel's arithmetic.

Cross-check the city totals against a platform breakdown

A manager asks another question using the same source. How much of each city's Delivered amount came from each platform? An independent breakdown gives a control total as well as the answer. Each delivered sample record belongs to one city and one platform. If the groups use a complete, non-overlapping classification, all four cells in the result grid should add to the previously checked delivered amount.

Make a small two-direction summary

Use a new copy of the eight-row Orders Practice worksheet so existing summary fields are safe. Put City in M1, Blinkit in N1 and Amazon Now in O1. Put Kolhapur and Solapur down M2:M3. In N2 enter =SUMIFS($D$2:$D$9,$B$2:$B$9,$M2,$C$2:$C$9,N$1,$F$2:$F$9,"Delivered"). Copy it right through O2, then copy the two result cells down to row 3.

The city criterion stays in column M and moves down with the city row. The platform criterion stays in row 1 and moves across to the next heading. Each amount and criteria range continues to read the same eight source records. Inspect the bottom-right formula at O3 and confirm it uses Solapur, Amazon Now and Delivered before relying on its result.

Expected delivered amounts for the city and platform matrix
CityBlinkitAmazon NowBoth platforms
Kolhapur6703401,010
Solapur6106101,220
Both cities1,2809502,230

Audit the categories by tracing one small result

For Kolhapur and Blinkit, find BLK-2003 at 520 and BLK-2005 at 150. They give 670. A reported 760 likely also includes the Returned order at 90. This is a specific hypothesis to verify by reading the status criterion. For Solapur and Amazon Now, 610 is the only completed amount. Including the cancelled 260 would give 870. The two controls let you test the same syntax on different statuses and cities.

Test one confirmed status correction in a scratch copy. Change AMN-2004 from Cancelled to Delivered while leaving its Amount 260 and time 19 unchanged. The Solapur Amazon Now cell rises from 610 to 870, and the Solapur total rises from 1,220 to 1,480. The total Delivered amount reaches 2,490. Its source record count becomes seven. The recorded amount across all eight rows remains 2,580.

The completed late count now becomes three rather than two because this 19-minute record qualifies for both conditions. The all-recorded late count remains three. These results show which formulas depended on status and which only depended on recorded amounts or times. Restore the original status and verify the original totals again. This single change is a useful control whenever you revise the formulas that distinguish operational outcomes from the whole dataset.

If a real dataset introduces a third city or platform, the fixed four result cells may omit its records. Reconcile the matrix's total against the complete delivered amount before releasing a report, and update the displayed categories and formulas if its scope expands.

Complete three short independent checks

  1. Total the two included cities. Compare their delivered amount totals with the overall Delivered amount in the sample. Check. The two city totals 1,010 and 1,220 sum to 2,230.
  2. Test a different amount definition. Remove only the Delivered condition from a scratch Kolhapur total. Check. It becomes 1,100 because the Returned amount 90 is now counted. State the changed measurement clearly.
  3. Test a new exception. Change a Paid Practice case's Paid entry from Yes to an unknown label. Check. The expected Yes-based sum and count reflect the excluded line. Add a review count for unknown labels so that an unexpectedly low result has an explanation.

Check your understanding

1. Which function adds Amount after requiring City and Status?
  • A. COUNTIFS
  • B. SUMIFS
  • C. IF with no per-row expression

Answer B. SUMIFS uses an amount range and conditions. COUNTIFS counts the matching rows, which can use the same criteria but gives a different unit.

2. What is the delivered Kolhapur amount for the original rows?
  • A. 1,010
  • B. 1,100
  • C. 1,220

Answer A. The matching amounts are 340, 520 and 150. Adding also the Returned 90 would give 1,100 and change the measurement.

3. Which recorded timing is On time under the strictly more-than-15 rule?
  • A. 16
  • B. 19
  • C. 15

Answer C. Fifteen is the boundary. A strict greater-than test does not include it in Late. Test equality even if your first dataset lacks that exact input.

4. Paid Fruits amount is 100 and the target is at least 100. What is the outcome?
  • A. Below target
  • B. Target met
  • C. Unavailable because there is only one row

Answer B. The measured amount equals the target. The “at least” condition includes equality and therefore returns Target met.

5. Which denominator belongs in the share of completed orders that were late?
  • A. Six completed orders
  • B. Eight total sample rows
  • C. The value of all completed orders

Answer A. The question restricts the base to completed orders. Use two late completed orders over the six completed orders, about 33.33%.

6. Three criteria and amount ranges have the same dimensions. What additional check matters?
  • A. They all use the same fill colour
  • B. Their first cells are on different rows
  • C. Each position represents the same source record

Answer C. Equal size alone does not prove matching records. Check the start and end rows and use verified order IDs to confirm alignment.

Interview questions with worked answers

How do you choose between SUMIFS and COUNTIFS?

I ask whether the output is a numeric measure to total or a number of matching records. For Solapur delivered amount, I sum the Amount field on the selected rows. For Solapur delivered count, I count those same rows. I reconcile the selected IDs to make sure both reports use the intended conditions.

How do you verify that your conditions were applied to the intended rows?

I inspect the range endpoints, confirm alignment on the same records and hand-check one matching and one excluded row. In this exercise I can list the three delivered Kolhapur IDs and add 340, 520 and 150. That gives a reproducible reference for the formula's result.

How do you test a threshold rule?

I clarify whether the boundary itself qualifies. For more than 15 minutes I test 14, 15 and 16, expecting only 16 to be late. For an at-least-100 target I test 99, 100 and 101, and expect 100 to meet it.

Why can two average formulas both be correct for the same city?

They can use different populations. The practice city's 12.5-minute average includes all recorded Kolhapur times. The 12.0-minute average uses only completed ones. I label both populations and verify the row counts before comparing the results.

How would you handle unknown status or missing times before releasing a report?

I keep the source value and flag unknown or incomplete rows explicitly. I verify that each measurement uses its documented base and counts the available numbers correctly. Then I check one valid, one boundary and one missing row before publishing the result.

Quick recall cards

  • Source record

    Use fields belonging to the same order ID. Keep criteria ranges aligned with the values they select.

  • SUMIFS

    Put the amount range first and supply each criterion with its matching field range.

  • COUNTIFS

    Count rows matching all specified conditions. Keep the measurement unit as records.

  • AVERAGEIF or AVERAGEIFS

    Check which argument holds the averaged range and which records qualify.

  • IF cutoff

    Test below, at and above the boundary. A strict comparison behaves differently from an inclusive one.

  • Reconcile

    Check the selected IDs, measured counts and a hand-calculated result before sharing an aggregate.

The next chapter uses lookups to get a value from a matching record. Bring the same habits. Check the type of the key, verify one known match, and explain what the workbook should do when a record is missing.

Official Microsoft references

Continue practising: explore the existing Excel Task Hub for additional exercises.