Excel Practice Test

โ–ถ

How to Check for Duplicates in Excel

The fastest way to check for duplicates in Excel is to select your range and use Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values, which colours every repeated value instantly. To count how often each value repeats, put =COUNTIF(range,cell) in a helper column; to delete duplicates, use Data โ†’ Remove Duplicates. Practice with the free Excel practice test on PracticeTestGeeks (16 questions with answer explanations).

You've got a customer list with 5,000 entries, and somewhere in that list the same customer appears two or three times under slightly different spellings. Or you've combined data from multiple sources and the merged file is clearly longer than it should be. Or your sum total is higher than expected and you suspect certain rows are counted twice.

These are the exact situations where knowing how to check for duplicates in Excel becomes a practical necessity rather than a nice-to-know. The good news is that Excel makes it straightforward โ€” you can find duplicates in seconds using built-in tools, without any add-ins or advanced skills.

Duplicate data in a spreadsheet creates problems โ€” inflated totals, misleading reports, duplicate mailings, double-counted inventory, and incorrect analysis results. Catching duplicates before they cause damage is one of the most common data quality tasks in Excel, and fortunately Excel provides several built-in tools for finding them. Whether you have 50 rows or 500,000, there's a method that works efficiently for your situation.

The quickest way to spot duplicates is conditional formatting โ€” two clicks and every duplicate value in your selected range lights up in colour. For more control, COUNTIF formulas let you flag duplicates in a helper column, which is useful when you need to see exactly how many times each value appears.

Excel's built-in Remove Duplicates feature eliminates duplicates in one step when you don't need to review them first. And for more complex scenarios โ€” checking duplicates across multiple columns, finding duplicates between two lists, or identifying near-duplicates โ€” formulas like COUNTIFS, MATCH, and pivot tables give you the flexibility to handle virtually any duplicate detection task.

The approach you choose depends on what you're trying to accomplish. If you just want to see which values are duplicated, conditional formatting is fastest. If you want a permanent formula-based flag column, COUNTIF is better. If you want to delete duplicates outright, Remove Duplicates is the tool. If you need to compare two separate lists, MATCH or VLOOKUP is the right choice. This guide covers all of these methods with step-by-step instructions, so you can pick the one that fits your data and your goal.

One important clarification before diving in: 'duplicates' can mean different things depending on context. A duplicate value might mean an exact text match, a matching number, a matching combination across multiple columns (for example, same name AND same email address), or even a near-match where values are similar but not identical. The methods below handle exact matches; near-duplicate detection (fuzzy matching) requires additional tools or add-ins beyond standard Excel functionality.

Microsoft Excel: upcoming dates and official changes
  • Jun 30, 2026: Certiport retired the Microsoft Office Specialist 2016 certifications, including MOS Excel 2016, on June 30, 2026. The Microsoft 365 Apps and Office 2019 Excel exams are still available. (certiport.pearsonvue.com)
  • Updated Oct 16, 2026: Delivery is now Proctored live-in-the-application exam via Certiport Authorized Testing Centers (in-center or remote-proctored) (previously Proctored live-in-the-application exam via Certiport Authorized Testing Centers).
  • Updated Oct 16, 2026: Eligibility is now No formal prerequisites; about 150 hours of instruction and hands-on experience recommended (previously No formal prerequisites; ~150 hours of instruction and hands-on experience recommended (Associate)).
  • Updated Oct 16, 2026: Time limit is now 50 minutes (60 minutes seat time) (previously 50 minutes (60 minutes seat time)).

Facts verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business. Dates that have passed are removed automatically.

Facts verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business. Dates that have passed are removed automatically.

Microsoft Excel Exam at a Glance

