+ Reply to Thread
Results 1 to 7 of 7

Combine vlookup or index/match with offset

  1. #1
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Combine vlookup or index/match with offset

    Hello All,

    I'm hoping someone can help me over the line with something - I've used offset before with consistent references, but I now want to find the beginning of my offset by a specific value.

    I attached an example sheet - for each date value in the second table I want to find the corresponding date value in the first table and sum the value next to it backwards 5 days. E.g. for the 25/01/17 I want to sum the values for the 25th back to the 21st.

    I want it this way in case the sum is not always carried out on the 5th day (though I will always want the sum of the previous 5).

    I have read around it and seems the consensus is that a vlookup would be the wrong thing, I've tried a combination of index and match too, but can't get even them to talk to me either.

    Any suggestions welcome.

    Thanks in advance.

    Simon.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine vlookup or index/match with offset

    something like that?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    blue part of formula you can change like you want, e.g: "", "Date is a text", TEXT($D2,"dd/mm/yyy")&" is not available or date is in a text format". etc, it's up to you.
    Last edited by sandy666; 01-30-2017 at 02:02 PM. Reason: 2nd formula added

  3. #3
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Re: Combine vlookup or index/match with offset

    The first one worked perfectly. Took me a while to understand the start point reference for the offset when I put it into my real sheet but I got there. Thanks for your help Sandy.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine vlookup or index/match with offset

    Glad to help

    Thanks for feedback

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine vlookup or index/match with offset

    Btw. have you get how second formula works?

  6. #6
    Registered User
    Join Date
    10-31-2008
    Location
    England
    MS-Off Ver
    MS 2013
    Posts
    42

    Re: Combine vlookup or index/match with offset

    Yes thanks, that worked too,the error message is useful. I need to play around a bit more with the index function but can just about follow it. Somehow had never come across IFNA either, even though I use IFERROR often. Thanks again.
    Last edited by Simon1185; 01-31-2017 at 01:15 PM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine vlookup or index/match with offset

    You are welcome
    IFNA is a little shorter but works with #N/A only, IFERROR is longer but works with more errors.
    I am glad it works to 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. [SOLVED] Can you set array for Vlookup or Index/Match using Offset?
    By inincubus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2014, 12:52 PM
  2. How Do I Combine OFFSET With INDEX MATCH
    By joconnor125 in forum Excel General
    Replies: 8
    Last Post: 06-15-2012, 04:47 AM
  3. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  4. VLOOKUP(), INDEX(), OFFSET() and MATCH() Question
    By Paddon in forum Excel General
    Replies: 2
    Last Post: 11-03-2011, 01:15 PM
  5. Index, Match, Vlookup, or Offset?
    By karstens in forum Excel General
    Replies: 2
    Last Post: 01-24-2011, 12:46 PM
  6. offset,match,index & vlookup
    By mingali in forum Excel General
    Replies: 1
    Last Post: 01-17-2010, 12:31 PM
  7. Replies: 3
    Last Post: 09-23-2009, 06:27 AM
  8. Which to use - if, vlookup, match, index, offset, vba?
    By punsterr in forum Excel General
    Replies: 3
    Last Post: 06-07-2005, 02:42 PM

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