+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP with OFFSET

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 MS and mac
    Posts
    26

    VLOOKUP with OFFSET

    Hello,

    I have a database of records - each record consists of (say) 10 rows and 10 columns of data - ie not one record per row. The top left hand cell of each record has an identifier.

    I want to look up the identifier and pick the cell that is x columns to the right and y rows down. Is there a way of doing this using the vlookup and offset functions? The vlookup obviously works for x columns to the right but how do I shift this a number of rows down.

    Thanks for your help.

    -- Rick

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: VLOOKUP with OFFSET

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-05-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 MS and mac
    Posts
    26

    Re: VLOOKUP with OFFSET

    Thanks - Ill re-post as a new thread.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: VLOOKUP with OFFSET

    Do not duplicate your post. Just add the file to this thread. Please read our forum rules and pay attention to the item on double posting.

  5. #5
    Registered User
    Join Date
    10-05-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 MS and mac
    Posts
    26

    Re: VLOOKUP with OFFSET

    OK - apologies.

    I have attached an example which hopefully explains what I am trying to do. I understand I could create a new lookup key combining the
    ID and data label but in reality the database is a lot more complicated than this with data in multiple columns.

    I just want to be able to look up the id and then pick the data that is x columns to the right and y rows down.

    Thanks for your help.

    -- Rick
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: VLOOKUP with OFFSET

    Are you required to use the VLOOKUP() function? In this case, I would probably use the MATCH() function to find the ID group of rows, then use the Datan value to determine the row offset. Then put that into an INDEX() function to get the desired result.

    1) Enter "offset" values in G5:I5. 0 in G5, 1 in H5, 2 in I5.
    2) =INDEX($B$4:$D$20,MATCH($F6,$B$6:$B$20,0)+G$5,3)

    Would that be acceptable?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    10-05-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 MS and mac
    Posts
    26

    Re: VLOOKUP with OFFSET

    That's perfect.

    Thanks very much.

    -- Rick

+ 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. [SOLVED] VLookup offset
    By martix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2017, 10:23 PM
  2. offset a vlookup
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 05-04-2015, 07:49 PM
  3. [SOLVED] Vlookup offset
    By Simon.xlsx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2014, 11:16 AM
  4. Vlookup or Offset
    By Smee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2009, 07:13 AM
  5. Trying to Use Vlookup and Offset together
    By bconner in forum Excel General
    Replies: 1
    Last Post: 02-13-2009, 12:02 PM
  6. VLOOKUP and OFFSET
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-06-2006, 09:59 AM
  7. Vlookup is not enough ... can OFFSET be used ?
    By Brian Ferris in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2005, 11:05 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