+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP and ???

  1. #1
    Registered User
    Join Date
    06-28-2007
    Posts
    69

    VLOOKUP and ???

    Hey experts.

    I have a data source that I am trying pull data from as a roll up and I am having a difficult time with a solution.

    I am basically trying to pull data directly below the cell of a VLOOKUP. Please see the attached.

    This is just a small example of the actual data. The solution for the gross scores is very simple using VLOOKUP. However, I need assistance with the net scores. Hoping this makes sense once you see the file.

    Thanks,
    Mike
    Attached Files Attached Files
    Last edited by mpquin; 05-04-2009 at 02:47 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: VLOOKUP and ???

    do you mean?

    =HLOOKUP(C2,$Q$3:$Y$5,2,0)

    or

    =LOOKUP(C2,$Q$3:$Y$5)

    copied across
    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
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP and ???

    yep that is simple too simple as shown you could just put =Q5;=R5 .........
    so what do you want to look up from where?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: VLOOKUP and ???

    Hello Mike,

    I assume you'd be looking up based on the name with multiple names in the data. Try a formula like this in C3 copied across

    =INDEX(Q5:Q101,MATCH($A3,$O4:$O100,0))

    Note the difference in ranges, that's what gives you the next row

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

    Re: VLOOKUP and ???

    Actually, if you are looking to match up with a name too... then try:

    =SUMPRODUCT(($O$4:$O$10=$A3)*($Q$3:$Y$3=C2),$Q$5:$Y$11)

    adjust ranges to suit... notice.. the last range is offset vertically by one start/finish.

  6. #6
    Registered User
    Join Date
    06-28-2007
    Posts
    69

    Re: VLOOKUP and ???

    I need to compare the reference the name ("Mark"), then go across to the hole but reference the cell below.

    So in the attached example, to find the "gross" score on Hole #1, the formula is vlookup(a3,O4:Z5,3,0).

    I need to import the net score on the example which is in cell Q5. One cell below the result of the vlookup.

    The data changes and is referenced in various cells on multiple sheets so a simple "=Q5" is not applicable.

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

    Re: VLOOKUP and ???

    Other possible solutions were submitted too.

  8. #8
    Registered User
    Join Date
    06-28-2007
    Posts
    69

    Re: VLOOKUP and ???

    Thanks guys! Got what I needed.

  9. #9
    Registered User
    Join Date
    08-08-2007
    Location
    Vancouver
    MS-Off Ver
    Excel 2002, Excel 2007, Excel for Mac 2011
    Posts
    38

    Re: VLOOKUP and ???

    Add two columns to the left of your source data.

    label them Key1 and Key2.

    In the Key1 column add the following formula
    Please Login or Register  to view this content.
    This will fetch the player name. if the field to the right is blank it will fetch carry over the player from above. (i.e fill in the blank)

    In key2 to the left of Key1 add the following formula
    Please Login or Register  to view this content.
    This will concatenate the player name with the type of score record (i.e. net or gross)

    You can later hide the columns Key1 or Key2. You can also label them something else.

    In your cell where you want the net score to appear paste the following formula
    Please Login or Register  to view this content.
    I do this a lot when I get pivot table data that I need to re-use elswhere. I've attached your speadsheet with my solution.

    Hope this works.
    Attached Files Attached Files

+ 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