ItemDetailOfficial source
Number of questions (Excel Associate (MO-210))33-37 questionscertiport.pearsonvue.com
Number of questions (Excel Expert (MO-211))23-27 questionscertiport.pearsonvue.com
Time limit50 minutes (60 minutes seat time)Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business
Passing score700 on a 1โ€“1000 scalecertiport.pearsonvue.com
Retake policyWait 24h after 1st fail, 48h before each later retake; no annual limitMicrosoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business
ValidityValid 5 years (earned on/after Sept 23, 2025)certiport.pearsonvue.com
DeliveryProctored live-in-the-application exam via Certiport Authorized Testing Centers (in-center or remote-proctored)Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business
EligibilityNo formal prerequisites; about 150 hours of instruction and hands-on experience recommendedMicrosoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business
Score releaseScore report at end of exam; also in Certiport profilecertiport.pearsonvue.com

Facts verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business. Dates that have passed are removed automatically.

Free Excel Study Tools

Interactive Excel resources on PracticeTestGeeks, free to start:

  • Conditional Formatting (fastest): Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values โ€” highlights all duplicates in colour instantly
  • COUNTIF formula: =COUNTIF(range,cell)>1 returns TRUE for duplicates โ€” use in a helper column to flag each row
  • Remove Duplicates tool: Data โ†’ Remove Duplicates โ€” deletes duplicate rows permanently and keeps only the first occurrence (copy your data first; Ctrl+Z undoes it until you save)
  • COUNTIF for count: =COUNTIF(range,cell) shows exactly how many times each value appears โ€” useful for seeing triples, quadruples, etc.
  • Pivot Table: Create a pivot table with the column as Rows and Count as Values โ€” instantly shows value frequency
  • MATCH / VLOOKUP: Compare two lists to find values that appear in both โ€” =MATCH(A1,Sheet2!A:A,0) returns a row number if found, #N/A if not

Duplicate Detection Methods Compared

Each Excel duplicate-checking method differs in whether it changes your data, whether it counts occurrences, and which Excel versions support it. Use this table to pick one.

MethodWhat it doesChanges your data?Shows how many times a value repeats?Availability
Conditional Formatting (Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values)Highlights every repeated value in the selected range, both copiesNo (formatting only)NoAll current desktop versions
COUNTIF / COUNTIFS helper columnCounts matches per row; >1 flags a duplicate; COUNTIFS checks several columns at onceNo (adds a helper column)YesAll versions; COUNTIF is not case sensitive and mis-matches strings over 255 characters
Remove Duplicates (Data โ†’ Data Tools โ†’ Remove Duplicates)Deletes repeated rows and keeps the first occurrence; compares displayed valuesYes, permanently once savedNo (reports how many were removed)Excel 2016 through Microsoft 365
Advanced Filter (Data โ†’ Sort & Filter โ†’ Advanced โ†’ Unique records only)Hides duplicates in place or copies unique rows to another locationNo when copying to a new locationNoExcel 2016 through Microsoft 365
UNIQUE function (=UNIQUE(array,[by_col],[exactly_once]))Returns the distinct values as a spilled list; exactly_once TRUE returns only values that occur onceNo (formula output)NoExcel for Microsoft 365, 2021, 2024, Excel for the web and mobile; not Excel 2019 or earlier
PivotTable (Insert โ†’ PivotTable)Lists each value with a count of occurrencesNoYesAll desktop versions

Sources: Microsoft Support pages for Filter for unique values or remove duplicate values, the UNIQUE function, and the COUNTIF function.

Method 1: Conditional Formatting (Fastest Way)

book

Click and drag to select the column or range you want to check for duplicates. If your data is in column A from A2 to A500, select that range. Don't include the header row โ€” you want to check data values, not the column title. If you need to check across multiple columns simultaneously, select all relevant columns together.

rows

Go to Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values. A dialog box appears where you can choose to highlight either 'Duplicate' or 'Unique' values and select a formatting style (the default is light red fill with dark red text). Click OK. Every value that appears more than once in the selected range is immediately highlighted.

star

