+ Reply to Thread
Results 1 to 5 of 5

Need Help LOOKUP MATCHING

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2003
    Posts
    2

    Need Help LOOKUP MATCHING

    I need help with a Excel Formula ASAP PLEASE I dont want to have to review this document manually. If I have an excel sheet full of data and that in Column A contains (TIN Numbers) by the way there is over 13,000 Line Items/records. Within all of those Lines Items from example in Column A I could have Duplicate TIN Numbers Throughout see below:

    Cloumn A
    TIN #
    123456789
    123456789
    123456789
    789456123
    789456123

    Column B is a Compleation Review Date for that corresponding TIN from Column A

    Column C is a Risk Score (Could be High, Low, etc. that Corresponds back to Column B & A

    How can I come up with a formula that looks at Column A TIN Number that might have possible duplication example stated above where there were 3 dups TIN Numbers for 123456789, the formula Looks at those 3 aka duplications and does a Compare and then Pulls Back the Most Recent RISK Completion Date & Score From Column B and C.....?

    For all purposes what I am trying to do is get rid of the duplication starting from Duplicate TINS in Column A AND keep all Line items/records based off the most current Risk Score......

    So if Column A had

    123456789 High Risk (Completion Date 9/12/2012)
    123456789 Low Risk (Completion Date 4/9/2009)
    123456789 Low Risk (Completion Date 12/12/2007)

    For the Whole exel sheet where its like this because of the duplication how can I only keep the Line items that are the most recent TINS, Risk Score, and its based off the Most Recent Completion Date?

    PLEASE HELP !!!!

    THANK YOU!!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Need Help ASAP Formula Question (LOOKUP MATCHING)

    Sort the data on Date, newest to oldest, within TIN Number, ascending.
    Add a Helper column, say, column H
    In H2 put the formula: =IF(A2<>A1,1,N(H1)+1) and drag down to the end of the data.
    Switch on Autofilter
    Filter the Helper column for values >1
    Select the visible rows and delete them.

    What remains will be the most recent Risk Assessment outcomes.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Need Help ASAP Formula Question (LOOKUP MATCHING)

    Hi and welcome to the forum

    can you perhaps upl;oad a sample workbook, showing what data you have (all sensitive data removed), what your expected outcome is and how you arrived at that?
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-05-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Need Help ASAP Formula Question (LOOKUP MATCHING)

    Tmshucks ---- that worked thank you so much

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Need Help ASAP Formula Question (LOOKUP MATCHING)

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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