+ Reply to Thread
Results 1 to 8 of 8

Offset based on Match x 2 - Help

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Offset based on Match x 2 - Help

    I have attached a very simple spreadsheet to demonstrate what I'm trying to achieve. I'll explain it in screenshots so it's clear:

    1.jpg

    2.jpg

    3.jpg

    The problem I have is my formula only pulls up the match for the month and not the week i.e. no matter if I choose week 35 or 36, it will always display it for week 36 as the formula currently only says match the month. I don't know how to ask it to match both the month and week.

    Please Login or Register  to view this content.
    4.jpg

    So what I would like it to do is the following:

    5.jpg

    My current formula is not doing this, it is only matching Sheet 1 B3 with Sheet 2 Row C5 i.e the month. Does any one know how to make it match both criteria i.e. Match Sheet 1 B2 and B3 to Sheet 2 Row C4 and C5?

    I have attached the spreadsheet so you can see what I'm trying to do, thanks guys!

  2. #2
    Registered User
    Join Date
    05-10-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Offset based on Match x 2 - Help

    File attached.

    Help.xlsx

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Offset based on Match x 2 - Help

    Odd data layout..you might want to consider refining that

    OFFSET function is volatile, try avoiding it

    In any case, use this array formula
    In C5

    =INDEX(Sheet2!$D5:$M5,MATCH($B$2&$B$3,Sheet2!$C$4:$L$4&Sheet2!$C$5:$L$5,0))

    Confirm with Ctrl+Shift+Enter and not just Enter
    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    05-10-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Offset based on Match x 2 - Help

    Thanks Ace! I will take in to consideration your suggestion about the layout. But thank you for the solution, appreciate it!

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Offset based on Match x 2 - Help

    Quote Originally Posted by Ace_XL View Post
    Odd data layout..you might want to consider refining that

    OFFSET function is volatile, try avoiding it

    Copy down
    Really not sure which is the worst! A volatile function OR an ARRAY formula.

    A different sheet lay out(as ACE_XL suggested) for using "normal" functions would be the best idea.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Registered User
    Join Date
    05-10-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Offset based on Match x 2 - Help

    Hey guys, any chance you know how I can get it to copy the second column too? I've explained it in the screenshot below. I have tried to manipulate the formula given by Ace but no idea how to do it...?

    For Ace.jpg

    Current formula as given by Ace: {=INDEX(Sheet2!$D5:$M5,MATCH($B$2&$B$3,Sheet2!$C$4:$L$4&Sheet2!$C$5:$L$5,0))}

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Offset based on Match x 2 - Help

    Use..

    {=INDEX(Sheet2!$E5:$N5,MATCH($B$2&$B$3,Sheet2!$C$4:$L$4&Sheet2!$C$5:$L$5,0))}

  8. #8
    Registered User
    Join Date
    05-10-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Offset based on Match x 2 - Help

    Thanks Ace! I should have figured that out but my head started hurting Thanks again, I appreciate it!

+ 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] Dynamic Name Range using Offset&Match with Match based off a different column
    By mdlpjr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 06:33 PM
  2. using offset function to create dynamic range based on a match search
    By freddiethomas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2013, 05:34 AM
  3. using offset function to create dynamic range based on a match search
    By freddiethomas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2013, 04:14 AM
  4. Headline data based on table (Offset and Match)
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 12-01-2011, 04:57 AM
  5. Double OFFSET based on MATCH
    By John Bates in forum Excel General
    Replies: 9
    Last Post: 06-02-2010, 09: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