Scan the highlighted cells to identify which values are duplicated. The formatting shows you where duplicates exist but doesn't tell you how many times each value appears โ€” for that, you'd need a COUNTIF formula. If you want to sort duplicates together for easier review, sort the column (Data โ†’ Sort A to Z) and all highlighted cells will group together.

check

Once you've identified duplicates, decide whether to delete them (use Remove Duplicates or manual deletion), merge them (combine data from duplicate rows into one row), or keep them (some duplicates are legitimate โ€” the same customer making multiple purchases, for example). Remove the conditional formatting afterward if you no longer need it: Home โ†’ Conditional Formatting โ†’ Clear Rules โ†’ Clear Rules from Selected Cells.

Method 2: Using COUNTIF to Find and Count Duplicates

The COUNTIF function counts how many times a specific value appears in a range. By placing a COUNTIF formula in a helper column next to your data, you can flag every duplicate with a clear indicator โ€” and see exactly how many times each value appears, which conditional formatting alone can't do.

The basic formula is =COUNTIF($A$2:$A$500,A2), where $A$2:$A$500 is the range you're checking (with absolute references so it doesn't shift when you copy the formula down) and A2 is the cell being evaluated. This formula returns the count of how many times A2's value appears in the range. If the result is 1, the value is unique. If it's 2 or more, it's a duplicate.

To create a simple TRUE/FALSE duplicate flag, modify the formula to =COUNTIF($A$2:$A$500,A2)>1. This returns TRUE for any value that appears more than once and FALSE for unique values. You can then filter the helper column to show only TRUE values, giving you a clean list of all duplicated rows. Or use =IF(COUNTIF($A$2:$A$500,A2)>1,"Duplicate","Unique") for a more descriptive label that's easier to read when scanning the sheet.

A useful variation marks only the second and subsequent occurrences as duplicates while leaving the first occurrence unmarked โ€” useful when you want to keep one copy and identify the extras. The formula for this is =COUNTIF($A$2:A2,A2)>1, where the range starts fixed at $A$2 but the end of the range expands as you copy down.

This counts only the occurrences above the current row, so the first occurrence always returns FALSE (count of 1) while subsequent occurrences return TRUE. This 'first occurrence safe' approach is more useful than the standard COUNTIF when your goal is to identify rows to delete while keeping one copy of each value.

COUNTIF is more versatile than conditional formatting because it works with filters, can be used in further calculations (for example, =SUMPRODUCT((COUNTIF($A$2:$A$500,$A$2:$A$500)>1)*1) counts the total number of duplicate entries), and gives you a permanent, auditable record in the spreadsheet. It also handles partial matching with wildcards โ€” =COUNTIF($A$2:$A$500,"*Smith*") counts how many values contain 'Smith' anywhere in the text, which is useful for detecting near-duplicates where names might appear in slightly different formats.

More Methods for Finding Duplicates

๐Ÿ”ด Method 3: Remove Duplicates Tool

Excel's built-in Remove Duplicates tool deletes duplicate rows in one step. Select your data range, go to Data โ†’ Remove Duplicates, choose which columns to check (all columns or specific ones), and click OK. Excel keeps the first occurrence and deletes subsequent duplicates. Important: this permanently deletes data. Make a copy of your data before using this tool, or Undo (Ctrl+Z) immediately if the result isn't what you expected. Excel compares the values as displayed in the cells, not the stored values, so 3/8/2006 and Mar 8, 2006 count as different. A message tells you how many duplicates were removed and how many unique values remain.

๐ŸŸ  Method 4: Pivot Table for Duplicate Analysis

A pivot table shows how many times each value appears without modifying your data. Select your data range, go to Insert โ†’ PivotTable, drag the column you're checking into the Rows area and the same column into the Values area (set to Count). The pivot table shows each unique value and its count. Values with a count greater than 1 are duplicates. This method is ideal for exploring large datasets where you want to understand the frequency distribution before deciding how to handle duplicates.

๐ŸŸก Method 5: MATCH or VLOOKUP Between Two Lists

