16. Practice Exercises with Answer Hints
16.4 Module 5: Data Cleaning
Make each cleanup decision reversible and explainable
A fictional marketplace export arrives with extra spaces, city labels that refer to the same reporting place, mixed date strings and one unusually large order. These all look like cleanup problems. They require different decisions. You can normalize spaces with an approved rule, apply a verified mapping to a city alias, convert known types and flag a high amount for review. The last step calls for evidence before changing a recorded value.
Use two small practice sheets. Keep Raw_Checks for the synthetic text cases described here and Orders for the original ten-order Module 3 amount fixture. Put cleaned values and reasons on a separate sheet or in helper columns. The personal names and telephone-shaped strings are classroom placeholders. Do not use them to contact anyone.
Keep the original value, the candidate and its decision. A formula can convert or flag a value. The reviewer still needs to know which source and rule made the output safe to group or measure.
Give each source row a way back to the input
Write a distinct SourceRow ID on the practice records. If you sort a working table or join a mapping, you can still find the original text next to its approved counterpart. A row number displayed on the left side of the worksheet can change under sorting. A source identity value remains part of the data. A trace is particularly useful when a report city has several raw spellings or a high amount could be a real edge case.
- Normalization: Apply approved changes such as removing outer whitespace. Preserve the string that arrived.
- Mapping: Look up a verified raw source key and return one approved output label.
- Parsing: Convert characters to a typed number or date using a stated arrangement and separator convention.
- Flagging: Name a possible data problem for later inspection. A flag does not supply a corrected value.
Eight original exercises · Test a cleanup rule before applying it broadly
1 · Remove extra spaces and common controls from a name
Create a synthetic messy string containing outer spaces, a nonbreaking space between two words and a tab or line-break case. Derive a readable display name in a separate cell. Preserve spaces that convey the boundary between words.
Hint for exercise 1
Replace known separator characters with ordinary spaces before trimming. CLEAN and TRIM handle different character types.
Worked answer for exercise 1
=" Ravina"&UNICHAR(160)&CHAR(9)&"Patil "
=TRIM(CLEAN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,UNICHAR(160)," "),CHAR(9)," "),CHAR(10)," ")))Place the first formula in A2 as a controlled raw string and the second beside it. Expect Ravina Patil. Replacing the tab and line-feed with a word separator prevents them from being stripped between adjacent words. This covers the specified characters, not every possible Unicode whitespace or control.
2 · Standardize three variants of Pune
Enter the literal strings pune, PUNE and Pune in a test group. Convert them to one canonical city label so grouping doesn't split otherwise comparable rows.
Hint for exercise 2
Check outer spaces, then change casing for the known city examples.
Worked answer for exercise 2
=PROPER(TRIM(A2))All three ordinary-space variants become Pune. Use an explicit approved map for an alias or for labels whose preferred spelling doesn't follow the normal casing rule.
3 · Apply a verified alias across 400 rows
Replace the city label Aurangabad with Sambhaji Nagar in a 400-row working output. Use the synthetic four-value pattern below and count which rows changed, remained Pune or need review. Preserve the underlying raw column.
Hint for exercise 3
Repeat the same four-value pattern 100 times, normalize its key, and map known whole labels with an exact lookup.
Worked answer for exercise 3
=INDEX($H$2:$H$5,MOD(ROW()-2,4)+1)
=XLOOKUP(UPPER(TRIM(A2)),$J$2:$J$4,$K$2:$K$4,"Review city",0)On the scratch sheet put Aurangabad, Pune, AURANGABAD , and Aurangabad East in H2:H5. In J2:K4 put exact map rows AURANGABAD → Sambhaji Nagar, PUNE → Pune and SAMBHAJI NAGAR → Sambhaji Nagar. Create the raw test values in A2:A401 with the first formula and candidates in B2:B401 with the second. Expect 200 Sambhaji Nagar, 100 Pune and 100 Review city. Keep the variant label visible for review, not a partial replacement. On unsupported XLOOKUP clients, use another exact lookup or manual mapping for the small sample.
4 · Convert Rs. 1,299 into numeric 1299
For this input style remove the known leading currency token and parse the known separators. Inspect the resulting type and test a value whose amount is unresolved. Treat stored currency text and formatted currency numbers separately.
Hint for exercise 4
Check the prefix deliberately. Supply a decimal point and comma group separator to a suitable NUMBERVALUE conversion. Guard an empty remainder.
Worked answer for exercise 4
Candidate: =IF(LEFT(TRIM(A2),3)="Rs.",TRIM(MID(TRIM(A2),4,99)),TRIM(A2))
Typed: =IF(B2="","Review amount",IFERROR(NUMBERVALUE(B2,".",","),"Review amount"))Put raw text in A2 and the Candidate formula in B2. The documented format gives genuine numeric 1299, while Rs. pending gives Review amount. The parser is for this controlled amount convention; validate different source patterns explicitly before reusing it.
5 · Convert text 03/14/2026 to a real date
Preserve the date as text first and record that the raw input is explicitly month-day-year. Build the correct date for the supplied string and inspect components. Include one impossible calendar input as a negative test.
Hint for exercise 5
The left part is the month, the middle part the day and the right part the year for the specified input shape. DATE can normalize impossible components, so verify afterward.
Worked answer for exercise 5
=DATE(--RIGHT(A2,4),--LEFT(A2,2),--MID(A2,4,2))Expect 14 March 2026 for the known ten-character MDY example. Confirm year 2026, month 3 and day 14. A diagnostic 02/30/2026 can roll into 2 March, so reject that result when its reconstructed day and month fail the source check. A supported Text to Columns MDY import is an alternative; review its destination and results in scratch.
6 · Return the last ten characters from known telephone-shaped text
Use this intentionally non-dialable synthetic example, +91 00000 00021, stored as text. Remove the specified spacing and hyphens, then take the ten-digit-looking suffix. Preserve leading zeros. The task is formatting according to a declared input pattern, not testing a real number or deleting a country code as a universal rule.
Hint for exercise 6
SUBSTITUTE can strip ordinary spaces and hyphens. RIGHT keeps the last ten characters. Store the result as text.
Worked answer for exercise 6
=RIGHT(SUBSTITUTE(SUBSTITUTE(A2," ",""),"-",""),10)The controlled input produces text 0000000021, length 10. Check for raw trailing letters, international variations or insufficient digits before interpreting results in another source. String length alone establishes neither reachability nor ownership.
7 · Split Pune-411038 into City and PIN code
Use the supplied label's single hyphen to separate City and PIN. Keep the code as text because it represents a place identifier. Check what an absent or extra delimiter would mean before reusing the worksheet on another file.
Hint for exercise 7
TEXTBEFORE and TEXTAFTER can split the single delimiter. On an older app, look for FIND with LEFT and MID, or split into safe destination columns.
Worked answer for exercise 7
=TEXTBEFORE(A2,"-")
=TEXTAFTER(A2,"-")
=LEFT(A2,FIND("-",A2)-1)
=MID(A2,FIND("-",A2)+1,LEN(A2))Use one pair. The exact example produces Pune and text 411038. India Post describes a six-digit PIN, so check that shape independently. A correctly sized extracted value does not prove that a complete delivery address or stated locality is valid.
8 · Flag unusually high or low Amount using IQR
Use the numeric Amount values in Orders G2:G11. Calculate Q1, Q3 and the interquartile range with the inclusive quartile method. Set the two fences and flag each eligible value beyond either one. Retain each amount and source ID.
Hint for exercise 8
Use QUARTILE.INC with 1 and 3. Subtract Q1 from Q3, then calculate Q1 minus 1.5 times IQR and Q3 plus 1.5 times IQR.
Worked answer for exercise 8
=QUARTILE.INC(G2:G11,1)
=QUARTILE.INC(G2:G11,3)Q1 is 120 and Q3 is 238, so IQR is 118. The fences are −57 and 415. Only BLK-1007 at ₹1,299 is above the upper fence. Flag it for review; the course fixture keeps this valid sample observation in its original totals.
Trace a text value through parsing and a review decision
Use a deliberate change order for text
Whitespace that separates two words should first become an agreed ordinary separator. If CLEAN removes the only tab between Ravina and Patil before you replace it, the result can become RavinaPatil. TRIM by itself addresses ordinary spaces without covering all Unicode and invisible characters. Use explicit replacements for the characters you actually observed, then check both display and whether the result joins a verified reference value. Different names can require different treatment when punctuation and casing carry meaning.
Similarly, use a list of whole city aliases and approved outputs rather than a broad find-and-replace over the workbook. A string such as Aurangabad East contains the first alias as a substring, but might represent another named area. Under our tiny source convention it is unapproved and held for review. Whole-cell matching can avoid the substring issue if done carefully on a copy; a mapping table also lets the reviewer see what source terms were authorized.
Keep the same parse convention throughout one incoming field
Currency characters and separators have meaning that depends on input conventions. The worksheet sample's 1,299 groups thousands using a comma. A different feed may use comma as a decimal character or carry currency codes in a separate field. Do not assume removing commas always produces the same original amount. A parser such as NUMBERVALUE can accept input features other than the limited practice format, including percent suffixes. Verify patterns before giving a candidate a known money meaning. A successfully parsed numerical value is one part of input evidence.
A real date follows a similar rule. When input 03/04/2026 comes without an arrangement, the workbook needs evidence about which chunk denotes a month. In the exercise 03/14/2026 is declared MDY, and 14 is not a month. Once the date is constructed, compare its components so DATE's behavior with impossible values cannot hide a problem. Use dates in their original scope when grouping them into monthly summaries.
Normalize codes without inferring who or what they represent
Preserve the output of the telephone-shaped exercise as text
The synthetic string starts with a country prefix pattern, then shows a ten-character exercise suffix with spaces. After you remove spaces and hyphens in this limited example, RIGHT can copy the suffix. The result begins with zeros, so converting it to a number would discard important literal characters. The worksheet's type check can demonstrate whether that has happened. For an intake of actual phone information, decide whether the whole international identifier and its evidence belong in the working file before calculating a local suffix.
On a scratch cell append a trailing letter to the example. RIGHT still returns ten characters if the string is long enough, but the characters no longer satisfy the stated digit shape. For a ten-character ASCII digit test in a toy workbook, you can compare the text with a ten-digit formatted numeric conversion and require a length of ten. A string can have perfect syntax and still fail to describe an existing, current or authorized contact.
=IF(AND(LEN(B2)=10,IFERROR(TEXT(--B2,"0000000000")=B2,FALSE)),B2,"Review shape")
Use the suffix candidate B2 as text. The temporary numeric comparison happens only inside the check, so the returned approved value remains the original text. Test the same digits with leading zeros and a deliberately modified final letter. If your app or locale applies a different digit display convention, confirm the exact agreed input pattern separately. Keep any real person-level information out of this exercise.
Separate parsing a city label from validating an address
The label Pune-411038 is specified as one city name followed by a delimiter and a code. The delimiter is a formatting convention. Splitting after the first hyphen is correct under this narrow rule. A real place name can contain a hyphen or an unexpected text suffix. First check how many delimiters the agreed format permits. If a new field includes additional hyphens to encode a locality or tag, use an updated rule rather than trusting a successful split into unexpected pieces.
Compare Pune-411038, Pune411038 and Pune-411038-extra on a test copy. The first can produce the expected city and code. The second lacks the agreed separator. The third does not conform to the one-delimiter input contract. Persist the original string and a review reason for failures. These checks establish the ability to split the agreed form, independently from whether an address exists or can receive a shipment. A verified lookup or business decision belongs to address validation.
Use the IQR to flag values and keep their evidence
Interquartile range describes the spread between the first and third quartiles, a middle section of the sorted amount values. The exercise uses the inclusive QUARTILE.INC convention, which can interpolate between observations. Rules based on a different quartile method or different population can produce different fences. Keep the method and selected records in the check notes so another learner can reproduce your result.
Calculate the fences from the original ten numeric amounts
Write the sorted list on a separate check sheet: 64, 90, 110, 150, 195, 220, 232, 240, 270, 1299. The inclusive first-quartile position falls one quarter of the way from 110 to 150, giving 120. The third falls three quarters of the way from 232 to 240, giving 238. Their difference is 118. The 1.5 multiplier gives 177, so the lower and upper fences are 120 − 177 = −57 and 238 + 177 = 415.
For an implementable worksheet, put Q1 in L2, Q3 in L3, IQR in L4, lower fence in L5 and upper in L6. Use the source Amount column consistently. Next to Amount add a flag formula referring to the fixed fence controls. Use an explicit type review before comparison. A text spelling of 1299 needs a numeric conversion review even when its digits look the same as the amount above the fence.
=IF(ISNUMBER(G2),
IF(OR(G2<$L$5,G2>$L$6),"Review unusual","Within fences"),
"Review amount type")
At an exact boundary, the condition shown treats equality as within the fences. State the strict less than and greater than rule when explaining the result. The lower cutoff is negative, and the practice amounts are known positive. The upper fence catches one sample order. A small distribution with many repeated values could give a zero IQR, and a small group can produce unstable limits from just a few values. Use a signal alongside the known business meaning and source evidence.
Compare the effect of a legitimate large order and a typo
The sample BLK-1007 order has one recorded Home item and ₹1,299. Its size relative to the rest merits a check, but the curated exercise intentionally retains it. If you removed it without evidence, the all-status amount would fall from ₹2,870 to ₹1,571 and Delivered amount from ₹2,215 to ₹916. The retained order count would also fall. A clean-looking distribution can therefore misrepresent the original dataset.
If a separate authoritative correction later proved the amount was ₹129 instead of ₹1,299, the right operation would be to update the approved copy with a traceable correction, not to guess from the remaining median. A trial corrected amount would lower both known amounts by ₹1,170, giving all-status ₹1,700 and delivered ₹1,045 while keeping the order count. These are hypothetical controls for the two possible decisions. They show why removing, correcting and retaining a record are distinct changes.
Walk from a source string to a checked candidate
Keep the observed input available
Start with raw text Rs. 1,299 and a stable SourceRow. It has a known leading currency token and a group-separator comma in the practice convention.
Make an inspectable candidate
In a helper column remove the recognized leading token. The input to numeric conversion is 1,299, with the separator still available under the declared rule.
Verify the typed result
The converted number is 1299. It can take part in calculations and be compared against appropriate threshold values after the record is approved.
Check a failure and keep its reason
Test Rs. pending in a separate row. It should request amount review instead of producing a zero known value. Record which raw cell needs evidence.
Lab 1 · Verify six text and typing rules against known examples
Prerequisites. Use a fresh local workbook or scratch copy with a sheet for typed and synthetic input variants. Keep original values on a separate capture. Define a SourceRow, choose the declared text or date arrangement, and make separate candidate columns. Do not paste telephone-shaped values as actual contact information.
- Create the controlled Ravina Patil input with a nonbreaking space and tab as shown. Run the normalizing rule and compare the characters. Expect one ordinary space between words and no padding. Test a case where a tab was the only word separator.
- Create the three known Pune variants and confirm their canonical outputs all read Pune. Use literal outer spaces for the padded examples. Keep the raw strings next to the new result so a reviewer can see which operations were applied.
- Generate the four-value 400-row city practice fixture in a separate range and freeze the intended test source if needed for reproducibility. Confirm 400 physical candidates, 200 mapped to Sambhaji Nagar, 100 remain Pune and 100 require city review. Check an Aurangabad East raw input has no authorized whole-cell match.
- Enter Rs. 1,299 and Rs. pending on separate scratch rows, with an original in another column or sheet. Check valid numeric amount and a visible unresolved reason. Test that a display-only currency format would leave the pending text in review.
- Use
03/14/2026as raw MDY text and explicitly construct its date candidate. Check it is 14 March. Use02/30/2026as a controlled invalid case and verify the components reveal the rollover instead of approving it. - Normalize the synthetic telephone-shaped placeholder and split the place-code label. Check output text length ten and six, respectively, with leading zeros preserved in the telephone suffix. Compare one invalid suffix and one multiple-delimiter case.
Expected result. Simple spacing variants and known types give the intended cleaned values. Invalid, ambiguous and unmapped values carry evidence instead of inheriting a guessed label. The unusually large order belongs to the second lab and should not be edited to make text tests pass.
Troubleshoot. If a name loses its word boundary, inspect which characters were removed before the space substitution. If the map yields too many converted rows, check whole matching rather than partial replacement. If required date components differ, inspect the declared layout and calendar round trip. Verify example records individually before correcting a whole range.
Finish. Save a source and candidate comparison with reasons where relevant. Return any deliberately invalid scratch value to a marked test sheet. Keep the original ten-order data ready for amount review.
Lab 2 · Flag the high amount and compare decisions without changing raw data
Prerequisites. Use the unchanged ten-order November fixture with a real numeric G column. Keep the original ID and Amount visible. Make a separate row-level outlier flag and a scratch comparison table for diagnostic results.
- Count ten numeric values and write the all-row amount ₹2,870. Verify the recorded delivered subtotal ₹2,215 separately. Check the selection spans all intended source rows.
- Compute Q1, Q3, IQR and both fences. Verify 120, 238, 118, −57 and 415. Use the same source population for both quartiles. Compare a representative interpolation point to the sorted values manually.
- Fill the flag formula across the ten amounts. Expect one Review unusual row, BLK-1007 at ₹1,299, with the other nine within the fences. The baseline still has ten records and the original total.
- Open a scratch scenario table with three possible dispositions: retain, correct after source validation, and exclude only with a documented reason. Calculate the separate expected outputs for the hypothetical ₹129 correction and a hypothetical removal. The correction preserves count, while exclusion does not.
- Check what a missing type would look like by changing 1299 to intentionally stored text on scratch. A quality check should notice that the numeric count fell. Verify input types before using new quartiles for a numeric outlier review. Revert the type change after this independent test.
- Record the actual outcome for the course data: retain the source amount and note the flag. Write a short explanation of what evidence would justify a real correction. Show the original and typed source separately from the review marker.
Expected result. The outlier algorithm gives one flag while the classes of financial outcomes remain distinct. A chart that excludes the high order would need its own label and recorded reason. The original fixture used by later lessons remains unchanged.
Troubleshoot. If you see a different fence, check whether the quartile function and scope are the intended ones. If a cell that appears numeric is skipped, inspect its type. If several flags appear after copying, inspect whether the fixed fence addresses stayed stable.
Finish. Preserve the computed controls, flagged ID and decision. Clear diagnostic data only in scratch so the next exercise starts from known source values.
Check whether cleanup changed the reported question
Review city normalization separately from financial typing. If you replace Pune variants with an approved label, the same amounts stay in the dataset while they group under one label. A correct city fix can change a city subtotal and leave the region sum unchanged. If you convert stored money characters into an approved number, the numeric sum may grow because the old worksheet ignored text. Compare the numerical amounts that were interpretable before and after. A changed calculation is expected when formerly unusable values become known, as long as every adjustment has evidence.
Use several counts for a deliberately messy case
Suppose a scratch report contains amount text Rs. 1,299, numeric 110 and pending amount text for three physical records. Only 110 starts as a known numeric cell in the workbook. The recognized currency text can be safely typed under the documented rule, bringing the typed-known subtotal to 1,409. The original pending amount remains unknown, with one open action. A report that simply says “₹1,409 from three rows” can imply it knows the pending value. Write two known of three beside the amount, and make any exclusion from the published scope explicit.
Now compare a city labeling problem with an amount type problem. The 400-row alias exercise has no financial calculation at all. Its acceptance test is exactly 200 mapped to Sambhaji Nagar, 100 valid Pune and 100 unapproved. Someone could copy a formula down only 399 of the raw rows and see similar proportions. A physical count check confirms all rows were considered. Progress validation combines counts, source identities and examples, rather than comparing a probability-like share to an estimate.
Choose the comparison population for an outlier statistic
The official exercise uses all ten numerical Amount values from G2:G11. A later question might ask for unusually large Delivered values only. That is a different population and can give different statistics. The seven Delivered amounts in sorted order are 64, 90, 110, 150, 232, 270 and 1,299. The inclusive first quartile is halfway from 90 to 110, so 100. The third lies halfway from 232 to 270, so 251. The resulting IQR is 151, with an upper fence 477.5, and BLK-1007 still triggers review. Even when the same order is flagged, record which eligible set produced the comparison.
Do not silently treat all unusually high values from different cities or categories as errors. The exercise has a single global comparison. In a bigger file, products with very different unit ranges may need a category-specific review or a known business constraint. A high-priced Home order could be unremarkable compared with a catalog of similar items. A student can check the algorithm's result from the selected data and admit that a ten-order sample provides limited business interpretation.
Test how the review threshold reacts to new records
Add one approved synthetic order at ₹500 in a scratch copy, preserving the original ten orders. The sorted sequence now has eleven values. Under inclusive quartiles, the first point is halfway from 110 to 150, giving 130. The third is halfway from 240 to 270, giving 255. IQR becomes 125; the upper fence moves to 442.5. Both ₹500 and ₹1,299 now exceed the updated fence. This new order should remain a full approved observation if its source is correct, with the unusual-amount flag retained for review.
Compare that result with keeping the original fence as a fixed historical reference. You can use a fixed baseline to measure how recent data differs, or recompute on every date range to find unusual observations within that range. Those settings answer different questions and should be documented. A whole-source quartile can use future values to characterize prior values, which may be inappropriate for a report meant to describe what was knowable at the earlier time.
Create a tiny QA note for the comparison: original n = 10, original upper 415 and one flag; scratch n = 11, recomputed upper 442.5 and two flags. If both tests produce the same unchanged fence, check whether the formula still points only to G2:G11. A fixed initial range stays correct for the first question and needs deliberate adjustment to answer the second. Keep the original quartile evidence because later lessons expect the baseline dataset.
Test idempotence with one repeatable cleanup pass
A useful text normalization has a sensible repeat behavior. After converting the specified whitespace and trimming, applying the same text normalization again should leave the controlled clean names unchanged. For a city map, a known approved label can map to itself. An unresolved source should still keep its review reason instead of being converted into a literal business label called Review city. Test the processing rule only on its declared input types. Sending a typed date back through a parser written for ten characters is a different exercise and should not be treated as a harmless second pass.
- Compare the key count before and after each transformation. A mapping should add a candidate or review value without unexpectedly adding or removing raw rows.
- Make sure an unset input differs from an approved zero. A verified zero amount and a missing amount can affect denominators and count interpretation differently.
- Check version differences before relying on a named text function. A fallback can use available substring functions while preserving the same delimiter and review policy.
- Store each example as raw text or numeric data exactly where intended. Typing an example into the wrong column can turn a text-parsing test into a mere formatting test.
Write a cleanup ledger another learner can reproduce
Summarize changes by issue type. Ordinary whitespace edits change appearance and grouping, while a typed date affects which period a value enters. Known valid currency text becomes a comparable amount under a documented numeric convention. An outlier flag marks a review case. One “cleaned data” note conceals these different effects, so name the rule and record how many rows used it.
Use exact targets and exceptions in the same ledger
- Record SourceRow, original value, candidate, outcome and reason. Show one example of each decision so a reviewer can reconstruct it.
- Count physical intake, confirmed conversions and outstanding reviews separately. A transformation that cannot approve a record still owes the reviewer its evidence.
- Check original and clean types. A code can remain text while financial amounts and dates need verified numeric and date types. Retain the declared input conventions.
- Where known amounts are in scope, state which records remain included. Compare the expected amount with an independent group or manual trace and record any unknowns.
- For an automatically mapped value, point to the exact source key and approved return label. For an invalid formatted code, name the shape check that failed.
Compare the 400-row lookup and the outlier flag. The first replaces noisy labels after a verified mapping and counts each outcome. The second uses the supplied numeric amounts under a relative rule. Both can have a visible Review label while needing different source actions. Give the next analyst enough evidence to decide whether to add a verified map entry, inspect a surprising purchase or wait for a missing value.
Prepare a review where two defects can display the same regional total. A source amount assigned to the wrong city can retain the full ₹2,870 while changing city amounts. A large order might then appear as the leading contribution in the wrong region. Verify some traceable source keys within cities and dates in addition to a global calculation. This catches errors hidden behind a numerically reconciled total.
Measure the output of one deliberately ambiguous rule
Imagine a new file that supplies “1,299” with no currency code or recorded separator convention. A reader from a grouping-comma system may infer 1299. A reader from a decimal-comma system may read 1.299. Applying a helper to that string can generate a number in either case. The control should identify which rule the source uses before the value enters a published amount. Keep a pending candidate and ask about the file convention. For today's exercise the convention is explicitly known, so the parsed amount is 1299. Retain that assumption beside the example.
Use the same distinction for a column containing mixed text dates and true dates. A true date might already be a useful numeric calendar value. A ten-character text parser should operate only on values known to use its input shape. If a new file varies by row, use a source type or layout indicator, check each candidate and preserve the rows you cannot interpret. Avoid running a formatting action over raw data before photographing or recording its original meaning. An audit trail should preserve the useful evidence without including any actual private contact data.
A classmate can test your rule with one known valid dated input from the lab and one input whose type or format is ambiguous. Compare both the returned candidate and the reason field. A formula that gives a believable result for every input may be hiding assumptions, while a reasonable review outcome preserves the meaning of “unknown pending evidence.”
When you share the exercise, show one unresolved row as well as the cleaned examples. A learner should be able to explain what extra information the unresolved case needs. If a city alias needs approval, show the dictionary key; if a date needs its source arrangement, show the raw representation. That handoff gives the reviewer a specific next action.
Recall without looking. Give one example of a fix, a verified mapping, a type conversion and a review-only outlier flag. Describe the source evidence you would keep in each case.
Check why normalizing a separator can preserve a word boundary
A tab or newline can stand between words. Replace a known separator with an ordinary space before cleaning to preserve the written name.
Check why an exact city alias does not match the longer label
Aurangabad East is a different full string and has no approved rule here. Retain it for review with the original spelling.
Check the total if the large order disappears from the sample
Removing ₹1,299 from ₹2,870 leaves ₹1,571. That would hide a valid observation without corrective evidence.
Check how the two date inputs differ
03/14/2026 is a valid declared MDY input. 02/30/2026 can roll into March, so its reconstructed date components do not agree.
Quiz · Choose the evidence each cleanup decision needs
1. Which operation preserves a separator? A. Replace the known tab with a space before cleaning. B. Type the cell as numeric. C. Delete both words.
A. Preserving an ordinary separator avoids joining two distinct words together.
2. How should Aurangabad East be handled? A. Replace the first word. B. Flag the whole unknown label. C. Assign an arbitrary approved city.
B. Apply only approved exact alias rules. This longer label has none in the fixture.
3. Which verifies an approved numeric amount? A. A visible rupee sign. B. ISNUMBER and a known arithmetic result. C. Blue text.
B. A formatted cell might still contain text. Test its stored value and behavior.
4. Why compare date components after DATE? A. It can normalize invalid combinations. B. It checks spelling. C. It only displays time.
A. A credible date can result from rolling an impossible combination forward.
5. What should the exercise suffix 0000000021 retain? A. Literal text and leading zeros. B. Numeric 21. C. A real contact check.
A. The string is a synthetic format exercise, and the zeros are part of the demonstration.
6. Which amount exceeds the all-status upper fence 415? A. 270. B. 240. C. 1,299.
C. The large order triggers review. Its source needs checking before any decision to correct or exclude it.
Interview practice
- Why preserve raw values during cleaning?
- The original data helps me explain and reproduce any change. A durable ID ties the derived values back to their source.
- How do you change a city label safely across many rows?
- I use a verified exact map and confirm both approved and unknown labels. I count each review outcome and trace sample keys before trusting the group.
- Why can a date parser return a believable wrong value?
- It may use a different layout or roll an impossible date forward. I review source layout and compare calendar components after parsing.
- What makes a part of a phone or postal code different from a numeric amount?
- It is text identity that can include padding. I confirm the agreed syntax without claiming address or contact validity.
- How do you interpret a value beyond the IQR fence?
- It flags a record under the stated distribution, method and population. I inspect its source and keep or correct it based on reviewed evidence.
- Which checks prove the cleaning kept an accountable record of inputs?
- I reconcile every physical input row to its outcome, and known amounts to numeric results where relevant. I keep unresolved evidence with its reason and source ID.
Revision cards
- Keep raw. Preserve the source and record each approved or review decision next to a stable key.
- Type intentionally. Parse dates and amounts under a documented convention and test their actual types.
- Map whole keys. Count canonical outputs and flag unapproved labels.
- Preserve identifier text. Keep meaningful leading zeroes and check shape without inferring validity.
- Flag and inspect. An unusual statistical value calls for a source decision. Reconcile if an amount changes.
- Reproduce. Record counts, sample values, rules and what remains unresolved.
Official sources
Continue practising: explore the existing Excel Task Hub for additional exercises.