16. Practice Exercises with Answer Hints
16.2 Module 3: Formulas and Functions
Select the records before writing the formula
A teammate asks for “Pune's sales,” then adds “only the delivered ones.” The second sentence changes the calculation. You could paste an impressive formula into a cell and get a valid number from the wider data, or you can make the status rule explicit and test the eligible order rows. This page practises both choices and makes the steps inspectable.
Use the original fictional Module 3 ten-order sample, with its A:I columns and data rows 2–11. Keep ₹ Amount numeric, Qty as an item count, and Mins as the numeric field recorded on each order. The example platform names and figures are synthetic classroom data. Attempt each of the eight curated exercises before expanding its worked answer.
Write the unit, conditions and exact source rows first. For a ratio, name the eligible numerator and denominator before choosing the formulas.
Use a quick starting map
- A identifies one order per sample row. B is the real calendar Date, C is City, and D is Platform.
- E is Category, F is numeric Qty, G is numeric order-level Amount in rupees and H is recorded Mins.
- I is Status with exact labels Delivered, Cancelled and Returned. Pick it deliberately for any delivered-only result.
- Keep formulas and order inputs separate. If you use an extra sheet, include the actual Orders sheet qualification on fixed references or use
tblOrdersstructured references.
Eight original exercises · Develop and check a solution
1 · Total the Pune amounts across all statuses
Identify every row whose City is Pune. Add their recorded amounts while keeping all available statuses in scope. Use an independently written list of IDs to check the result.
Hint for exercise 1
Use a single City condition. SUMIF takes the criteria range before the criterion and then its sum range.
Worked answer for exercise 1
=SUMIF(C2:C11,"Pune",G2:G11)The four Pune amounts are ₹64, ₹110, ₹150 and ₹220, for ₹544. BLK-1009 is Cancelled and belongs to this all-status total.
2 · Total the Pune amounts with Delivered status
Add a Status requirement and compare the result with exercise 1. State which specific order is excluded so a reviewer can see that both criteria were applied to the same row.
Hint for exercise 2
SUMIFS begins with the sum range and then takes pairs of criteria range and criterion.
Worked answer for exercise 2
=SUMIFS(G2:G11,C2:C11,"Pune",I2:I11,"Delivered")BLK-1001, AMN-1003 and BLK-1006 contribute ₹64 + ₹110 + ₹150 = ₹324. The ₹220 cancelled order accounts for the difference from ₹544.
3 · Count all Delivered orders
Count eligible order rows for the full regional scope, then compare the count with the total Qty in those rows. State how the worksheet structure allows a row count to represent an order count here.
Hint for exercise 3
Use COUNTIF with a Status criterion, and check the IDs are unique.
Worked answer for exercise 3
=COUNTIF(I2:I11,"Delivered")There are seven delivered orders carrying 17 items. The worksheet stores one unique order per row, so the eligible row count answers this question.
4 · Classify orders as High, Medium or Low
Use High at ₹500 or more, Medium at ₹100 or more after excluding High, and Low under ₹100. Test each lower edge on a scratch grid. Only apply the formula to the typed amounts from the course contract.
Hint for exercise 4
Start with the largest threshold. IFS returns the result from the first matching condition. Give it a final true condition for values that reach neither band.
Worked answer for exercise 4
=IFS(G2>=500,"High",G2>=100,"Medium",TRUE,"Low")
=IF(G2>=500,"High",IF(G2>=100,"Medium","Low"))Use one of those formulas. In the fixture High has one order, Medium seven and Low two. The tests 99, 100, 499 and 500 map to Low, Medium, Medium and High.
5 · Extract the BLK or AMN prefix
Build a separate prefix column from the original text. Verify which two recognized three-character codes occur, check the first occurrence of each, and preserve the original ID for joins and trace.
Hint for exercise 5
Use LEFT to read the first three characters under the fixture's ID convention.
Worked answer for exercise 5
=LEFT(A2,3)The first ID gives BLK and AMN-1003 gives AMN. There are seven BLK and three AMN rows. The operation extracts text, which still needs comparison with the supported prefix list before being used for classification in a new export.
6 · Calculate days elapsed and show the weekday
Build the dynamic days-since-order value using today, then build a reproducible classroom check using 30 November 2026 as a separate as-of date in L1. Add a weekday name from the real dates. Locale settings may affect the language in which names appear.
Hint for exercise 6
Subtract the date serials. Use a fixed reference to L1 for the demonstrable calculation and DATE to create that control unambiguously.
Worked answer for exercise 6
=TODAY()-B2
=$L$1-B2
=TEXT(B2,"dddd")With L1 = DATE(2026,11,30), the first row elapsed value is 28 and its English weekday is Monday. The last row is 22 days and Sunday. TODAY varies with calculation date, so use the fixed result when comparing answers.
7 · Weight recorded duration by Qty
Calculate the quantity-weighted average of the sample Mins across all ten rows, then compare with simple average and a separately labeled delivered-only variation. Show what gets extra weight. Both population and weighting rule are part of the answer.
Hint for exercise 7
Multiply same-row Mins by Qty, add the products, then divide by the corresponding sum of quantities.
Worked answer for exercise 7
=SUMPRODUCT(H2:H11,F2:F11)/SUM(F2:F11)The all-row weighted result is 285/24 = 11.875 minutes. The simple average is 128/10 = 12.8 minutes. Delivered-only weighted is 207/17 ≈ 12.18; apply the same inclusion rule to its numerator and denominator.
8 · Show an explicit dash when no orders are eligible
Build a displayed ratio using a numeric numerator and order-count denominator. Use a dash for a zero eligible denominator. Ensure the workbook still reveals unexpected errors. Try an eligible population and a selection containing no eligible rows.
Hint for exercise 8
Test the denominator directly before dividing. A general error replacement can mask several unrelated issues.
Worked answer for exercise 8
=IF(M3=0,"–",M2/M3)Use M2 for Amount and M3 for a validated numeric count. At 2215 and seven, the value is approximately ₹316.43. A known zero eligible count gives the dash. An unrelated error in the source should be investigated, not treated as zero observations.
Align criteria by row, not only by range size
Excel evaluates the rows that correspond to the positions in the criteria ranges. Amount G2, City C2 and Status I2 refer to one order. Place all three ranges over the same first and last source rows. Be careful copying formulas in another direction or adding a criterion after the fact. Two ranges can have the same number of cells yet refer to different records. That produces a result that can look reasonable without raising a size error.
Prove the same-row decision with a two-row trace
For worksheet row 2, City C2 is Pune, Status I2 is Delivered and Amount G2 is 64. Both conditions pass. For row 10, City C10 is also Pune, but I10 is Cancelled. Its ₹220 participates in the all-status Pune total and stays outside the Delivered-only subtotal. Write those two cases before interpreting an output as broken. A confusion between SUMIF and SUMIFS is easier to spot if you know what each condition is supposed to do.
In a scratch diagnostic, shift only the status range to I3:I12 in the SUMIFS but leave City and Amount in rows 2–11. This example can give ₹434 because it tests the next record's status. ₹64, ₹110 and ₹220 would pass the misaligned test, while the correct list is ₹64, ₹110 and ₹150. A range check that tests just length cannot detect this. A one-row trace reveals that I11's Delivered status was paired with row 10's Cancelled ₹220.
Make criteria visible and compare formula choices
Putting a typed City in a named check cell makes it easy to test several answers. Suppose L2 is Pune and L3 is Delivered. Use those two cell references as criteria but keep the order source ranges stable while you copy the formula for another summary. The same calculation can use tblOrders[Amount], tblOrders[City] and tblOrders[Status] to refer to those named columns. Confirm you made the actual Orders data a Table and that new entries land inside it before expecting the formulas to grow.
Source conditions and worksheet visibility are separate. Criteria formulas here evaluate the referenced cells against the conditions regardless of a visual AutoFilter elsewhere. If your intention is to sum the visible selection after changing the filter, choose an appropriate visible-row calculation and test a hidden order deliberately. For business eligibility, put the intended conditions into a traceable formula or controlled filtered summary.
Check thresholds, identifiers and dates with small targeted cases
Specify boundaries before building a label
The High group overlaps the raw condition Amount at least 100. Checking High first gives priority to amounts at least 500. If you instead check Medium first, an amount of 650 qualifies before the higher check and incorrectly becomes Medium. Write a boundary table with 99, 100, 499 and 500, then confirm the formula results. This exercise is about the explicit intersections and order of conditions. Visual coloring can follow that classification later.
Cells with missing or invalid amounts need a separate check before using the production variation of this formula. Depending on a comparison alone can classify something as a real price band without an approved numerical value. Keep copied raw text and numeric check separate. A transaction that meets the original file's eligibility has a meaningful band. A not-yet-reviewed input calls for review.
Write the band definitions in terms everyone can read. “Low: under 100; Medium: at least 100 and under 500; High: at least 500.” That description is useful when the table is translated into a graphical legend or the original formula is copied by a teammate. Amount 99.99 remains Low under a raw numeric comparison. If the presentation rounds the amount to ₹100, readers can see a rounded number that appears to disagree with an accurately calculated band. Choose whether the business rule uses the original amount or a specifically rounded amount before interpreting that edge case.
Build a separate guard if your input can be incomplete. For example a worksheet variation can evaluate a price band only if ISNUMBER on the Amount succeeds, otherwise give a Review amount label. The stated ranges still add to ten because the original fixture already uses numeric amounts. A blank input belongs to a review state in an updated dataset. Its reason differs from an approved low amount of ₹64. This keeps the membership of an analysis table meaningful when raw records contain little more than a key.
Decide when an ID prefix is appropriate evidence
The ID convention for this miniature stores platform-like prefixes of known length. LEFT performs a text operation. It does not query a directory or know what BLK means. If the prefix rule is approved, compare the extracted values with the expected list and the Platform field in this sample. For a different export with variable-length prefixes or with codes that only look similar, use the source specification or a verified delimiter method.
Compare the full ID BLK-1001 and the extracted code BLK. The first can trace one purchase and the second groups orders by a code. Replacing the ID column with a prefix would erase identity and turn several orders into look-alikes. Always keep both explicitly labeled. You could assign a controlled uppercase convention to prefix comparisons if the source owner confirms the rule; preserve the original ID when a case difference needs investigation.
Make time-dependent results reproducible
TODAY can change the next day and when the workbook recalculates. An interviewer may ask why the result is different on a different date. Show the date used in the result or use a separate as-of control for a repeatable report. Use a true Excel DATE and compare year, month and day when the recorded text may vary by region. The weekday label produced by TEXT is display-ready text. Keep the underlying date for chronological sorting and future arithmetic.
For a future-dated order, simple subtraction can return a negative number. Decide whether that means an expected upcoming record or a data issue before forcing it to zero. In the original workbook all source dates precede the fixed 30 November check. This is why it can provide a stable positive result even if your system clock reads a different date. Date controls and source periods should appear in the test log.
Choose weighting and denominator as part of the measure
A simple average of order durations gives every order an equal vote. A quantity-weighted average treats one order of five items as five times the influence of one order of a single item. The data still stores one recorded duration per order. Weighting doesn't produce five separate item delivery observations. It answers an exercise question about how quantities change the average, under the assumption that the order's recorded minutes apply as the weight-bearing value.
Build a two-row weighted example from the real fixture
The first order has 9 minutes and 2 items. The second has 12 minutes and 3 items. Their simple mean is (9 + 12) / 2 = 10.5 minutes. Quantity weighting changes the numerator to (9 × 2) + (12 × 3) = 54 and denominator to 2 + 3 = 5, giving 10.8. The second order carries more weight, so the result moves closer to 12. This is a useful sense check: with positive weights a weighted mean should lie within the included minimum and maximum.
For the full sample use one row multiplier from each source field. You can also compute a helper column of minutes times Qty and sum it. A good independent check is to compare the first two products and the total 285. Confirm total Qty 24 before dividing. If you find 285 divided by 10, the units are weighted minutes per order row and do not equal the requested weighted mean. Give the denominator a label near the formula so the difference is visible.
Make a Delivered-only weighted variation
=SUMPRODUCT(--(I2:I11="Delivered"),H2:H11,F2:F11)/SUMIF(I2:I11,"Delivered",F2:F11)
The condition array evaluates Delivered on each row. The double minus converts the matching TRUE to one and a non-match to zero. Within the numerator, only those products remain. The denominator applies the same status condition to the quantity field. For this complete numeric baseline the weighted total is 207 and eligible Qty is 17, giving approximately 12.18. An all-status denominator would include seven more items from the non-delivered records. All Qty is 24 and eligible Delivered Qty is 17.
If timing in a different source is missing, define what information is usable before calculating. For the all-status numeric-duration scratch test where H2 is empty, the first order's 18 leaves the weighted sum. Its Qty 2 must leave the approved weight base. The measured numerator becomes 267 and eligible Qty 22, giving about 12.14. Using the full Qty 24 would give about 11.13 and treat the unmeasured contribution as zero without asking. Report measurement coverage separately whenever it changes the reader's interpretation.
For that scratch task (all statuses, all Qty still numeric), a denominator such as =SUMPRODUCT(--ISNUMBER(H2:H11),F2:F11) counts weights only where the duration is numeric. The original all-sample SUMPRODUCT can continue to add the products for typed numbers with the one deliberately blank input. Inspect the numeric duration rule if a new source also supplies negative errors or text representations. Use an explicit flag or validated helper pair if your conditions become complex, and make sure both parts use it.
Watch what one repeated order does to a weighted result
Use a paper-only diagnostic on the original 10-row fixture. If BLK-1006 is included twice, the extra 8-minute record has Qty 5. The numerator increases by 40 to 325 and the weight sum increases by 5 to 29. The resulting about 11.21 minutes could look like a slight operational improvement, while the sample gained a duplicate. The minimum and maximum observed minutes remain unchanged. Control totals and ID uniqueness checks can expose the change even when a range or distribution check still passes.
Do the same check for regional Delivered count and amount. This repeated purchase would add one to the count and ₹150 to recorded delivered value. Compare those effects with a genuine new eligible row. Both could change the worksheet summaries by the same delta. The business review decides whether there is an additional order by looking at the original key and evidence. A formula cannot determine whether two identical source rows have been legitimately supplied unless it has a defined policy and identifiers.
Plot a scenario in which the measured value is zero while the quantity is positive. A valid measured zero contributes zero to the numerator and its quantity to the denominator. A missing value contributes neither after applying the measurement rule. If zero is implausible in the business process, define an eligibility or quality check for it. The precise difference between known zero, unknown, and invalid allows you to explain which orders affect a ratio.
Distinguish no evidence from a zero outcome
If no orders qualify, the count is zero and an average is undefined. In this exercise the displayed dash means there is no denominator. A rate of 0% can mean there is a known population with zero events, such as no cancelled orders among eligible rows. A currency amount of zero could describe approved purchases that actually were free. Those states are different. Keep the raw numerator and count visible in the calculation area for the reviewer.
If a ratio starts giving errors in its count source, catch the cause rather than wrapping every error as a dash. A broken reference, mismatched dimension and missing key need different repairs. In the teaching formula the denominator is checked directly because zero eligible rows are the expected exception. Retain a separate quality message if the denominator is not a numeric count. Keeping the control cells distinct from the formatted summary prevents a text dash from being silently reused in other math.
Follow a discrepancy from the answer back to the order data
Read the intended scope
City is Pune and Status is Delivered. Write these conditions before looking at the existing output.
Compare the expected rows
The eligible amounts are ₹64, ₹110 and ₹150. Record the ID of the known ineligible ₹220 Cancelled order.
Locate the first misalignment
If a formula returns ₹434, inspect the Status row paired with each Amount row. A shift by one can include ₹220 and leave out ₹150.
Repair the reference and prove the result
Realign all three ranges to records 2–11 and verify ₹324. Then try Nashik and check its two Delivered amounts separately.
Lab 1 · Reproduce conditions, thresholds and alignment
Prerequisites. Use a local scratch copy of the ten orders with numeric amounts and true dates. Have a small test area on the same worksheet, or qualify all fixed references with the source sheet name when using a separate sheet. Record the original row ordering and keep the approved dataset intact.
- Write three conditions as prose before applying formulas: all Pune, Pune Delivered, and region Delivered count. Trace the intended records and their Amount values separately.
- Enter SUMIF, SUMIFS and COUNTIF for the three questions. Expect ₹544, ₹324 and seven, respectively. Confirm a row from another city with Delivered status cannot enter the second sum.
- Build the alignment error as a scratch formula with I3:I12 instead of I2:I11 while keeping both amount and city at rows 2–11. Compare ₹434 with ₹324. Identify which extra cancellation was included and which eligible ₹150 was excluded. Restore the same-row pairing.
- Fill a High/Medium/Low label under either supported formula. Check two low records, seven medium and one high. Test 99, 100, 499 and 500 on a separate list and record the exact classifications.
- Extract and compare seven BLK and three AMN prefixes. Check that the prefix appears in an extra column and the 10 complete IDs can still be used for lookups and traces.
- Change one criteria cell from Pune to Nashik on the scratch workbook. Both recorded Nashik rows are Delivered, so all-status amount and delivered amount are each ₹360. Compare the eligible order count and insist that the worksheet show which filter created the result.
Expected result. Both original Pune amounts and the regional order count are reproduced. The same-size offset error has a plausible but traceably wrong output. The threshold and prefix columns align with the original rows.
Troubleshoot. If SUMIFS returns an error, compare syntax, range dimensions and local formula separators. If the result looks wrong with no error, inspect matching record positions and actual status text. If all high amounts say Medium, check the order of the tests. Record which discrepancy came from logical conditions and which came from formula construction.
Finish. Save the corrected results and the explanation of one misaligned example. Restore the original criteria and leave any threshold edge values outside the Orders source.
Lab 2 · Compare averages and make timing reproducible
Prerequisites. Use the original Orders sheet with complete Qty and Mins. Create a separate fixed as-of cell in L1 and a small control block using M2 and M3. Keep an intact copy when making a missing-duration experiment. Use decimal display precision appropriate to the comparison.
- Set L1 to
=DATE(2026,11,30). Compute elapsed days for B2 and B11 using L1. Verify 28 and 22. Apply weekday display text and identify Monday for B2 and Sunday for B11 in an English display context. - Compare the fixed results with the dynamic TODAY calculation and record the dates each method used. If it happens to be 30 November at calculation time, deliberately change the fixed control to 1 December; each fixed result increases by one.
- Compute simple duration average as 128/10 = 12.8. Independently write the weighted products for the first two source rows, then compare the full SUMPRODUCT result 285/24 = 11.875.
- Restrict both numerator and denominator to Delivered. Verify weighted 207/17 and compare with the differently scoped all-status result. Use one Cancelled row to prove ineligible timing was excluded rather than included with zero minutes.
- On scratch remove the first row's duration only. It still has Qty 2 and is an original source order. For the measured weighted exercise exclude both duration contribution and its Qty. Expect 267/22. Compare with the wrong 267/24 and explain the effect.
- Test the ratio display with amount 2,215 and count 7, then with a known scope where eligible count is 0. The first gives about ₹316.43 and the second shows a dash. Keep the two input values visible so a reviewer knows which situation applied.
Expected result. You can reproduce a date result without relying on today's system date. The simple, weighted and eligible measured averages differ in explainable ways. A no-order ratio has its own display state rather than a fabricated calculated value.
Troubleshoot. If elapsed days look like a date, inspect the number format of the output. If the weighted result seems out of bounds, inspect whether quantities and durations align by row and ensure weight sum uses the intended eligibility. If a dash appears unexpectedly, check whether the count input is actually defined and numeric before trusting the message.
Finish. Restore the missing duration and publish the original-sample answers with explicit labels. Keep the measured-only diagnostic separately as proof you tested the denominator rule.
Check the difference between a data problem and a formula problem
Start with a result that is wrong in a known way. If the reported number is ₹544 for delivered Pune, the amount range may be correct while its eligibility is broad. If the result is ₹434, compare first and last positions in the status range. If the result is ₹260, investigate whether the ₹64 amount was omitted, entered as text or identified incorrectly. These examples are clues you can verify from the original rows. Assign a cause only after seeing the relevant evidence.
Keep a small independent formula contract
- List the column purpose and actual source range, such as amount values G2:G11 and status labels I2:I11. The first and last rows should match intended records whenever you compare positions together.
- Name the exact calculation. A count, sum and average cannot use the same interpretation merely because they depend on some of the same fields.
- Protect intended output type. A weekday label and an empty dash are values for readers. A date serial, integer count and amount are ready for further arithmetic.
- Make the scope change test predictable. When switching Pune to Nashik, check both cities with separate record lists instead of treating any changed figure as evidence of success.
For copies that will be reused, mark whether a fixed range is part of the lesson constraint or simply an initial selection. If data grows and a fixed-range formula is intentionally holding a baseline, label the baseline dates and counts. When a formula should use more rows, extend aligned criteria and sum references together or use a well-formed named Table. Resizing just the amount range may break the shape or pair misaligned values.
Read a combined condition in everyday language
If a later exercise asks for delivered amounts from Pune or Nagpur, the logic is city in either of two allowed groups, and status Delivered. Combining Pune and Nagpur as two separate City criteria inside one SUMIFS would require one City cell to equal both at once. You can add two disjoint conditional sums or use a suitable array approach and verify no order counted twice. In the mini fixture Nagpur's one order is Cancelled. The combined Delivered amount is therefore the same ₹324 as Pune alone. Equal outputs can still reflect two different correct sets of allowed criteria.
Use an all-status comparison alongside that new condition. Pune's ₹544 plus Nagpur's ₹240 gives ₹784. ₹784 and ₹324 are both correct under the named conditions. The gap ₹460 agrees with the two Cancelled amounts already in the chapter controls. This is a useful second proof because an AND/OR mix-up could remove all rows or include both cancellations while still returning a number.
Add a half-open date window to an existing condition
In a new worksheet, suppose the report request is only for all Delivered orders on 2 November. Use the same amount and status references, then add two date conditions. Use a date greater than or equal to the start, and strictly less than the following day. For a source where Date has a time portion, equality with midnight only includes rows at that exact moment. The two bounds include every valid time on the chosen day while excluding later days. For the course dates with no times the result is the same as the date equality test.
=SUMIFS(G2:G11,I2:I11,"Delivered",
B2:B11,">="&DATE(2026,11,2),
B2:B11,"<"&DATE(2026,11,3))
Expect ₹334 from the ₹64 Pune order and the ₹270 Nashik order. Add a City condition of Pune and the value narrows to ₹64. You can walk this case in plain language: two dates establish the allowed interval, status determines whether the order belongs, and city can further narrow the population. Moving the selected dates to 3 November changes the approved test to ₹110 because the second row of that day is the Cancelled Nagpur order. These small checks are better evidence for a monthly extension than simply sorting date labels.
Know what to change when the formula moves to another worksheet
The practice code uses short references because the task can be completed next to the existing order fields. If you place a new calculation on a Checks tab, use Orders!B2:B11 and corresponding references for the other columns, or use the Table name. A blank or unrelated City column on Checks can otherwise return zero. The result may look like a valid empty population. Trace the formula's worksheet locations before changing criteria text or dividing by a different count.
Preserve the parts that should remain stable as the result is copied. The selected row label may deliberately move to the next city. The original data column ranges must still include the exact ten records. If you later use report dates in labeled cells, hold these as required across other dimensions. Compare a single copied formula against the first formula to see what moved. When a change is intentional, add an independent check for the affected group to confirm the copied logic.
- For a time-dependent worksheet ensure the date driving the result can be found next to it. A static export needs that date as text visible to the reader.
- When checking a criterion read at least one ordinary pass and one known failure. Both examples help prove the named rule actually operates.
- When multiple columns describe eligibility, test the combined case where some conditions pass and one fails. The Pune Cancelled order is such an example.
When comparing your answer with a classmate, ask for the source rows and one included value rather than the exact formula string. One solution can use a Table and another can use fixed cell references. Both are legitimate for the same defined baseline. Test the difference on a copied workbook that includes an appended row. Record whether each result represents the old snapshot or the expanded dataset. This demonstrates implementation behavior while keeping the eligibility logic and expected amounts intact. Use the same comparison when checking a worksheet or an exported answer that no longer changes with filters.
Recall without searching. Explain why an equal-sized shifted status range can produce an incorrect number, why weighting changes the denominator, and why TODAY needs a separate fixed benchmark.
Check how the price bands overlap
Amounts at least 500 also satisfy at least 100. Test High first, then Medium, and finally Low for the remaining approved values.
Check why Qty changes the weighted mean
The 12-minute order has three items, so it has more influence than the 9-minute order with two items. Their weighted mean moves from 10.5 to 10.8.
Check the effect of a missing measurement on the weight sum
When the first duration goes missing, remove its 18 weighted minutes and its Qty 2 from the measured calculation, giving 267/22.
Check an error hidden by a generic dash
A source reference can be broken instead of lacking eligible orders. Test the actual denominator and verify source references before replacing a calculation error with a display symbol.
Quiz · Identify which condition or calculation changed
1. What cuts Pune from ₹544 to ₹324? A. Number format. B. Delivered status eligibility. C. A different region.
B. BLK-1009 is Cancelled and contributes ₹220 only to the all-status scope.
2. Why can I3:I12 be wrong with a matching range size? A. It starts one record later. B. It is a different number format. C. Four cities are hidden.
A. Each amount is paired with the next source record's status. Size alone cannot establish same-record alignment.
3. Which label applies to exactly 500? A. Low. B. Medium. C. High.
C. The first rule is inclusive at 500 and should be evaluated before the overlapping Medium threshold.
4. When is 285/24 the intended answer? A. Simple mean. B. All-row quantity-weighted Mins. C. Delivered-only AOV.
B. 285 is minutes times Qty summed over all ten records, and 24 is the same records' total Qty.
5. What does L1 = 30 November allow? A. A reproducible elapsed-day comparison. B. A fixed weekday for every order. C. A replacement for the original dates.
A. Every learner can subtract from that reference. The original order dates are preserved.
6. What condition gives the exercise's dash? A. A missing workbook. B. A verified zero eligible count. C. Every negative amount.
B. This condition means the ratio lacks a denominator. Other calculation problems require separate investigation.
Interview practice
- How do you choose between SUMIF and SUMIFS?
- One criterion can use SUMIF. Multiple conditions on the same row can use SUMIFS with each criterion and range pair. I verify eligible rows before comparing totals.
- What can be wrong with equal-sized criteria ranges?
- They can be shifted relative to the amount or each other. I check they start and end on matching records and independently trace a row.
- How do you test overlapping conditions?
- I state which rule takes priority, then check lower edges and just-below values. For the high band I test 499 and 500, not only a representative large value.
- Why report a fixed as-of date?
- It makes a result reproducible after the current date changes. A dynamic worksheet can include TODAY, but its published interpretation should identify the date used.
- What defines an eligible weighted mean?
- I multiply each eligible value by its weight and divide by the total of those same weights. If an observation is excluded, its weight should not remain in the denominator.
- How should a worksheet expose a missing denominator?
- I keep the count visible and give known zero eligible items a clear no-data display. I verify the difference from a broken source or required value that hasn't been supplied.
Revision cards
- Pair by row. Equal-size conditions must also cover the same source records as the amount.
- Check scope. All Pune and Delivered Pune produce different valid totals.
- Review edges. Test price thresholds exactly at and just below each boundary.
- Keep identity. An extracted three-letter platform prefix does not replace the unique order ID.
- Compare dates. Use a true fixed as-of date to verify a result built with TODAY.
- Weight eligibility. A measured contribution and its weight belong to the same population.
Official sources
Continue practising: explore the existing Excel Task Hub for additional exercises.