To check whether values in one list appear in another list โ€” for example, checking which customers from list A are also in list B โ€” use MATCH: =MATCH(A2,Sheet2!$A$2:$A$500,0). If the value is found, MATCH returns its position number. If not found, it returns #N/A. Wrap in ISNUMBER to get a TRUE/FALSE: =ISNUMBER(MATCH(A2,Sheet2!$A$2:$A$500,0)). VLOOKUP works similarly but retrieves a value from the matched row rather than just confirming a match exists.

๐ŸŸข Method 6: Advanced Filter for Unique Values

Excel's Advanced Filter can extract unique values from a column to a separate location. Select your data range, go to Data โ†’ Advanced, choose 'Copy to another location,' set the copy-to range, and check 'Unique records only.' Excel copies only unique values, leaving duplicates behind. This is useful when you want a clean de-duplicated list without modifying the original data. The original column remains intact with all duplicates still present.

Checking Duplicates Across Multiple Columns

๐Ÿ“‹ Same Row: Multi-Column Duplicate Check

Sometimes a single column isn't enough to determine whether two rows are truly duplicates. Two customers might share the same last name but have different email addresses โ€” that's not a duplicate. To check duplicates across multiple columns simultaneously:

  • COUNTIFS formula: =COUNTIFS($A$2:$A$500,A2,$B$2:$B$500,B2)>1 โ€” checks for rows where BOTH column A AND column B match. Returns TRUE only when both values match another row
  • Concatenation approach: Create a helper column with =A2&"|"&B2 to combine multiple columns into one string, then use COUNTIF on the helper column. This is simpler than COUNTIFS when checking three or more columns
  • Remove Duplicates tool: When using Data โ†’ Remove Duplicates, you can select specific columns โ€” Excel only considers rows as duplicates if ALL selected columns match

๐Ÿ“‹ Cross-Sheet: Duplicates Between Worksheets

To find duplicates between two different worksheets โ€” for example, checking which items on Sheet1 also appear on Sheet2:

  • MATCH formula: On Sheet1, add a helper column with =ISNUMBER(MATCH(A2,Sheet2!$A$2:$A$500,0)). TRUE means the value exists on Sheet2; FALSE means it's unique to Sheet1
  • VLOOKUP formula: =IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$500,1,FALSE),"Not Found") โ€” returns the value if found on Sheet2, or "Not Found" if it's unique
  • Conditional formatting with formula: Select Sheet1 data, create a new conditional formatting rule with formula =COUNTIF(Sheet2!$A$2:$A$500,A2)>0. This highlights any Sheet1 value that also exists on Sheet2
  • Power Query (Get & Transform): For large datasets, Power Query's Merge Queries feature can perform cross-sheet duplicate detection with better performance than formula-based approaches

What to Do After Finding Duplicates

Finding duplicates is only half the job โ€” deciding what to do with them requires understanding why they exist and whether they're legitimate. Not all duplicates are errors. A customer who makes three separate purchases should appear three times in a transaction log. A product that's sold in multiple stores might have the same SKU across multiple rows in an inventory report. Before deleting anything, understand the context of your data.

When duplicates genuinely need to be removed, you have several options. The Remove Duplicates tool (Data โ†’ Remove Duplicates) is the fastest for straightforward cases โ€” it keeps the first occurrence and deletes subsequent ones. If you need to choose which specific row to keep (for example, keeping the most recent entry rather than the oldest), sort the data first so the row you want to keep appears first, then run Remove Duplicates.

For more careful deduplication, filter your COUNTIF helper column to show only duplicates, review them manually, and delete specific rows after confirming they're genuine duplicates. This takes longer but prevents accidental deletion of legitimate data. In sensitive datasets โ€” customer records, financial data, medical records โ€” manual review is almost always the safer approach.

