+ Reply to Thread
Results 1 to 5 of 5

Vlookup multiple rows with the same lookup value

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Angry Vlookup multiple rows with the same lookup value

    I want to lookup value ie., date(01-06-2013) for which I have stored separate data table in another sheet. For each date, separate data is available. When I lookup the date value, the data table has to be retrieved for printing report. Ex.

    Date Unit Wt.in T Earnings Commodity Party

    01-06-13 25 1332 2342311 Wheat FCI
    01-06-13 42 2342 23423423 Rice FCI
    01-06-13 58 3342 234242342 Limestone TNPL

    When I look up the date, all other data has to be retrieved in another sheet. Pl. help

    Swesan.

  2. #2
    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,929

    Re: Vlookup multiple rows with the same lookup value

    Hi and welcome to the forum

    I would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of 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

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Vlookup multiple rows with the same lookup value

    Hi,

    Thanks for your reply. I'm herewith attaching the file for your reference. Pl. see that and suggest good ideas to resolve it.
    Attached Files Attached Files

  4. #4
    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,929

    Re: Vlookup multiple rows with the same lookup value

    Thanks for the file.

    Add a helper column on sheet2 (I used L, you can hide it if you want), and copy this down...
    =COUNTIF($A$4:A4,Sheet1!$E$3)
    Then on sheet1 A8, copied down and across, use this...
    =INDEX(Sheet2!$A$3:$I$48,ROW(A2),MATCH(Sheet1!A$7,Sheet2!$A$3:$I$3,))

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Vlookup multiple rows with the same lookup value

    Hi,

    Thanks for your quick reply. But, I can't get the desired result when I' have copied in my file as you said. What I want is to lookup the data for particular date only. It need not retrieve all rows. Because, for day 1 (1.6.2013, there may be 4 or 5 rows of data. Day-2 (2.6.2013) may have 2 or 3 rows of data. and Day-3 (3.6.2013) may have only 1 row of data and Day-4 (4.6.2013) may have 5 or 6 rows of data. When I change the date in the lookup column in Sheet1, the required data with as many rows for each date needs to be updated in Sheet1. I think You could understand what I'm trying to say. Expecting your earliest reply. Many thanks for your help.....
    Swesan

+ 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