+ Reply to Thread
Results 1 to 7 of 7

Lookup with multiple sources

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    Conroe, TX
    MS-Off Ver
    Office 2016
    Posts
    35

    Lookup with multiple sources

    I have a spreadsheet that provides data to separate tabs (data comes from Access) , each tab has a unique name which is used as the identifier and contains data and a date. I tried using vlookup/match but the problem is that the raw data includes repeating dates for different identifiers.

    What I need is something that can look for an identifier and a date. What match does now is it finds the first date it is looking for and stops, I need it to find the date associated with the identifier. (I hope this makes sense.)
    Last edited by saved1ne; 01-21-2011 at 01:33 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup with multiple sources

    Try something like:

    =INDEX(D3:D17,MATCH(1,INDEX((A3:A17=A1)*(C3:C17=B1),0),0))

    where A3:A17 contains the dates or Id's to match up to your input in A1 and C3:C17 contains the other match up field to input in B1 and C3:C17 contains the field you want to extract.
    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
    10-28-2010
    Location
    Conroe, TX
    MS-Off Ver
    Office 2016
    Posts
    35

    Re: Lookup with multiple sources

    OK, first I apologize for such a poorly written question. I see what you are doing and I think I need to better explain what I am doing to get to an answer.

    My data sheet has 4 columns. A = ID, B = Date, C = data 1, D = data 2

    My other sheets are named after each ID.

    My ID sheet has the ID in cell A1, the monthly date range starts in cell A12 (1-1-2007) and goes until current. I need to look up on the data sheet the (data 1) information that corresponds to the combination of cells A1 and A12, A13, A14.........until the data for all dates is filled in.

    I used what you gave me and got an #N/A so I think it just needs to be fine tuned.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup with multiple sources

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Registered User
    Join Date
    10-28-2010
    Location
    Conroe, TX
    MS-Off Ver
    Office 2016
    Posts
    35

    Re: Lookup with multiple sources

    Here is the sample you asked for. I included the tabs to show what the finished tabs should look like.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup with multiple sources

    In B12 of each sheet try:

    =SUMPRODUCT(--(Data!$A$2:$A$95=$A$1),--(Data!$B$2:$B$95=$A12),Data!C$2:C$95)

    adjust ranges to suit... keep them to a minimum, then copy down and over to next column.

  7. #7
    Registered User
    Join Date
    10-28-2010
    Location
    Conroe, TX
    MS-Off Ver
    Office 2016
    Posts
    35

    Re: Lookup with multiple sources

    Excellent! Worked perfectly.

    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