+ 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
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    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
    Office 365 on Windows 11, 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
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    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)

Similar Threads

  1. Replies: 3
    Last Post: 03-12-2017, 03:39 PM
  2. [SOLVED] MultiLine Textbox to auto remove blank line, count line, remove duplicate
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2015, 09:28 PM
  3. Replies: 2
    Last Post: 10-23-2014, 02:31 PM
  4. [SOLVED] Help with Line Graph - Need 2nd Line to begin at X-value different that 1st Line
    By cchase22 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-08-2014, 11:56 AM
  5. Replies: 7
    Last Post: 08-13-2013, 03:40 PM
  6. [SOLVED] Comparing two data sets that don't line up on a line to line basis
    By ghan7650 in forum Excel General
    Replies: 10
    Last Post: 05-22-2012, 05:38 PM
  7. Macro problem on, Yellowed line - previous line or next line.
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2005, 07:06 PM

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