+ Reply to Thread
Results 1 to 10 of 10

duplicate numbers help please

  1. #1
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    duplicate numbers help please

    I have two columns with item code numbers in them

    if any numbers from column 1 are duplicated in column 2, i want them to be highlighted automatically, maybe with a coloured cell or something?

    can this be done and if so how?

    thank you very much

    danielle

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: duplicate numbers help please

    Use Conditional Formatting to count the cells in column-2 which contain the same value as column-1.

    Adjust the range references as needed.
    To apply the CF:
    Make the first data cell in column-A the active cell, then drag down to select all cells in the column. Use the Formula option of CF and use this formula.

    Note: row-1 is asumed to be a header row.

    =COUNTIF($B$2:$B$14,A2)>=1

  3. #3
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    Re: duplicate numbers help please

    sorry to be a pain, please can you give me step by step instructions on how to do a conditional formatting? im blonde! lol

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: duplicate numbers help please

    Press F1 in Excel and lookup Conditional Formatting, complete tutorials included in your program.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: duplicate numbers help please


  6. #6
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    Re: duplicate numbers help please

    yer i did but still cant do it

  7. #7
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    Re: duplicate numbers help please

    just not getting how to do it. please see attached :0x
    Attached Files Attached Files

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: duplicate numbers help please

    Highlight A1:A2707
    Click Format > Conditional Formatting
    Click Condition1: Formula Is: =COUNTIF(B:B,$A1)>0
    Click Format... > Patterns tab > Yellow color
    Click OK > OK

  9. #9
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    Re: duplicate numbers help please

    yes yes yes, thanks u so much, i still got it wrong at 1st, dint realise i had to use the drop down for "formular is"!
    thanks so much again!
    xx

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: duplicate numbers help please

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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