19. Keyboard Shortcuts and Function Cheat Sheet
19.2 Function Cheat Sheet
1. Pick the function by the question
Your fictional quick-commerce supervisor wants three answers for the same worksheet. What is the total requested amount? How much did Pune deliver? Which row belongs to a given Order ID? The first asks Excel to add an amount column, the second asks for a sum with conditions, and the third asks Excel to find a matching record. A good cheat sheet groups functions by the question they answer and includes a check for each answer.
This lesson restores the exact ten-order practice data that supports the original examples. It is separate from the six-order chapter overview. The marketplace names identify fictional training records. The worksheet begins at A1. Order ID is A, Date is B, City is C, Platform is D, Category is E, Qty is F, Amount is G, Mins is H and Status is I. Use numeric amounts, quantities and times. Convert date text carefully to genuine dates if you enter the data by hand, as described in the date section below.
| Order ID | Date | City | Platform | Category | Qty | Amount | Mins | Status |
|---|---|---|---|---|---|---|---|---|
| BLK-1001 | 2026-11-02 | Pune | Blinkit | Dairy | 2 | 64 | 9 | Delivered |
| BLK-1002 | 2026-11-02 | Nashik | Blinkit | Fruits | 3 | 270 | 12 | Delivered |
| AMN-1003 | 2026-11-03 | Pune | Amazon Now | Snacks | 1 | 110 | 14 | Delivered |
| BLK-1004 | 2026-11-03 | Nagpur | Blinkit | Fruits | 2 | 240 | 11 | Cancelled |
| AMN-1005 | 2026-11-04 | Kolhapur | Amazon Now | Dairy | 4 | 232 | 16 | Delivered |
| BLK-1006 | 2026-11-04 | Pune | Blinkit | Bakery | 5 | 150 | 8 | Delivered |
| BLK-1007 | 2026-11-05 | Solapur | Blinkit | Home | 1 | 1299 | 18 | Delivered |
| AMN-1008 | 2026-11-06 | Sambhaji Nagar | Amazon Now | Staples | 3 | 195 | 10 | Returned |
| BLK-1009 | 2026-11-07 | Pune | Blinkit | Snacks | 2 | 220 | 13 | Cancelled |
| BLK-1010 | 2026-11-08 | Nashik | Blinkit | Fruits | 1 | 90 | 17 | Delivered |
Read the formula in parts before copying it
- Function. A named calculation, such as SUM, describes the operation. A formula can include several functions, references or arithmetic operators. The formula begins with an equals sign.
- Arguments. Values or references supplied to the operation. A SUMIFS formula receives a range to add, then pairs of ranges and criteria to check against the same rows.
- Result shape. Some functions return one value. FILTER can return several rows and columns in supported Excel. Keep room for the output.
- Scope and units. Name the included rows, dates and unit. A sum of all order values and a delivered-sales total can legitimately differ.
Examples use English function names and commas as argument separators. Your Excel locale can use different separators and localized names. Use your client’s accepted syntax. Position each formula in a separate output band or sheet outside the source data, and check which input addresses it expects.
2. Add, count, round and compare groups
Use small controls to check the operation
| Question or command | Formula pattern | Expected result and check |
|---|---|---|
| Sum, mean and extremes | =SUM(G2:G11), =AVERAGE(G2:G11), =MIN(G2:G11), =MAX(G2:G11) | ₹2,870, ₹287, ₹64 and ₹1,299 respectively across all ten requested amounts. |
| Round or choose a rounding direction | =ROUND(11.875,1), =ROUNDUP(11.875,1), =ROUNDDOWN(11.875,1) | 11.9, 11.9 and 11.8. ROUNDUP goes away from zero and ROUNDDOWN goes toward zero. |
| Weighted mean | =SUMPRODUCT(H2:H11,F2:F11)/SUM(F2:F11) | 285 divided by 24 is 11.875 from the original ten rows. The weight is Qty. |
| Visible sum | =SUBTOTAL(109,G2:G11) | ₹2,215 when Status is filtered to Delivered and none of those rows is manually hidden. |
| Aggregate while ignoring hidden rows and errors | =AGGREGATE(9,7,G2:G11) | 9 means SUM and option 7 means ignore hidden rows and error values. The untouched numeric data total is ₹2,870 with all rows visible. |
| Sum one condition | =SUMIF(I2:I11,"Delivered",G2:G11) | ₹2,215 across all qualifying delivered rows. |
| Sum multiple conditions | =SUMIFS(G2:G11,C2:C11,"Pune",I2:I11,"Delivered") | ₹324 across three amounts. |
| Count one or several conditions | =COUNTIF(I2:I11,"Delivered"), =COUNTIFS(C2:C11,"Pune",I2:I11,"Delivered") | Seven delivered orders overall and three in Pune. |
| Average by one or more conditions | =AVERAGEIF(C2:C11,"Pune",G2:G11), =AVERAGEIFS(G2:G11,C2:C11,"Pune",I2:I11,"Delivered") | Pune requested amount averages ₹136 across four. Delivered Pune amount averages ₹108 across three. |
| Smallest or biggest by City | =MINIFS(G2:G11,C2:C11,"Nashik"), =MAXIFS(G2:G11,C2:C11,"Nashik") | Nashik has ₹90 and ₹270 as minimum and maximum in the sample. |
Compare the argument orders. For SUMIF, the first range is the one to test and the sum range is third. For SUMIFS, the sum range comes first. AVERAGEIF and AVERAGEIFS make the same distinction for the range to average. When you transfer a rule into a multi-condition formula, build one criterion pair at a time and verify it on a few rows before proceeding. A range of the same length can still be shifted by one row, producing a mismatched answer without an obvious error at the point of entry.
The raw recorded minutes in the original fixture include example readings for all ten orders, even Cancelled and Returned. This makes the original SUMPRODUCT arithmetic reproducible. It does not automatically make those readings comparable completed-delivery times. When reporting delivered duration for this exercise, specify whether you want a mean per delivered order or a quantity-weighted mean across delivered orders. The accepted seven order minutes sum to 94, giving about 13.43 minutes per order. Weighting them by 17 units gives 207 divided by 17, or about 12.18 minutes. Never present the difference as a calculation error until you know the weighting and inclusion policy.
When formatting 11.875 to two decimal places, people generally see 11.88, and dependent formulas can still use the full value. ROUND returns a rounded value to formulas that use its result. If learners round during every intermediate step, totals can change. State whether the exercise rounds only presentation or applies a business rule to each amount. Match the tested precision when comparing two workbook results.
Know which subtotal responds to view changes
Both SUBTOTAL(9,...) and SUBTOTAL(109,...) exclude filtered-out rows. Code 9 includes manually hidden rows; 109 excludes them too. Filter the original Status to Delivered. Both formulas can display ₹2,215. Now manually hide the delivered Solapur order with its ₹1,299 amount in a practice sheet. Code 9 still gives ₹2,215 and 109 gives ₹916. A SUMIF-based business answer still includes all its matching Delivered records. Clear both manual hiding and filters before returning to the full-data check.
3. Use conditions, categories and error handling carefully
Define outcomes for the qualifying and other cases
Use IF for a two-way decision. In a separate report output for row 2, test whether the requested value is at least ₹500. =IF(G2>=500,"High","") gives an empty-looking string for the ₹64 first order. The formula cell still exists. Use a meaningful alternate label, such as “Below threshold,” if another reader needs to interpret the row.
- AND. Combine requirements that must all hold.
=AND(C2="Pune",I2="Delivered")is TRUE for BLK-1001. Use the result as a test or within a larger calculation. - OR. Combine alternatives.
=OR(I2="Cancelled",I2="Returned")is FALSE in the first row. It can identify exceptions in the other statuses. - NOT. Reverse a Boolean test.
=NOT(I2="Delivered")is FALSE for the first status. Treat possible blanks and unexpected labels according to the raw input policy. - IFS. Evaluate ordered tests.
=IFS(G2>=500,"High",G2>=200,"Medium",TRUE,"Low")returns Low in row 2. Test higher boundaries first when thresholds overlap. - SWITCH. Choose an output for an exact listed case.
=SWITCH(I2,"Delivered","Count sale","Cancelled","Exclude","Review")returns Count sale. The final value handles other statuses intentionally.
IFERROR can replace several types of errors. IFNA handles #N/A. An exact lookup returning #N/A may signal a missing key and justification for review. A malformed reference or a wrong numeric type can be a different defect. Avoid rewriting every failure as zero before identifying the cause. For a requested amount-per-unit metric, check that the denominator is an approved positive unit count. If a division has no valid denominator, write a meaningful unknown or exclude it under the business definition instead of showing an arbitrary conversion to zero.
4. Return a record by a verified key
Match the correct field and test a missing identifier
| Approach | Example | Useful check |
|---|---|---|
| VLOOKUP exact | =VLOOKUP("BLK-1002",A2:I11,7,FALSE) | ₹270. The key field must be the first column of the supplied lookup table. |
| HLOOKUP exact | =HLOOKUP("Pune",K2:M3,2,FALSE) | ₹324 if K2:M2 lists Pune, Nashik, Solapur and K3:M3 holds 324, 360, 1299. |
| INDEX with MATCH | =INDEX(G2:G11,MATCH("BLK-1002",A2:A11,0)) | The exact ID is position two. INDEX returns position two in the aligned Amount range. |
| XLOOKUP or XMATCH | =XLOOKUP("BLK-1002",A2:A11,G2:G11,"Review ID") or =XMATCH("BLK-1002",A2:A11,0) | The first returns ₹270 by default exact lookup. The second gives position two. |
| CHOOSE or OFFSET | =CHOOSE(2,"Pune","Nashik","Solapur") or =OFFSET(G2,1,0) | Nashik is the second listed value. OFFSET returns the reference one row below G2, which contains ₹270. |
| INDIRECT | =INDIRECT("Orders!G3") | In an example where the source sheet is named Orders, the text address resolves to the cell with ₹270. |
VLOOKUP approximate matching uses an appropriately sorted first column. Pass FALSE explicitly for exact identifiers. XLOOKUP uses exact match by default and has optional next-smaller, next-larger and wildcard matching. Its binary search modes require the documented sort direction. Understand both match mode and search mode before changing defaults. For an order key, start with a test that uses a known exact ID and a deliberately absent ID. If keys repeat, first-match behavior can hide a duplicate import. Validate the key’s uniqueness if you expect one order row per ID.
OFFSET and INDIRECT can be useful in special reference calculations, and Excel treats them as volatile. They can cause extra recalculation when there are many of them. INDIRECT also constructs its reference from text. If its text contains an invalid name or points to another workbook that is closed, it can return #REF!. Check the Excel for the web limitations for external references. Prefer a stable direct range, Table reference or appropriate lookup for ordinary approved workbook models where a text-based dynamic address adds little value.
5. Work with text and dates without losing their meaning
Handle identifiers as text and amounts as numbers
| Task | Example | Result or behavior |
|---|---|---|
| Take part or measure length | =LEFT(A2,3), =RIGHT(A2,4), =MID(A2,5,4), =LEN(A2) | BLK, 1001, 1001 and 8. The first three return text. Keep order numbers with meaningful leading zeroes as text. |
| Locate a marker | =FIND("-",A2) or =SEARCH("blk",A2) | The hyphen is at position four. SEARCH ignores case and finds “blk” at position one. FIND respects case. |
| Replace selected text | =SUBSTITUTE("Rs. 64","Rs. ","") | Text “64”. Substitution alone gives text and does not certify its numeric type or locale. |
| Tidy case and whitespace | =PROPER(TRIM(" pune ")), =UPPER("Pune"), =LOWER("Pune"), =CLEAN("A"&CHAR(9)&"B") | Pune, PUNE, pune and AB. Some Unicode spaces and other invisible symbols require separate rules. |
| Convert or format explicitly | =VALUE("64") or =TEXT(DATE(2026,3,14),"dd-mm-yyyy") | Numeric 64 versus date display text 14-03-2026. Keep the actual Date value in an analysis column. |
| Join text | =CONCAT(A2," ",C2) or =TEXTJOIN(", ",TRUE,C2:C4) | BLK-1001 Pune, or the list Pune, Nashik, Pune. Joining a list preserves repeats unless you deliberately remove them. |
| Split around a known marker | =TEXTBEFORE(A2,"-"), =TEXTAFTER(A2,"-"), =TEXTSPLIT(A2,"-") | BLK, 1001, or two adjacent texts BLK and 1001. The newer functions require supported Excel. |
The hyphen in the ID divides a platform code from a suffix. Dropping leading zeroes or converting everything to a number can make keys fail lookup later. When standardizing names, validate first against the accepted names in the dataset. TRIM handles ordinary spaces and CLEAN removes a documented character set. A pasted nonbreaking space can survive these steps. Keep a raw column and prove the standardization with a few challenging examples before replacing any input.
Check real dates at known boundaries
When typing the original data by hand, November 2 can be constructed as =DATE(2026,11,2). Verify it with MONTH returning 11 and DAY returning 2. In an imported source with an explicit year–month–day convention, use the corresponding parse rule and verify a date near year end. A result such as a date formula returning the wrong month after import calls for a correction at the source conversion step. Formatting the result as text would hide the underlying problem from the next calculation.
Use =DATE(2026,3,14) to create March 14, 2026 as a value that can participate in date arithmetic, and apply a chosen number format. The companion functions YEAR, MONTH and DAY return 2026, 3 and 14. With a fixed date written in K6, the next patterns use that one validated input. When your locale rejects a typed date string, constructing it from numeric components is an unambiguous option for a small fixture.
- TODAY and NOW. These formulas use the current date or date and time and can update during recalculation. Use a stored value when the business process needs the approval timestamp to stay fixed.
- EOMONTH and EDATE.
=EOMONTH(K6,0)gives March 31.=EDATE(K6,1)gives April 14. Use the former for a closing month boundary and the latter to move a dated schedule by months. - WEEKDAY and NETWORKDAYS.
=WEEKDAY(K6,2)returns 6 for Saturday, with Monday numbered one.=NETWORKDAYS(DATE(2026,11,2),DATE(2026,11,8))returns five workdays under Excel’s standard weekend rule without a holiday list. Supply an approved holiday range if your definition requires it. - DATEDIF.
=DATEDIF(DATE(2026,11,2),DATE(2026,11,8),"D")returns six elapsed days. Subtracting valid dates also gives elapsed calendar days. Microsoft documents limitations for some DATEDIF cases, including the MD unit. Choose and verify the exact boundary behavior for your required calculation.
Most confusing date answers are scope or type questions. March 14 is not an allowed date if someone mistook 14 for a month. It is a valid Excel date when the components are interpreted correctly. A report can format dates as month labels while retaining the year and day for calculations. Save separate date values and display labels when the report depends on chronological sorting or several years of data.
6. Leave enough room for array results
Recognize a spill from its anchor and dimensions
A formula like FILTER can return an array and spill its results into nearby cells in supported Excel. Put it in ordinary worksheet cells outside a source Table. Choose a top-left destination with sufficient blank space below and to the right. Each current result belongs to that one formula. Update the anchor to change its criteria and let Excel resize the result. The Table can still be the input through its structured references.
=FILTER(A2:I11,(C2:C11="Pune")*(I2:I11="Delivered"),"No matches")
This formula applies both tests and returns the orders BLK-1001, AMN-1003 and BLK-1006 in their original order. At L16 it needs nine columns, L through T, and three rows, 16 through 18. If M17 already contains data, that cell can block the result and cause #SPILL!. Move the unrelated contents to an appropriate place in the practice worksheet or choose a new output area. Test a criterion that matches no rows as well. The supplied third argument displays “No matches” in that case.
Choose the function for the desired array shape
| Need | Formula | Verified shape or first result |
|---|---|---|
| Distinct city list | =UNIQUE(C2:C11) | Six unique cities from ten rows. Apply sorting separately if needed. |
| Sort the rows by amount | =SORT(A2:I11,7,-1) or =SORTBY(A2:I11,G2:G11,-1) | Ten rows sorted in descending Amount order. BLK-1007 appears first with ₹1,299. |
| Generate sequential dates | =SEQUENCE(31,1,DATE(2026,10,1),1) | One column of 31 dates, October 1 to 31 after date formatting. |
| Name an intermediate result | =LET(amount,SUM(G2:G11),amount/ROWS(G2:G11)) | One result, ₹287. A local name makes the repeated part of a larger expression easier to read. |
| Keep highest five | =TAKE(SORTBY(A2:I11,G2:G11,-1),5) | Five rows. The input must be sorted first when “top” means largest amounts. |
| Remove or reorder | =DROP(A1:I11,1) or =CHOOSECOLS(A2:I11,1,3,7) | DROP excludes the first row. CHOOSECOLS gives ten rows with ID, City and Amount. |
| Combine shapes | =VSTACK(A2:A3,A4:A5) or =HSTACK(A2:A3,G2:G3) | Four IDs in one column, or two rows with ID and Amount side by side. |
| Teach a reusable calculation | =LAMBDA(amount,ROUND(amount*0.05,2))(270) | ₹13.50 for a hypothetical five-percent fee. Verify a local test before assigning a reusable workbook name. |
VSTACK combines ranges by row. HSTACK combines them by column. Use matching schemas, dimensions and row order when combining real data. For example, A2:A3 and G2:G3 represent the same order positions. If G3:G4 were substituted, the shape could remain two by two while connecting an ID with the wrong amount. Check a specific displayed order and its known value. Excel can pad some mismatched stack dimensions with errors, so inspect shape as well as values.
7. Read statistical, ranked and PivotTable results
Pick a summary with the right interpretation
- MEDIAN.
=MEDIAN(G2:G11)gives ₹207.50. In the ordered ten amounts, middle values are ₹195 and ₹220. The presence of the ₹1,299 order makes the mean ₹287, a different useful summary. - STDEV.S.
=STDEV.S(G2:G11)gives about ₹362.29, the sample standard deviation. Use the complete intended numeric range and explain what the observations represent. A standard deviation has the same unit as the original measurement. - QUARTILE.INC and PERCENTILE.INC.
=QUARTILE.INC(G2:G11,1)and=PERCENTILE.INC(G2:G11,0.25)both return ₹120. The third quartile is ₹238. Explain the chosen method when another product uses a different percentile convention. - RANK.EQ, LARGE and SMALL.
=RANK.EQ(270,G2:G11,0)gives rank two in descending order. LARGE with position one gives ₹1,299; SMALL with position one gives ₹64. Rank ties share the same rank. If you want the whole order row, return or look up its verified key. - GETPIVOTDATA. Click a verified PivotTable result when building a formula to generate the right field and item arguments. For a standard PivotTable containing delivered sales with City in Rows, a Pune retrieval should agree with ₹324. The anchor and fields must match the actual report.
For a simple spread discussion, the interquartile range is ₹238 minus ₹120, or ₹118. Under the illustrative 1.5-times-IQR upper fence, amounts above ₹415 call for inspection. The ₹1,299 order qualifies. An unusually large order can still be real. Keep its ID, source and business context and investigate before making a decision to exclude any record. The chosen statistic describes the data and does not by itself authorize edits.
Choose a function the recipient can calculate
The original cheat sheet grouped commonly available functions separately from newer ones. For the familiar desktop release families, core SUM, IF, SUMIFS and lookup combinations like INDEX and MATCH work in Excel 2016 and later. Functions such as MINIFS, MAXIFS, IFS, SWITCH and TEXTJOIN are available in Excel 2019 and later supported perpetual desktop releases and Microsoft 365. Check Microsoft’s specific availability table for CONCAT and individual builds. XLOOKUP and the commonly used first set of spill tools, including FILTER, UNIQUE, SORT, SORTBY and SEQUENCE, are supported in Excel 2021 and later desktop releases and current Microsoft 365. Microsoft lists XMATCH and LET with the 2021 family as well.
Common newer array tools such as TEXTBEFORE, TEXTAFTER, TEXTSPLIT, TAKE, DROP, CHOOSECOLS, VSTACK and HSTACK are available in Microsoft 365 and Excel 2024 desktop releases according to their function documentation. LAMBDA also belongs with supported Microsoft 365 and Excel 2024 clients. Platform and update availability can differ, so test the actual receiving workbook. A version marker indicates a function family’s introduction for that release group and tells you where to look. A function page’s precise availability notes are especially important when version lists are broader than the function’s enabling release.
8. Build a two-condition metric in four checks
Trace Pune Delivered from the raw total to matching OrderIDs
Record the all-orders amount
Enter SUM for the ten amounts. The result is ₹2,870. That scope includes Cancelled and Returned records.
Change only City
Add the Pune test using the City range lined up with Amount. Four orders contribute a requested ₹544.
Apply the Status test
Use SUMIFS with both Pune and Delivered. BLK-1001, AMN-1003 and BLK-1006 remain. They give ₹324.
Check count and scope
Use COUNTIFS to verify three orders, and divide the amount by that count only if the average eligible amount is requested.
9. Rebuild a summary and one spill calculation
Lab A — Tie the selected answer to the correct rows
- Copy the original A1:I11 sample into a sheet named Orders. Verify that Amount and Qty are numeric, that the six city names are recorded and that the date column uses valid dates. Use a separate output area so formulas do not become part of the source list.
- Calculate the all-order SUM and the delivered SUMIF. Expect ₹2,870 and ₹2,215. The difference is ₹655, consisting of two cancelled amounts and one returned amount. Verify statuses and money separately.
- Build SUMIFS for Pune and Delivered, then COUNTIFS for the same two tests. Expect ₹324 and three records. Confirm that the four Pune requests total ₹544. A difference of ₹220 corresponds to the cancelled BLK-1009.
- Compute the sample raw quantity-weighted mean with SUMPRODUCT and SUM. Inspect the component sums 285 weighted minute-units and 24 units. Keep 11.875 as the actual result and use two-decimal display if desired.
- Filter the worksheet to Delivered and view the two SUBTOTAL versions. Manually hide the Solapur ₹1,299 order in the practice copy and compare the expected totals of ₹2,215 and ₹916. Clear the filter and restore the row once verified.
Expected evidence. Every reported metric has a clear meaning. A SUMIFS for Pune and Delivered continues to return ₹324 as long as the raw records and reference scope remain the same, even when someone filters the worksheet’s visible table. A visible subtotal can change when the view changes.
Lab B — Test matches, missing results and blocked output
- Use the ten-order workbook and choose an output area outside any source Table. Write an exact lookup of BLK-1002 with XLOOKUP or INDEX and exact MATCH. Confirm that both find ₹270 where supported.
- Look up a deliberately missing ID such as BLK-0000. Use an explicit missing response or IFNA as appropriate, and keep an internal check that the key is absent. Change the test back to BLK-1002. Confirm the formula returns a number again.
- With a supported dynamic-array version, enter the Pune plus Delivered FILTER formula into L16. Leave L16:T18 available and confirm exactly three rows with BLK-1001, AMN-1003 and BLK-1006. Test the independent sum of the returned amount column against ₹324.
- In a scratch copy, clear the anchor formula and place the word “blocker” in M17. Restore the FILTER expression in L16. If the formula now shows #SPILL!, follow the indicated output region. Clear only the blocker you added and confirm the three records return.
- Test an impossible city in the filter and verify the explicit “No matches” message. When using an older client without FILTER, apply both ordinary table filters and verify the same three eligible IDs. A separate summary can use SUMIFS and COUNTIFS.
Expected evidence. A malformed or missing key has a different symptom than a blocked result area, and a no-match result represents its own valid scope. Save the formulas, output values and tested environment. Restore the clean worksheet and retain the original data.
10. Investigate what changed before choosing a fallback
Ask a small diagnostic question for each symptom
- #NAME? Check spelling, defined names, quotation marks and actual function availability. If a teammate uses an older version, test a documented alternative in that version.
- #N/A. Inspect the lookup value and target column. Confirm type and whitespace, then decide whether a missing identifier is expected. Report that state separately from any actual zero amount.
- #VALUE! Confirm that compatible numeric fields reach the calculation and that array dimension requirements are met. Two ranges can be the same length and still be offset by a row.
- #REF!. Inspect deleted ranges, broken references and closed-workbook limitations for the function. Open a verified copy of the expected source or restore the correct reference intentionally.
- #SPILL!. Check for blockers, table placement and intended output dimensions. The fix may be to choose a different anchor with usable space.
- A plausible wrong number. Check whether the question asked for all rows, a group, visible rows, units or an average. Compare one known contributor and one excluded record before changing the formula.
For example, if a new analyst puts ₹544 beside the label “Pune delivered,” start with the original rows. The number matches all four Pune requested amounts. After identifying the extra cancelled order under the source flag, add the missing Status test and verify ₹324. A ROUND or IFERROR wrapper would leave the wrong included rows. The correct visual format and scope label come after the calculation answers the intended question.
For an amount-per-unit comparison, check the denominator’s population as well as its size. Across all original orders, 24 units and ₹2,870 yield about ₹119.58 per requested unit. Among delivered orders, 17 units and ₹2,215 yield about ₹130.29 per delivered unit. The columns have the same expected numeric types under both measures, while the selection determines their business meaning. If you add a location or status condition to one side, verify you intended the resulting ratio.
Test a change in the threshold before filling a dashboard
In a separate cell K8, enter 200 as an editable rupee threshold. Read the condition “at least the amount in K8” using a comparison string joined to the cell reference. In the original example, there are three delivered orders worth at least ₹200, for ₹1,801 in total. The matching amounts are ₹270, ₹232 and ₹1,299. Lowering the threshold to ₹150 adds the ₹150 delivery and produces four qualifying orders worth ₹1,951. Change one input at a time and confirm the exact order at the boundary.
=COUNTIFS(G2:G11,">="&K8,I2:I11,"Delivered")
=SUMIFS(G2:G11,G2:G11,">="&K8,I2:I11,"Delivered")
=COUNTIF(A2:A11,"BLK-*")
Text in the criteria can contain operators and wildcards. COUNTIF’s BLK prefix pattern yields seven IDs in this fixture. That pattern is the particular exercise’s code convention. If a source changes its platform code, choose the approved Platform field for a business category instead of assuming the prefix still identifies it. An asterisk represents multiple characters in this pattern. Use the documented tilde escape where the literal wildcard itself is part of the data. A fixed threshold like ₹200 can carry a unit label beside its input to stop someone from mixing rupees and integer quantities.
Check exact matches and narrow error handling together
Use a dedicated lookup field for Order ID. On the original row for BLK-1002, a correct lookup returns ₹270. If you enter BLK-0000, the result should direct you to review the key. Using IFNA records this expected issue without converting a broken source reference into an apparently valid amount. Separately, G2 is ₹64 and F2 is two units, so the requested amount per unit is ₹32. If quantity is zero or nonnumeric in a deliberately broken trial, do the required source review even if the presentation expression labels the outcome.
=IFNA(INDEX(G2:G11,MATCH("BLK-1002",A2:A11,0)),"Review ID")
=IFERROR(G2/F2,"Review quantity")
Before releasing an IFERROR expression, inspect its numerator and denominator independently. The wrapper cannot prove that the row represented a delivered sale, that both values relate to the same order or that a score used the intended scale. In the sample data, a simple lookup can present a figure that came from a Cancelled row. Test the business conditions alongside the returned number.
Compare a named PivotTable retrieval with an independent formula
In a separate sheet, build a standard PivotTable and filter it to Delivered. If A3 is a cell inside that report and the measure caption is Sum of Amount, the formula below illustrates its expected field names. Let Excel generate the exact expression by typing an equals sign and selecting the verified Pune value when Generate GETPIVOTDATA is enabled. Caption differences and generated names can change the expression, so check the formula your workbook displays.
=GETPIVOTDATA("Sum of Amount",$A$3,"City","Pune")
It should agree with the direct Pune Delivered calculation of ₹324 in the verified report scope. If you clear the report’s Delivered filter, the PivotTable’s Pune total becomes ₹544. A criteria formula that explicitly says Delivered remains at ₹324. A worksheet card can then read a PivotTable context or the explicit business condition. Describe which state a recipient can change and how the displayed result responds.
11. Check and explain common function choices
Quick checks
1. What is the amount in G2:G11 for all requested orders?
₹2,870. The numeric range includes ten amounts. Apply a separate Status condition for a delivered-sales measure.
2. Why is ₹324 correct for Pune Delivered?
The intended criteria include both City Pune and Status Delivered. The three selected amounts are ₹64, ₹110 and ₹150.
3. Which code excludes manually hidden rows and also excludes filtered rows?
SUBTOTAL using 109 for SUM. Both 9 and 109 exclude filtered-out rows. Code 9 includes manually hidden rows.
4. How many cells are available to the Pune FILTER result at L16?
It spans L16:T18, a result with three rows and nine columns. Empty L16:T18 is needed for the initial result, and expansion may need more room if the data grows.
5. Why can the raw weighted time still equal 11.875 when it differs from delivered average time?
The original formula uses quantities as weights and all ten raw recorded times. The delivered arithmetic mean uses only seven observations with equal order weights. Their scope and calculation differ.
Interview practice
1. How do you compare SUMIF and SUMIFS syntax?
SUMIF starts with the range to test, then the criterion and optional sum range. SUMIFS starts with the sum range, followed by range and criterion pairs. Test row alignment before using a combined condition.
2. How do you migrate a lookup to older Excel?
Choose a supported exact INDEX and MATCH pattern or an exact VLOOKUP where appropriate. Verify a positive key, a missing key and the meaning of any duplicate matches on the client that will recalculate it.
3. When should you use IFNA rather than replace any error?
Use IFNA when the specified missing result is the condition you intend to handle. Other errors can identify malformed references or data problems. Preserve evidence that signals those problems.
4. Why can a text date look correct and still fail a time calculation?
TEXT produces formatted text. A calculation needs a real date value. Construct a known date, check components and apply a display format independently of the type.
5. How do you show that a high value does not invalidate the report?
Trace the high value to an accepted source record and check its definition. Compare suitable summaries such as median and mean and preserve context. The original ₹1,299 order raises the mean but can be valid.
Six revision cards
- Start with an answer shape. A scalar summary, lookup and spilled list solve different jobs.
- Keep pairs aligned. SUMIFS reads each criteria value beside its corresponding amount row.
- Read the denominator. Quantity-weighted minutes and mean minutes per order answer different questions.
- Know the sort rule. Exact ID matches use a checked key. Binary and approximate search options have documented conditions.
- Choose target support. Confirm function availability and behavior in the recipient’s Excel version.
- Prove scope with one ID. Show the included or excluded source record that explains an unexpected result.
Practise with the Excel Practice Task Hub, review the original weighted average lesson or continue to the glossary.
Microsoft documentation
- Function catalog and version markers
- Excel functions by category
- SUMIFS and its argument order
- SUMPRODUCT and argument dimensions
- SUBTOTAL filter and hide rules
- AGGREGATE options
- VLOOKUP exact and approximate match
- XLOOKUP match modes and availability
- INDIRECT references and restrictions
- DATEDIF and known limits
- FILTER and no-match output
- Spill areas, placement and diagnosis
- GETPIVOTDATA from a matching report