Formula Errors

How to Find Duplicate Rows and Scholarship Conflicts in Excel

John WilsonJohn Wilson Nov 10, 2026 868 views

Question details

The user needs to identify duplicate combinations of data in columns A, B, and D, and flag records that contain conflicting scholarship types.

How to Find Duplicate Rows and Scholarship Conflicts in Excel
Product
Excel
Device & OS
not provided
Scenario
Performing data validation to identify repeated rows and flag specific logical conflicts, such as a single student holding both a Presidential and a Music scholarship simultaneously.
Observed behavior
The goal is to output a specific "FLAG!" indicator when conflicting conditions exist within the same ID and season.
Before you start

Ensure your dataset is organized in a standard tabular format without merged cells. Identify the specific columns that represent the student ID, season, and scholarship types before applying the formulas.

Solution 1Recommended

Use COUNTIFS to Identify Duplicates and Flag Conflicts

Apply the COUNTIFS function to count occurrences across multiple criteria columns, then wrap it in an IF statement to return a custom flag.

The COUNTIFS function allows you to check multiple conditions across different columns simultaneously. By counting how many times a specific combination appears, you can easily identify duplicates and conflicting entries.

1
Set up the duplicate check formula

Select an empty cell in your first data row (e.g., E2). To find duplicate combinations of columns A, B, and D, type: =IF(COUNTIFS(A:A, A2, B:B, B2, D:D, D2)>1, "Duplicate", "")

2
Create the scholarship conflict formula

In another column (e.g., F2), check for scholarship conflicts. Assuming Column A is ID, Column B is Season, and Column C is Scholarship Type, type: =IF(AND(COUNTIFS(A:A, A2, B:B, B2, C:C, "Presidential Scholarship")>0, COUNTIFS(A:A, A2, B:B, B2, C:C, "Music Scholarship")>0), "FLAG!", "")

3
Apply formulas to the entire dataset

Press Enter to confirm the formula. Click the cell with your new formula, hover over the bottom-right corner until the cursor turns into a cross, and double-click or drag down to apply it to all rows.

4
Filter the flagged results

Highlight your header row, go to the Data tab, and click Filter. Click the filter dropdown on your formula columns and select only "Duplicate" or "FLAG!" to view the conflicting records.

Use COUNTIFS to Identify Duplicates and Flag Conflicts
Optimize Formula Performance: Referencing entire columns (like A:A) can slow down large spreadsheets. For better performance, format your data as an Excel Table (Ctrl+T) and use structured references, or restrict the ranges to your exact data rows (e.g., A2:A5000).
Data Management

Easily Find Duplicates and Manage Formulas with WPS Office

WPS Spreadsheet provides powerful formula processing and built-in data management tools, making it incredibly easy to identify conflicts and clean up your data seamlessly.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open your existing Excel (.xlsx) file containing the scholarship records.
  2. 2. Use built-in duplicate highlighting: Navigate to the Data tab and click 'Highlight Duplicates' to instantly apply a color code to any repeated rows without writing complex formulas.
  3. 3. Apply COUNTIFS flags: Type the exact COUNTIFS and IF formulas in a helper column to set up your specific 'FLAG!' conditions for scholarship conflicts.
  4. 4. Filter and resolve: Use the built-in AutoFilter tool under the Data tab to display only the rows marked with 'FLAG!', allowing you to quickly review and correct the entries.
Highlight and Remove Duplicates with a single click in the Data tabFully compatible with Microsoft Excel formulas including COUNTIFS, IF, and ANDAdvanced data validation and conditional formatting toolsFree, lightweight, and user-friendly alternative to Microsoft Office
QA img-9

Frequently Asked Questions

Can I highlight duplicate rows visually instead of using a formula?

Yes. Select your data range, go to the Home tab, click Conditional Formatting, choose Highlight Cells Rules, and select Duplicate Values. This will automatically shade any duplicate combinations.

Why is my COUNTIFS formula returning a #VALUE! error?

This error typically occurs if your criteria ranges are not exactly the same size. Make sure all ranges in your formula (e.g., A2:A100 and B2:B100) have the same number of rows and columns.

How do I remove the duplicate rows after finding them?

Go to the Data tab and click 'Remove Duplicates'. A dialog box will appear allowing you to check the specific columns (e.g., Columns A, B, and D) that must match for a row to be considered a duplicate and deleted.

Does COUNTIFS work with partial text matches?

Yes, you can use wildcards. For example, using "*Scholarship*" as your criteria will count any cell that contains the word 'Scholarship', even if there are other words before or after it.