+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP based on chunks of 10 rows

  1. #1
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    154

    VLOOKUP based on chunks of 10 rows

    Okay this one is a difficult one. I'm not sure if it can be done. Basically Sheet2 is a report based on access. It goes by row, so the first 10 rows belong to 'Smith, Jim'. These rows contain data that I want to put into the 'Main' tab, under each particular person.
    So, for Smith, Jim on the Main tab, I want to find the following:
    Name # - this correlates with the information on Sheet2, cell C2.
    Company - this correlates with the information on Sheet2, cell E2.
    Card # - this correlates with the information on Sheet2, cell D3.
    StartDate - this correlates with the information on Sheet2, cell D5.
    StopDate - this correlates with the information on Sheet2, cell F5.

    I've tried Vlookups, but they don't really work. I've tried just inputting equal signs. Neither work. I'm not sure if anything WILL work - I'm out of ideas.

    Does anyone have any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: VLOOKUP based on chunks of 10 rows

    If I am correctly catch syntax/pattern of data on sheet2.
    Locate row with name and grab data from other column (with shifted row number), like this for C3:
    Please Login or Register  to view this content.
    if needed (like dates) you have to shift a bit location to grab proper cell, like (for G3):
    Please Login or Register  to view this content.
    Check attached file.
    Attached Files Attached Files
    Last edited by KOKOSEK; 05-20-2019 at 09:51 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    154

    Re: VLOOKUP based on chunks of 10 rows

    That totally works, but I'm not sure I understand why. What does the +1 (or +4) do? I think you say that it shifts it - so would this mean, for +1 it shifts it one row (down)? Would +4 shift it 4 rows down?

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: VLOOKUP based on chunks of 10 rows

    Quote Originally Posted by Phlegon_of_Tralles View Post
    I think you say that it shifts it - so would this mean, for +1 it shifts it one row (down)? Would +4 shift it 4 rows down?
    Exactly. Function MATCH locates row where required name is but some of data is row below (then shift +1) or 2 below (then +2) etc.

  5. #5
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    154

    Re: VLOOKUP based on chunks of 10 rows

    Thank you!

+ 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. Moving Rows to Another Sheet Based on VLOOKUP Value
    By munshi1111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2017, 12:57 AM
  2. Vlookup based on matching multiple rows
    By PCaldwel in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-03-2016, 03:16 PM
  3. [SOLVED] offset rows by 1, take chunks of thirteen columns
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2016, 08:27 PM
  4. [SOLVED] Getting rows to return based on points (VLOOKUP)?
    By El_Jagang in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2015, 04:42 PM
  5. Vlookup with multiple rows based on criteria
    By MarianneBal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-22-2013, 06:27 AM
  6. [SOLVED] Splitting a 24k Rows Worksheet into Smaller Chunks
    By woodsonline in forum Excel General
    Replies: 10
    Last Post: 10-18-2012, 06:02 PM
  7. Import rows of data based on vlookup value
    By excelhelpplease in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2008, 06:33 PM

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.6.0 RC 1