+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    66

    lable duplicate entries

    Morning All,

    Within column A I have circa 2500 unique references. All these references are made up of 5 numbers then a letter.

    These records are grouped into 6 catagories, which are labled in column B:

    BNL, COBRA, CWIDE, KC, WILLIS, WEST

    I need a formula in Column C which will look up any duplicate records, then state in which group the duplicate was found.

    i.e.

    Column A - 12345A
    Column B - BNL
    Column C - KC

    (as the duplicate was found within the KC range)

    Any help would be greatly appriciated. To confirm, I have defined the names of each group of unique references, as per the lables above.

    Regards

    Howardjo

  2. #2
    Forum Guru Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    Cheshire, UK
    MS-Off Ver
    MS 97, 2003, 2007, 2010
    Posts
    2,897
    You are showing the value to be found in the BNL range yet for column C result you state the KC range!, how or why is that possible?

  3. #3
    Registered User
    Join Date
    03-13-2007
    Posts
    66
    Apologies,

    The lookup value is the unique reference in column A. Although unique, there will be instances where it is repeated.

    In column B I haved labled them by the groups I know they should be in, however, in column C I want to see if they are appearing in any other groups (and if so, which one).

    Regards

  4. #4
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Hi,

    Try either

    =IF(COUNTIF(A:A,A:A)>1,B1,"")

    or

    =IF(COUNTIF(A:A,A:A)>1,A1&" "&B1,"")
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    03-13-2007
    Posts
    66
    Thank you for your speedy response.

    However, this formula appears to return the value in B of the first record. I need it to return the value of the duplicate.

    i.e. - in my example, your formula will return BNL (the first lable) and not the required KC (2nd lable)

    To try and make things clearer, I have attached a sample of the worksheet.

    Regards
    Attached Files Attached Files

  6. #6
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Hi,

    I forgot to say if you autofill the formula down column C it will flag the duplicates
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

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.2.0