Skip to main content

How to find and count duplicate cells/values in a single row in Excel?

Author Kelly Last modified

Normally Conditional Formatting feature can help Excel users easily find out all duplicates in columns. But how to find duplicate cells/values in rows? This article is talking about finding duplicate cells/values in a single row, and counting number of duplicates in a single row as well in Excel.

Find duplicate cells/values in each row

Find and count duplicate cells/values in a single row


Find duplicate cells/values in each row

Actually we can also find duplicate cells or duplicate values in a single row or in each row with Conditional Formatting feature. Please do as follow steps:

1. Select the range that you will find duplicate cells in each row, and click Home > Conditional Formatting > New Rule.

a screenshot showing how to create a new conditional formatting rule

2. In the opening Edit Formatting Rule dialog box, please:

(1) Click to select Use a formula to determine which cells to format in the Select a Rule Type box;

(2) In the Format values where this formula is true box, please enter the formula =AND(ISNUMBER(A1), COUNTIF(1:1,A1)>1).

Note: In above formula, A1 is the first cell of selected range, and 1:1 is the first row of selected range.

(3) Click the Format button.

a screenshot of setting the conditional formatting rule

3. In the opening Format Cells dialog box, please specify the cell formatting as you need, and click the OK button.

In our case, we go to the Fill tab and select a background color in the Background Color section as below screenshot shown:

a screenshot of selecting a fill color

4. Click the OK button in the Edit Formatting Rule dialog box.

Now you will see all duplicate values/cells are highlighted with specified color in each row. See screenshot:

a screenshot showing the final result with duplicates in a row highlighting


Find and count duplicate cells/values in a single row

The second method will introduce Select Duplicate & Unique Cells utility of Kutools for Excel to find and count duplicate cells/rows in a single row in Excel. Please do as follows:

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

1. Copy the single row that you will find and count duplicates, and then right click a blank cell and select Transpose (T) in the Paste Options section to transpose row to column. See screenshot:

a screenshot of selecting Transpose in the Paste Options section

Note: You can’t find out the Transpose (T) in the right-clicking menu in Excel 2007 directly. However, you can click Home > Paste > Transpose to get it. And this way works in all Excel 2007/2010/2013. See above screenshot:

a screenshot of selecting Transpose in Excel 2007

2. Now the row is converted to a list/column, go ahead to click Kutools > Select > Select Duplicate & Unique Cells.

3. In the opening Select Duplicate & Unique Cells dialog box, check Duplicates (Except 1st one) option or All duplicates (Including 1st one) option as you need, and click the Ok button.

a screenshot showing the configuration of the Select Duplicate & Unique Cells dialog box

Note: It’s optional to check the Fill backcolor option. This Fill backcolor option will highlight all found duplicate cells with specified color.

3. Now a dialog box comes out and shows how many duplicates have been found as below screen shot shown. Click the OK button to close it.

a screenshot showing how many cells are selected

The Select Duplicate & Unique Cells utility of Kutools for Excel is designed to find out all duplicates in selected column/list, and highlight all found duplicate cells or rows as well.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Demo: find and count duplicate cells/values in a single row in Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!