Free tutorials & notes in Hindi & English · Clean code examples 🧰 मुफ़्त PDF और फ़ोटो टूल्स →
Guide 12 · Documents & Office · Hindi + English

Excel में Duplicate Data हटाने के 3 Practical तरीके

Student lists, fee records, contact lists और attendance data से duplicate entries हटाकर data clean करें.

Before you delete anything

  • Make a copy of the sheet (right-click the tab → Move or Copy → Create a copy). Removing duplicates cannot always be undone after saving.
  • Decide what “duplicate” means: same mobile number? same name + class? exactly the same row? Two students can share a name; a mobile number or admission number is usually a better key.
  • Clean spaces and capital letters first: “Asha Sharma ” and “asha sharma” look different to Excel. Use =TRIM(PROPER(B2)) in a helper column.

Method 1: Highlight duplicates first (safe check)

  1. Select the column, e.g. the Mobile column C2:C500.
  2. Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values.
  3. Choose a colour → OK. Every repeated value is coloured.
  4. Use Data → Filter → filter by colour to review them before deleting.

To count how many times each value appears, add a helper column: =COUNTIF($C$2:$C$500, C2). Any number above 1 is a duplicate. =COUNTIF($C$2:C2, C2)>1 marks only the 2nd, 3rd… occurrence – the first stays unmarked.

Method 2: Remove Duplicates button

  1. Click inside your table (with headings).
  2. Data → Data Tools → Remove Duplicates.
  3. Tick My data has headers.
  4. Tick only the columns that define a duplicate – for example only Mobile, or Name + Class.
  5. OK. Excel reports e.g. “12 duplicate values found and removed; 488 unique values remain.”
Remove Duplicates keeps the first row it finds and deletes the later ones. If the later row has newer information (updated address), sort the data first so the row you want to keep is on top.

Method 3: UNIQUE formula (keeps the original data)

In Excel 2021/Microsoft 365 and Google Sheets, =UNIQUE(A2:D500) in an empty cell returns the list without duplicate rows. =UNIQUE(C2:C500) gives each mobile number once, and =COUNTA(UNIQUE(C2:C500)) counts how many different numbers there are.

MethodChanges original data?Best for
Highlight + COUNTIFNoChecking and deciding row by row
Remove DuplicatesYes (deletes rows)Final clean-up of a copy
UNIQUENo (new list)Reports, dropdown lists, counting

Real example: admission enquiry list

A school collects enquiries from a Google Form, WhatsApp and the front desk. Many parents enquire twice. Clean it like this:

  1. Combine all lists in one sheet with the same columns: Date, Parent name, Mobile, Class.
  2. Clean the mobile numbers: keep only 10 digits (=RIGHT(SUBSTITUTE(SUBSTITUTE(C2," ",""),"-",""),10)).
  3. Sort by Date, newest first.
  4. Remove Duplicates on Mobile only → the newest enquiry of each parent remains.
  5. Count enquiries per class with a Pivot Table.

Google Sheets and LibreOffice

  • Google Sheets: Data → Data cleanup → Remove duplicates; also Data cleanup → Trim whitespace. =UNIQUE() works.
  • LibreOffice Calc: Data → More Filters → Standard Filter → Options → tick No duplications and “Copy results to” another place. Newer versions also have Data → Duplicates.

कुछ भी delete करने से पहले

  • Sheet की copy बनाएँ (tab पर right-click → Move or Copy → Create a copy)। Save करने के बाद duplicates हटाना हमेशा undo नहीं होता।
  • तय करें “duplicate” का मतलब क्या है: एक ही mobile number? एक ही नाम + class? बिल्कुल एक जैसी row? दो students का नाम एक हो सकता है; mobile number या admission number आम तौर पर बेहतर key है।
  • पहले spaces और capital letters साफ़ करें: Excel के लिए “Asha Sharma ” और “asha sharma” अलग हैं। Helper column में =TRIM(PROPER(B2)) लगाएँ।

तरीका 1: पहले duplicates highlight करें (सुरक्षित जाँच)

  1. Column चुनें, जैसे Mobile column C2:C500।
  2. Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values।
  3. रंग चुनें → OK। हर दोहराई value रंगीन हो जाती है।
  4. Delete करने से पहले जाँचने के लिए Data → Filter → रंग से filter करें।