Another consideration after removing duplicates: check whether any formulas, pivot tables, or charts referenced the deleted rows. Removing rows can shift cell references in ways that break dependent calculations if those calculations used specific row addresses rather than dynamic ranges or Table references. If your spreadsheet has downstream dependencies, verify that everything still calculates correctly after deduplication. Using Excel Tables (Ctrl+T) for your data largely eliminates this risk because Table references adjust automatically when rows are added or removed.

If duplicates are a recurring problem rather than a one-time cleanup issue, consider implementing data validation at the point of entry. Data validation rules in Excel can prevent duplicates from being entered in the first place โ€” though they don't catch duplicates that already exist. For ongoing datasets, combining entry-time validation with periodic COUNTIF checks provides the most strong protection against duplicate data accumulation.

Duplicate Detection Best Practices

Always make a backup of your data before using Remove Duplicates โ€” the deletion is permanent and can't be undone after saving the file
Check whether duplicates are legitimate before deleting โ€” some datasets intentionally contain multiple rows for the same entity (transactions, time-series data, multi-location inventory)
Use COUNTIF rather than conditional formatting when you need to know how many times each value appears โ€” conditional formatting only shows that a duplicate exists, not how many copies there are
When checking for duplicates across multiple columns, use COUNTIFS or concatenate columns into a helper column โ€” single-column checks can produce false positives when different rows share one column value but differ in others
For large datasets (100,000+ rows), pivot tables or Power Query perform better than COUNTIF formulas applied to every row โ€” formula-heavy approaches can slow down the workbook significantly
Standardise data before checking โ€” trim whitespace (=TRIM()), convert to consistent case (=UPPER() or =LOWER()), and remove special characters to catch duplicates that differ only in formatting
After removing duplicates, verify your row count matches expectations โ€” if you started with 10,000 rows and expected ~500 duplicates, ending with 9,500 rows confirms the cleanup went as planned

Conditional Formatting vs COUNTIF for Duplicate Detection

Pros

  • Conditional formatting is the fastest method โ€” two clicks and all duplicates are highlighted visually, making it ideal for quick checks or ad hoc reviews
  • COUNTIF provides a quantitative count โ€” you can see exactly how many times each value appears, which helps distinguish between simple duplicates and values that appear 5+ times
  • Conditional formatting requires no formula knowledge โ€” it's accessible to every Excel user regardless of skill level
  • COUNTIF results persist as a permanent column โ€” useful for documentation, auditing, and as a filter target for further analysis

Cons

  • Conditional formatting doesn't tell you how many times a value appears โ€” a value that appears twice looks the same as one that appears fifty times
  • COUNTIF formulas can slow down large workbooks โ€” applying COUNTIF to 500,000 rows creates 500,000 individual calculations that recalculate on every change
  • Conditional formatting highlights both instances of a duplicate โ€” this can be confusing when you want to identify only the 'extra' copies while keeping the original unmarked
  • COUNTIF requires understanding formula syntax and absolute references โ€” less intuitive for beginners than the point-and-click conditional formatting approach

Handling Near-Duplicates and Fuzzy Matching

Exact-match duplicate detection catches identical values but misses near-duplicates โ€” entries that are the same entity represented slightly differently. 'John Smith' and 'john smith' are the same person but different text strings. '123 Main Street' and '123 Main St.' are the same address. 'Microsoft Corp.' and 'Microsoft Corporation' are the same company. Standard COUNTIF and conditional formatting treat these as different values because they compare character by character.

COUNTIF already ignores upper and lower case, so "John Smith" and "JOHN SMITH" count as the same value; Microsoft notes its criteria are not case sensitive. Whitespace is different: COUNTIF will not match "John Smith" with "John Smith " (trailing space), and Microsoft recommends the TRIM or CLEAN function for stray spaces and nonprinting characters. COUNTIF cannot take TRIM() around a whole range, so clean the data first: add a helper column with =TRIM(A2), fill it down, and run COUNTIF on that column. For a case-sensitive check, use =SUMPRODUCT(--EXACT($A$2:$A$500,A2))>1.

