+ Reply to Thread
Results 1 to 5 of 5

finding duplicate numbers line by line

  1. #1
    Registered User
    Join Date
    02-03-2020
    Location
    cape town
    MS-Off Ver
    microsoft office 10
    Posts
    3

    finding duplicate numbers line by line

    Good day,
    Can you please help me with a problem I am having.
    Attached is an excel document (office 10)
    In this document there are numerous lines of numbers, each in its own cell.
    I need to search for duplicate numbers in each line.
    Line by line.
    Not duplicates in the complete document.
    Manually this is straight forward.
    Highlight the required line of numbers, use conditional formatting, highlight cell rules and then use the duplicate values function.
    What is needed is a way of using this function across the whole document without having to manually apply this method line by line.
    When I try to "pull" this function to include more lines it treats the page as a whole document and does not function on a line to line basis, and highlights all the duplicate numbers in all the lines.
    Thank you for your time and effort.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    732

    Re: finding duplicate numbers line by line

    You can use a formula to do this. Highlight all the numbers (e.g. B2:P8 in your example) and create a new conditional formatting based on the following formula:

    Please Login or Register  to view this content.
    Note that the "2" in the above equation must be the same row as the first row in your selection. I've done it in the attached.

    WBD
    Attached Files Attached Files
    Excel 2016 on Windows 10, looking for rep!

  3. #3
    Registered User
    Join Date
    02-03-2020
    Location
    cape town
    MS-Off Ver
    microsoft office 10
    Posts
    3

    Re: finding duplicate numbers line by line

    Hi,
    Thanks for your reply.
    Maybe I did not explain properly what I am trying to achieve, or I am misunderstanding you.
    I need to find and highlight duplicates quickly in each line of a document with up to 1000 lines.
    Is there a way of dragging the formula down the complete table but still highlighting duplicates per line?

  4. #4
    Valued Forum Contributor
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    732

    Re: finding duplicate numbers line by line

    Select B2:P1000 (or whatever your range is) then add a new conditional formatting rule based on a formula. Enter the formula above and select the format of the cells. That will highlight duplicates in a row.

    WBD

  5. #5
    Registered User
    Join Date
    02-03-2020
    Location
    cape town
    MS-Off Ver
    microsoft office 10
    Posts
    3

    Re: finding duplicate numbers line by line

    I eventually understand how to do this :-)
    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1