+ Reply to Thread
Results 1 to 6 of 6

Thread: VLOOKUP - same value lookup but multiple rows with the value

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    14

    VLOOKUP - same value lookup but multiple rows with the value

    Hi,
    Please help.

    attached please find a sample file with a data set and the totals sheet, here is what I need to do but can't find anywhere.

    In Column H and I in the totals sheet, I need to take the lookup value in column A "LG ID#" and search the data set to produce the result that corresponds to the column name "TT" in both sheets.

    The "x" in column "G" on the Data Set Sheet signifies that it is FRN and no "x" means it is Non-FRN.

    What I want as an end result is for the numbers to auto pull for FRN and NON-FRN in the totals sheet from the data set.

    Please help
    Attached Files Attached Files
    Last edited by TCN; 11-01-2011 at 09:45 AM.

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

    Re: VLOOKUP - same value lookup but multiple rows with the value

    Perhaps try:

    =SUMIFS('DATA SET'!$H$2:$H$25,'DATA SET'!$A$2:$A$25,$A2,'DATA SET'!$D$2:$D$25,$G2,'DATA SET'!$C$2:$C$25,"AP",'DATA SET'!$G$2:$G$25,"x")

    and

    =SUMIFS('DATA SET'!$H$2:$H$25,'DATA SET'!$A$2:$A$25,$A2,'DATA SET'!$D$2:$D$25,$G2,'DATA SET'!$C$2:$C$25,"AP",'DATA SET'!$G$2:$G$25,"<>x")

    copied down

    Note: It is recommended you don't use Merged cells, especially with numbers that you are going to manipulate.. it messes things up.

    Also, some of your entries in the ST column have a trailing space... please clean them up.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: VLOOKUP - same value lookup but multiple rows with the value

    Thanks NBVC unfortunately it didnt work.

    I got the 1st values for D and W but the T and I didnt pull correctly and the other formula for Non-FRN didnt work at all.

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

    Re: VLOOKUP - same value lookup but multiple rows with the value

    See attachment

    Where is gone wrong?
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: VLOOKUP - same value lookup but multiple rows with the value

    My appologies NBVC,
    It does work but needed some adapting and cleaning up of those cells you mentioned, even your form did it with my data for the last 2 in each column H and I, but it looks like I got it, going to work it into the document and will reply back when I know it works for sure.

    Thanks again

  6. #6
    Registered User
    Join Date
    10-04-2011
    Location
    MA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: VLOOKUP - same value lookup but multiple rows with the value

    Thanks NBVC,
    I got everything into the actual form and it worked great.
    Apreciate the help greatly.

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