+ Reply to Thread
Results 1 to 5 of 5

Part Matching Duplicate Values

Hybrid View

  1. #1
    Registered User
    Join Date
    04-22-2007
    Posts
    7

    Part Matching Duplicate Values

    hi,

    hope someone can help. Desperately need to do part matching similar to this scenario:

    ColA
    there was a dog that jumped over
    there was a dog that jumped over the fence

    Everything is in ColA. We are on excel 2007. We need to highlight these two are duplicates based on matching the first 40 characters.

    Please help!
    Last edited by NBVC; 11-12-2008 at 12:21 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Select the range and go to Format|Conditional Formatting

    Select Formula Is from 1st drop down and enter a formula like this:

    =SUMPRODUCT(--(LEFT($E$1:$E$2,40)=LEFT($E1,40)))>1

    where E1:E2 are the cells you selected and E1 is the first cell in that range.

    Change to suit.

    Click Format and choose colour from Pattern Tab.

    Click Ok

    Click Ok to finish.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-22-2007
    Posts
    7
    thanks for reply. not working for me so am missing something....have done:

    1) highlight all Column A
    2) Conditional formatting
    2) More rules
    3) Enter a formula to determine what cells to format
    4) selected a colour.
    5) Formula is

    =SUMPRODUCT(--(LEFT($A$1:$A$2,40)=LEFT($A2,40)))>1

    All my data is in column A. First row is a header. Second row is begin of data.

    ?
    Last edited by thomasr79; 11-12-2008 at 12:05 PM. Reason: added in step 1

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    =SUMPRODUCT(--(LEFT($A$2:$A$2,40)=LEFT($A2,40)))>1

    The reference in red above should be the last occupied cell in the column that you have selected.

    The reference in Blue should be the first/top cell selected

    You should just select the actual used range, not the whole column

  5. #5
    Registered User
    Join Date
    04-22-2007
    Posts
    7
    perfect thanks

+ 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