+ Reply to Thread
Results 1 to 5 of 5

Thread: Returning A Associated Value Within a Date Range From A Unique ID

  1. #1
    Registered User
    Join Date
    01-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Returning A Associated Value Within a Date Range From A Unique ID

    Hi all, above I have attached two tables of data which is a sample of what I'm working on (the actual tables are each 10,000+ rows long).

    What i need to do is identify those agreements in B that have been started within 10 days of an intial survey for the specific client in A. Now the only unique identifier we have in our system to link the two is the Client ref and as you can see there is the possibility of multiple surveys and agreements.

    I have shown in italic within table A the results I expect to get...but using Vlookup I'm stuck on defining the formula so that it returns the correct data....any help would be appreciated as i'm sure this would be a sinch for you guys.

    Ian
    Attached Files Attached Files
    Last edited by lyonsi01; 01-26-2012 at 06:19 AM.

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Arrrggghhhhh - Help With Looking up nearest values in a table with multiple possi

    Hello,

    what is the logical relationship between the data in the green table and the data in the red table? For example, in row 11, where does that value come from? The red table has multiple entries with the same client ID and the same agreement start date. What determines the start date in the green table?

    Can you describe it in words?

    cheers,

  3. #3
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Arrrggghhhhh - Help With Looking up nearest values in a table with multiple possi

    pike, didn't see your comment before posting, but apart from the drama, the title is fine with me.

  4. #4
    Registered User
    Join Date
    01-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Arrrggghhhhh - Help With Looking up nearest values in a table with multiple possi

    Hi Teylyn,

    Ok I’ll try.

    Essentially it’s a “many to many” relationship between Table A and table B.

    Surveys are carried out for clients from which service agreements are generated. We currently do not have a unique identifier to link the two pieces of work (which having not long been here defies belief). It is what it is though so, I need to try and identify a way of identifying how many of the Surveys in Table A have had a “potential” Agreement started within 10 days for the client. You’ll note that I have said ‘potentially’ because that’s exactly what the formula would be identifying; however this formula would save me days of work individually checking the entire list one by one.

    So in essence would I would like to do is based on the Client iD in Table A…lookup the same Client iD in Table B and then return the information if there is a Agreement that has started within 10days (After) the date the Survey was started.

    Was that any clearer?

  5. #5
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Returning A Associated Value Within a Date Range From A Unique ID

    >> Was that any clearer?

    Not really.

    If you have many entries for the same client, how do you expect Excel to identify the "correct" item to show in the list? You will need to put the logic into simple words. If you can do that, the logic can be translated into some formula.

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