+ Reply to Thread
Results 1 to 10 of 10

Identify Duplicates

  1. #1
    Registered User
    Join Date
    11-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Identify Duplicates

    I have two worksheets one worksheet contains Insurnace names and Addresses from a hospital. I need to match these up to specific Insurance codes from a billing company worksheet. The bad thing is my billing database has multiple duplicate addresses for different insurances (Yes this does happen where different Insurances have the same address-don't ask me why). So originally I did a VLOOKUP where I looked up the address from the hospital Spreadsheet and matched it to the Insurance Specific code. The pitfall to doing it this way is that it only grabs the first exact match from the Billing worksheet. Is there a way to either automatically identify the possible matches and allow me to choose which one is the exact match or how do I just identify duplicates on my billing worksheet and match them manually? I attached the worksheet. It does not appear to be difficult but I am not an Excell guru like alot of you!
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Identify Duplicates

    I confess I don't think I follow the requirements...

    If as implied you have only the address with which to base your search upon then I'm afraid there is no logic which can be applied to locate other addresses for a given Company Code.

    Quote Originally Posted by whamps11
    I did a VLOOKUP where I looked up the address from the hospital Spreadsheet and matched it to the Insurance Specific code
    I'm afraid I don't see where you're matching the Insurance Specific Code... all I can see is you returning Company Code / Carrier Name from Billings based on the one common field between the two tables namely the Address.

  3. #3
    Registered User
    Join Date
    11-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Talking Re: Identify Duplicates

    Thanks for responding. In the Hospital worksheet I am matching that Address to the Address that Corresponds to the Plan_Name in the Billing worksheet. So the name Column Company Code in Hsopital worksheet corresponds to the Plan_Name in the Billing worksheet. So Compnay Code= Plan_Name. The only thing is when I do the VLOOKUP by Address and there are multple rows with the same address in the Billing worksheet it only pulls the first one. I need to be able to identify all the duplicates of the address on the billing worksheet so that I can choose the right one that it corresponds to on the hospital spreadsheet. I hope I am explaining this well. (I have certain plan_Names on the billoing worksheet that have the same address. I need to be able to pick the correct one to go on the Hospital spreadsheet and a VLOOK UP only gives me the first row in the series of rows with same address.) I hope this is a better explanation.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Identify Duplicates

    I would approach this slightly differently.

    Please Login or Register  to view this content.
    then...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Identify Duplicates

    Thnak you for your response I can not get =IF(COLUMNS($G2:G2)>$F2,"",INDEX(Billing!$B$1:$B$6075,MATCH(G$1&":"&$C2,Sequel!$D$1:$D$6075,0))) Formula to work. And how to I applied across matrix G2:Y817 Can you please explain what each one of these formulas is actually doing so I can learn it rather than just use the formulas? This stuff is amazing to me.. The first formula I understan Identifies the number of duplicates and I'm assuming that the second shows the potential options of duplicates correct?

  6. #6
    Registered User
    Join Date
    11-13-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Identify Duplicates

    try pivot.....but you must combine the the two worksheet and

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Identify Duplicates

    Are you saying you can't get it to work in the sample file or you can't adapt it ? If you apply the steps to the sample file it should work without incident.

    In terms of what it does...

    The first formula on billing sheet creates a KEY code, the code is a concatenation of the count of times the address has appeared up to and including the current row and the address itself, eg:

    1:Address1
    1:Address2
    2:Address1
    3:Address1
    etc...
    it is the Key that allows you to create the table of Plan Codes relatively efficiently (without need for Arrays etc...)

    Regards the formulae on the 2nd sheet, the first in Column F:

    Please Login or Register  to view this content.
    is as you say used to determine how many times the given address appears on the Billing sheet, however, it first checks to see if the address has already been listed on the current sheet and if so just uses prior calculated result given the result is the same - no need to recalculate the COUNTIF.

    The second formula used to populate the matrix returns the plans based on the combination of Address and number (row 1) by using the KEY column on Billing sheet,

    eg if header row is 1 and Address is "Address" the formula:

    Please Login or Register  to view this content.
    will look in they new KEY column for "1:Address" ... and will return the associated value from column B (plan)... note it will only look for a plan where the KEY will exist, ie if header > column F then there is no plan to retrieve (given the #:address won't exist)....
    in the above this is done by using COLUMNS>F but in reality it might make more sense (logically) to use G$1>$F2.

    It is of paramount importance therefore that the headers in G1 onwards are 1 to n where n is determined by the most no. of plans any one Address has listed on Billing sheet (in your sample this was I believe 19).
    Last edited by DonkeyOte; 11-13-2009 at 04:01 AM.

  8. #8
    Registered User
    Join Date
    11-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Identify Duplicates

    I can't get this part to work can you please assist?

    G:2
    =IF(COLUMNS($G2:G2)>$F2,"",INDEX(Billing!$B$1:$B$6075,MATCH(G$1&":"&$C2,Billing!$D$1:$D$6075,0)))
    applied across matrix G2:Y817

    Please see attached and let me know what I need to do? Like I said I am not a guru like you so please forgive my inexperience.
    Attached Files Attached Files

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Identify Duplicates

    Quote Originally Posted by DO
    G1:Y1 -> 1 to 19
    the above means:

    enter numbers 1 thru 19 in cells G1:Y1 respectively
    ie G1 is 1, H1 is 2, I1 is 3 and so on until Y1 is 19

    it does not mean type Y1 -> 1 to 19 into G1 ... I should have perhaps been clearer on that fact.

  10. #10
    Registered User
    Join Date
    11-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Identify Duplicates

    Thank you so much this helps me out tremendously! It works like I want. It gives me the number of duplicates and identifies the which ones they are.

    Thank
    You!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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