For more complex near-duplicate scenarios โ€” abbreviation differences, spelling variations, typos โ€” Excel's standard functions aren't sufficient on their own. You'd need to combine techniques: use SUBSTITUTE() to standardise known abbreviations (replace 'St.' with 'Street'), use LEFT() or MID() to compare partial strings, or calculate similarity scores using a custom approach. Excel add-ins like Fuzzy Lookup (a Microsoft add-in for Excel) can automate fuzzy matching by calculating similarity scores between text strings and identifying probable matches above a confidence threshold.

In practice, the best approach to near-duplicates is prevention: standardise data at the point of entry using data validation drop-downs, consistent formatting rules, and clear data entry guidelines. When cleaning existing data, combining TRIM(), UPPER()/LOWER(), and targeted SUBSTITUTE() calls handles the majority of common variation patterns. Reserve true fuzzy matching tools for large datasets with significant data quality issues that simpler techniques can't resolve.

One practical tip for catching near-duplicates manually: sort your data alphabetically before scanning for issues. Sorting groups similar entries together, making it much easier to spot variations like 'Microsoft Corp' appearing right next to 'Microsoft Corporation' or 'Jon Smith' near 'John Smith.' This visual scan, while manual, often catches common data quality issues faster than building complex formulas โ€” especially when your dataset has varied types of inconsistency that no single formula would catch.

Excel Practice Test โ€” Formulas, Functions, and Skills

Checking for Duplicates: Quick Reference

COUNTIF
The most versatile duplicate detection formula โ€” =COUNTIF(range,cell)>1 returns TRUE for duplicates and the full count shows how many times each value appears
2 clicks
Time to highlight all duplicates using conditional formatting โ€” Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values is the fastest duplicate detection method
COUNTIFS
Formula for multi-column duplicate checks โ€” =COUNTIFS(range1,cell1,range2,cell2)>1 identifies rows where multiple columns ALL match another row
Remove Dupes
Data โ†’ Remove Duplicates permanently deletes duplicate rows โ€” always make a backup first because this action can't be undone after saving the file
TRIM+UPPER
Essential pre-processing for accurate duplicate detection โ€” TRIM removes extra whitespace and UPPER/LOWER standardises case, catching duplicates that differ only in formatting
Fuzzy Lookup
Microsoft add-in for near-duplicate detection โ€” calculates text similarity scores to find entries that are probably the same entity despite different spelling or formatting

Performance Tips for Large Datasets

When checking for duplicates in datasets with hundreds of thousands of rows, performance becomes a real consideration. COUNTIF formulas applied to every row create n-squared evaluation complexity โ€” 500,000 COUNTIF formulas each scanning 500,000 cells means 250 billion comparisons on every recalculation. That's enough to make Excel noticeably slow or even unresponsive.

For large datasets, pivot tables are a much more efficient alternative for duplicate analysis. A pivot table with the target column as Rows and Count as Values summarises the whole column far faster than row-by-row formulas, and shows you every value along with its frequency. Filter the pivot table to show only counts greater than 1 to isolate duplicates. This approach is orders of magnitude faster than COUNTIF for large datasets and doesn't add formula overhead to the workbook.

Power Query (Get & Transform Data, available in Excel 2016 and later) is the most scalable option. Load your data into Power Query, use Group By to count occurrences, and filter for counts greater than 1. Power Query processes data outside the worksheet calculation engine, so large datasets do not slow down normal spreadsheet operations. It also handles cross-table duplicate detection through its Merge Queries feature, which functions like a database JOIN operation.

If you must use COUNTIF for large datasets, apply it to a subset rather than the entire column. Use a helper column with the formula only in rows where you suspect duplicates (based on sorting or filtering first), or run the formula once and then convert the results to values (Copy โ†’ Paste Special โ†’ Values) so the formulas don't recalculate on every edit. This eliminates the ongoing performance impact while preserving the duplicate flag information.