हर value कितनी बार आती है गिनने के लिए helper column जोड़ें: =COUNTIF($C$2:$C$500, C2)। 1 से बड़ा कोई भी number duplicate है। =COUNTIF($C$2:C2, C2)>1 सिर्फ़ दूसरी, तीसरी… बार वाली को mark करता है – पहली बिना mark रहती है।

तरीका 2: Remove Duplicates button

  1. अपनी table (headings के साथ) के अंदर click करें।
  2. Data → Data Tools → Remove Duplicates।
  3. My data has headers पर tick करें।
  4. सिर्फ़ वही columns tick करें जो duplicate तय करते हैं – जैसे सिर्फ़ Mobile, या Name + Class।
  5. OK। Excel बताता है जैसे “12 duplicate values found and removed; 488 unique values remain.”
Remove Duplicates पहली मिली row रखता है और बाद वाली delete करता है। अगर बाद वाली row में नई जानकारी है (नया address), तो पहले data sort करें ताकि जो row रखनी है वह ऊपर हो।

तरीका 3: UNIQUE formula (मूल data बचा रहता है)

Excel 2021/Microsoft 365 और Google Sheets में ख़ाली cell में =UNIQUE(A2:D500) duplicate rows के बिना list देता है। =UNIQUE(C2:C500) हर mobile number एक बार देता है, और =COUNTA(UNIQUE(C2:C500)) गिनता है कि कितने अलग numbers हैं।

तरीकामूल data बदलता है?किसके लिए
Highlight + COUNTIFनहींRow-by-row जाँचना और तय करना
Remove Duplicatesहाँ (rows delete)Copy की अंतिम सफ़ाई
UNIQUEनहीं (नई list)Reports, dropdown lists, गिनती

असली उदाहरण: admission enquiry list

एक school Google Form, WhatsApp और front desk से enquiries जमा करता है। कई parents दो बार पूछते हैं। ऐसे साफ़ करें:

  1. सभी lists को एक sheet में एक जैसे columns के साथ जोड़ें: Date, Parent name, Mobile, Class।
  2. Mobile numbers साफ़ करें: सिर्फ़ 10 digits रखें (=RIGHT(SUBSTITUTE(SUBSTITUTE(C2," ",""),"-",""),10))।
  3. Date से sort करें, नई पहले।
  4. सिर्फ़ Mobile पर Remove Duplicates → हर parent की नई enquiry बचती है।
  5. Pivot Table से हर class की enquiries गिनें।

Google Sheets और LibreOffice

  • Google Sheets: Data → Data cleanup → Remove duplicates; साथ में Data cleanup → Trim whitespace। =UNIQUE() चलता है।
  • LibreOffice Calc: Data → More Filters → Standard Filter → Options → No duplications tick करें और “Copy results to” दूसरी जगह। नए versions में Data → Duplicates भी है।

अक्सर पूछे जाने वाले सवाल

Excel में duplicates हटाकर एक copy कैसे रखें?

Data → Remove Duplicates इस्तेमाल करें और सिर्फ़ key columns tick करें। Excel पहली बार वाली row रखता है और बाक़ी delete करता है। नई row रखनी हो तो पहले sort करें।

एक जैसे दिखने वाले duplicates Excel क्यों नहीं पकड़ता?

छिपे अंतर: extra spaces, अलग capital letters, या text के रूप में रखे numbers। Helper column में TRIM, PROPER/LOWER और VALUE से साफ़ करके फिर जाँचें।

क्या Remove Duplicates undo हो सकता है?

हाँ, तुरंत Ctrl + Z से, save करके बंद करने से पहले। इसीलिए हमेशा sheet की copy पर काम करें।

यह lesson कैसा लगा?

आपकी राय से हम content और बेहतर बनाते हैं।

अपना review और सुझाव लिखें (वैकल्पिक)

Review approve होने के बाद आपका नाम और शहर इसके साथ public दिख सकते हैं। Email या phone न लिखें।

▶ CodingEasily on YouTube

Video से सीखें – आसान Hindi में

चुनी हुई video: RDBMS भाग 3 – Class XI Commerce IT

▶ Channel subscribe करें