16. Practice Exercises with Answer Hints
16.4 Module 5: Data Cleaning
- Remove extra spaces and non-printable characters from customer names.
Hint:
=TRIM(CLEAN(A2)); for non-breaking spaces addSUBSTITUTE(A2,CHAR(160)," "). - Standardise "pune", "PUNE ", " Pune" to "Pune".
Hint:
=PROPER(TRIM(A2)). - Replace "Aurangabad" with "Sambhaji Nagar" in 400 rows safely. Hint: mapping table + XLOOKUP, or Home › Find & Select › Replace with Match entire cell contents.
- Convert "Rs. 1,299" to the number 1299.
Hint:
=VALUE(SUBSTITUTE(SUBSTITUTE(A2,"Rs.",""),",","")). - Convert text dates like 03/14/2026 (US style) to real dates.
Hint:
=DATE(RIGHT(A2,4),LEFT(A2,2),MID(A2,4,2))or Text to Columns › Date: MDY. - Keep only the last 10 digits of phone numbers like "+91 90000 00021".
Hint:
=RIGHT(SUBSTITUTE(SUBSTITUTE(A2," ",""),"-",""),10). - Split "Pune-411038" into City and Pincode.
Hint: Text to Columns (delimiter
-) or=TEXTBEFORE(A2,"-")/=TEXTAFTER(A2,"-")(Microsoft 365 / Excel 2024). - Flag outliers in Amount using the IQR rule.
Hint: Q1/Q3 with
QUARTILE.INC; outlier if< Q1-1.5*IQRor> Q3+1.5*IQR.
Ravindra Bagale's Tip
Many students run Find & Replace directly on the original data, and if something goes wrong they can't go back. Always keep the Raw sheet untouched, work on a copy, and after cleaning reconcile the row count and the total amount. This habit will save you at work.
Ravindra Bagale's Tip – मराठी
बरेच students original data वर थेट Find & Replace चालवतात आणि चूक झाली तर परत जाता येत नाही. नेहमी Raw sheet untouched ठेवा, copy वर काम करा, आणि cleaning नंतर row count आणि total amount reconcile करा. ही सवय job मध्ये तुम्हाला वाचवेल.
Ravindra Bagale's Tip – हिंदी
बहुत से students original data पर सीधे Find & Replace चला देते हैं और गलती हुई तो वापस नहीं जा पाते. हमेशा Raw sheet को untouched रखो, copy पर काम करो, और cleaning के बाद row count और total amount reconcile करो. यह आदत job में तुम्हें बचाएगी.