A hybrid approach that works well for recurring analyses: use Power Query to identify duplicates, export the results to a summary sheet, and keep the original data untouched. Power Query can be refreshed on demand when new data is added, so you get up-to-date duplicate detection without maintaining formula overhead in the working spreadsheet.

This is particularly practical for teams that receive new data files regularly and need to check each batch for duplicates before integrating it into the master dataset. Once the Power Query is set up, the entire process runs with a single 'Refresh' click โ€” no formula editing, no re-selecting ranges, and absolutely no risk of accidentally modifying the underlying source data in the process.

Preventing Duplicates With Data Validation

If duplicates are a recurring problem in your spreadsheets โ€” particularly in datasets that multiple people edit โ€” preventing duplicates at the point of entry is more efficient than cleaning them up afterward. Excel's Data Validation feature can reject duplicate entries before they're saved to the cell.

To set up duplicate prevention: select the column where you want to prevent duplicates, go to Data โ†’ Data Validation, set 'Allow' to 'Custom,' and enter the formula =COUNTIF($A:$A,A1)=1. This formula checks whether the value being entered already exists in the column โ€” if it does (count would be 2 or more), the validation rejects the entry and displays an error message. You can customise the error message in the Error Alert tab to explain why the entry was rejected.

Data validation has limitations. It only prevents new duplicates โ€” it doesn't catch duplicates that already exist in the data before the validation rule was applied. It can be bypassed by pasting values (Paste Special โ†’ Values ignores validation rules). And it doesn't work retroactively โ€” you need to run a COUNTIF check first to clean existing duplicates before relying on validation to prevent new ones. For critical datasets, combining data validation (prevention) with periodic COUNTIF audits (detection) provides the most complete protection against duplicate entries.

Another preventive measure is using Excel Tables (Ctrl+T) with structured data entry processes. Tables automatically expand as you add rows, and when combined with data validation rules, they provide a more controlled environment for data entry than an unstructured range. A calculated column in a Table automatically fills new rows with whatever formula you've set โ€” so a COUNTIF duplicate flag column extends itself to check every new entry as soon as it's added, without you needing to manually copy the formula down.

Excel Questions โ€” Test Your Spreadsheet Knowledge

Sample Excel Practice Questions

Try these questions from our free Excel practice tests. The correct answer and an explanation follow each question.

  1. In Excel, you can integrate the primary document with the data source. Word is commonly used in mail merging operations.

    • A. Client
    • B. Server
    • C. Source
    • D. None of these

    Answer: A. Client

    You can merge the main document with the data source in Excel. In mail merge operations, Word is usually client.

  2. What does the SUMPRODUCT function do in Excel?

    • A. Multiplies corresponding elements in arrays and returns the sum of those products
    • B. Adds all products in a product catalog
    • C. Calculates the sum and product separately
    • D. Multiplies all values in a single range

    Answer: A. Multiplies corresponding elements in arrays and returns the sum of those products

    SUMPRODUCT multiplies corresponding elements in two or more arrays (ranges of the same size) and then sums those products, making it extremely versatile for conditional calculations.

  3. A financial analyst needs to determine the optimal product mix to maximize profit, given constraints on production capacity, labor hours, and raw materials. Which Excel tool is most suitable for solving this type of optimization problem?

    • A. Goal Seek
    • B. Solver
    • C. Scenario Manager
    • D. Data Table

    Answer: B. Solver

    Solver is the appropriate tool for this scenario because it is designed to find an optimal value (maximum, minimum, or a specific value) for a formula in one cell, called the objective cell, subject to constraints on the values of other formula cells on a worksheet. Goal Seek, by contrast, only works with a single variable input and a single outcome.

  4. Which tab in Excel's ribbon is used to insert a PivotTable?

    • A. Home
    • B. Data
    • C. Formulas
    • D. Insert

    Answer: D. Insert

    PivotTables are inserted from the Insert tab by clicking the PivotTable button in the Tables group.

