+ Reply to Thread
Results 1 to 7 of 7

Elementary Index Match Issue

  1. #1
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Elementary Index Match Issue

    I've been away from Excel for a few months and cannot make my Index match work! So frustrating.

    See attached.

    In the table in Row 19, I'm trying to get it to do the following:
    • Cell B22 should match the week number in B21 with the week number in B4, match the Market in A22 with the markets in columin A4:A13, and return the value listed in B5.
    • Cell C22 should match the week number in B21 with the week number in J4, match the Market in A22 with the markets in column I4:I8 and return the value listed in J5.

    See attached
    Attached Files Attached Files
    Last edited by morerockin; 01-09-2018 at 03:27 PM.

  2. #2
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Elementary Index Match Issue

    Quote Originally Posted by morerockin View Post
    • Cell A22 should match the week number in B21 with the week number in J4, match the Market in A22 with the markets in column I4:I8 and return the value listed in J5.
    I am guessing you mean C22. It looks like you have not set your lookup arrays to absolute ranges, meaning as you fill them down A4:A13 and I4:I8 adjust relative to the position of your formula. Set them absolute and that should start to address your issue if not fix it.

    EDIT: In addition it looks like your formulas have some redundancy in them.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Not sure I see the purpose for the concatenate in the above. Your index is referencing a single column, and the MATCH for your INDEX row only needs to match A22 to A4:A12. If you want to also match the week then you need to use match for the column arg too and have it look across the headers whilst having INDEX's range be something like B5:F12.

    The other formula is basically the same issue.
    Last edited by Zer0Cool; 01-09-2018 at 03:30 PM.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Elementary Index Match Issue

    Hi

    B22 & D22 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Similar for the Actuals.


    However if this is the start of any serious analysis I'd advose you to rethink your layout. Personally I'd create a 2 dimensional database with column fields for

    1. Date
    2. Market
    3. Forecast / Actual
    4. Value

    Then use a Pivot Table to summarise your data by week - use the Grouping option in the Pivot Table. Not only will this be a lot more flexible but it's also easier to maintain and add to.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Elementary Index Match Issue

    Quote Originally Posted by Richard Buttrey View Post
    Hi

    B22 & D22 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Similar for the Actuals.


    However if this is the start of any serious analysis I'd advose you to rethink your layout. Personally I'd create a 2 dimensional database with column fields for

    1. Date
    2. Market
    3. Forecast / Actual
    4. Value

    Then use a Pivot Table to summarise your data by week - use the Grouping option in the Pivot Table. Not only will this be a lot more flexible but it's also easier to maintain and add to.
    I misguided you on accident because of bad instructions. Pleas see revised:

    •Cell C22 should match the week number in B21 with the week number in J4, match the Market in A22 with the markets in column I4:I8 and return the value listed in J5

  5. #5
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Elementary Index Match Issue

    I try this and it doesn't work:

    =INDEX($B$5:$F$13,MATCH(A22&B21,A4:A13&B4:B13,0))

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Elementary Index Match Issue

    Quote Originally Posted by morerockin View Post
    I misguided you on accident because of bad instructions. Pleas see revised:

    •Cell C22 should match the week number in B21 with the week number in J4, match the Market in A22 with the markets in column I4:I8 and return the value listed in J5
    That's why I said "Similar for the Actuals."

    I intended you to note and understand how the B22 formula worked and apply it with modifications to the C22 cell. i.e. for your own long term benefit I'm supplying the fishing rod not the fish.

  7. #7
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Elementary Index Match Issue

    Quote Originally Posted by Richard Buttrey View Post
    That's why I said "Similar for the Actuals."

    I intended you to note and understand how the B22 formula worked and apply it with modifications to the C22 cell. i.e. for your own long term benefit I'm supplying the fishing rod not the fish.
    Worked!! Thanks!!

+ 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. Index Match Issue
    By jharvey87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2016, 12:26 PM
  2. [SOLVED] Issue with Index Match
    By tethlah in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-22-2015, 03:17 PM
  3. Index, match issue
    By hpatel517 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 11:25 AM
  4. Issue: Only returning 1st match on Index/Match
    By tbr2891 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2014, 11:54 AM
  5. [SOLVED] Match Issue - Consolidate Columns of Data With Match/Index/etc?
    By excelsior123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 05:14 PM
  6. index match issue
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 07-13-2012, 11:02 PM
  7. Match index issue?
    By Mparekh in forum Excel General
    Replies: 12
    Last Post: 03-17-2009, 09:56 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