+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP across mulitple rows?

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    VLOOKUP across mulitple rows?

    We have a spreadsheet that keeps track of team stats during a tournament. We would like the ability to pick a team and create a printed page of their stat info up to that moment. I was thinking of using Vlookup and create the printable page on a new tab, but I don't know how to make it work over multiple rows (maybe it doesn't?). I have not made a format for the page to print from yet so I have a lot of flexibility. Is there a way to do this? Attached is a sample of our current stat program, and as an example I would like to be able to copy all the information for the team "48th ST AC/DC" to a new tab, and print that info on a page to show to the team members.
    Attached Files Attached Files
    "Laugh? I thought I'd die!"

    Jimbo?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,620

    Re: VLOOKUP across mulitple rows?

    Have a look at the updated sample and see if it is something you can adapt.

    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: VLOOKUP across mulitple rows?

    That seems to work, but not if I move things around (using cut and paste). It looks like the formula is exactly the same in a number of places. How does it know which data to pull in? This should be perfect as long as there is a way I can move things around a bit

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,620

    Re: VLOOKUP across mulitple rows?

    It uses MATCH to find the "base" row for the team. It uses ROWS to calculate an offset from the base row for subsequent rows. And it uses COLUMN to index the relevant column.

    If everything lines up with the source sheet it will work fine. Hide rows and columns rather than deleting them.

  5. #5
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: VLOOKUP across mulitple rows?

    I get it now. Thank you very much!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,620

    Re: VLOOKUP across mulitple rows?

    You're welcome. Thanks for the rep.

  7. #7
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: VLOOKUP across mulitple rows?

    I finally am getting back to this. I marked it solved based on how the sample worked, but recently I tried to use this with a larger amount of data (see attached) and it errors after the third set of data. If you copy any of the first three team names, it seems to work just fine. If you try to use any team after that you get a series of #REF errors. Any thoughts?
    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)

Similar Threads

  1. Mulitple Results from a Vlookup
    By Maverick1981 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2013, 07:24 AM
  2. Vlookup mulitple criteria
    By sctraffic in forum Excel General
    Replies: 1
    Last Post: 07-21-2011, 03:50 PM
  3. Vlookup over 2 cells and return mulitple rows
    By ssdsibes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2011, 04:04 AM
  4. mulitple worksheets vlookup
    By Max_power in forum Excel General
    Replies: 7
    Last Post: 03-21-2006, 12:06 PM
  5. Mulitple conditonal match / Vlookup
    By Madduck in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2005, 02:06 AM

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