Take the full Excel practice test

How to Check for Duplicates in Excel Questions and Answers

What is the fastest way to find duplicates in Excel?

The fastest way is conditional formatting. Select your range, then choose Home โ†’ Conditional Formatting โ†’ Highlight Cells Rules โ†’ Duplicate Values and click OK. Every value that appears more than once is highlighted at once, and nothing in your data changes. It does not show how many times a value repeats; for that, add a COUNTIF formula in a helper column.

How do I use COUNTIF to find duplicates in Excel?

In a helper column, enter =COUNTIF($A$2:$A$500,A2) and fill it down, adjusting the range to your data. A result of 1 means the value is unique and 2 or more means it is duplicated. Add >1 to get TRUE or FALSE. To flag only the extra copies and leave the first occurrence unmarked, use =COUNTIF($A$2:A2,A2)>1.

How do I remove duplicates in Excel?

Select your data, then go to Data โ†’ Data Tools โ†’ Remove Duplicates, pick the columns to compare, and click OK. Excel keeps the first occurrence, deletes the later identical rows, and tells you how many were removed. The deletion is permanent once you save, so copy the data to another sheet first; Ctrl+Z undoes it right away.

How do I check for duplicates across multiple columns?

Use COUNTIFS so every column must match: =COUNTIFS($A$2:$A$500,A2,$B$2:$B$500,B2)>1 flags rows where both columns repeat. You can instead join the columns in a helper cell with =A2&"|"&B2 and run COUNTIF on it. In Remove Duplicates, tick only the columns that together define a duplicate row; Excel then compares that combination of values and deletes the whole row when it repeats.

How do I find duplicates between two Excel sheets or lists?

Use =ISNUMBER(MATCH(A2,Sheet2!$A$2:$A$500,0)) beside the first list. TRUE means the value also exists on Sheet2 and FALSE means it is unique to this sheet. You can also apply a conditional formatting formula rule, =COUNTIF(Sheet2!$A$2:$A$500,A2)>0, to highlight matching values. For very large lists, Power Query Merge Queries is the better choice because it avoids thousands of recalculating formulas.

Is COUNTIF case sensitive when checking for duplicates?

No. Microsoft documents that COUNTIF criteria are not case sensitive, so "apples" and "APPLES" count as the same value. Spaces still matter: "John Smith " with a trailing space will not match "John Smith". Clean the data with TRIM or CLEAN in a helper column first. For a case-sensitive check, use =SUMPRODUCT(--EXACT($A$2:$A$500,A2))>1.

Why does COUNTIF miss duplicates that look identical?

The usual causes are hidden spaces, nonprinting characters, numbers stored as text, and curly versus straight quotation marks; Microsoft recommends TRIM or CLEAN for these. COUNTIF also returns wrong results when it matches strings longer than 255 characters. Clean the column into a helper column, convert text numbers to real numbers, and rerun the check.

Does Excel have a function that lists unique values?

Yes. The UNIQUE function, =UNIQUE(array,[by_col],[exactly_once]), returns a spilled list of distinct values and is available in Excel for Microsoft 365, Excel 2021, Excel 2024, and Excel for the web and mobile. Setting exactly_once to TRUE returns only values that occur a single time. Excel 2019 and earlier do not have it; use Data โ†’ Advanced โ†’ Unique records only instead.

How many questions are on the Microsoft Excel?

The MOS Excel (Microsoft 365 Apps) exam has 33 to 37 questions. (Verified Oct 17, 2026 against certiport.pearsonvue.com.)

How long is the Microsoft Excel?

Microsoft Office Specialist Excel exams last 50 minutes, with 60 minutes of total seat time. (Verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business.)

What is the passing score for the Microsoft Excel?

The passing score for Microsoft Office Specialist Excel exams is always 700 on Certiport's 1 to 1000 scaled score. (Verified Oct 17, 2026 against certiport.pearsonvue.com.)
โ–ถ Start Quiz