Closed Thread
Results 1 to 8 of 8

INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

  1. #1
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Question INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Hi All,
    I am struggling to adapt my working INDEX/MATCH that is working on 3 criteria (1 Vertical + 2 Horizontal).
    Please Login or Register  to view this content.
    I have looked all over the forums & google and found a couple of blog & forum posts that seem to address the issue I am having, but when I try and adapt my formula, I get #ref or #value errors.
    My data is arranged in a table with 2 headings on the X axis & 2 on the Y.
    excel snip.PNG

    This is what I have:
    Please Login or Register  to view this content.
    Any ideas or advice on how to address this, or a better way of achieving the same thing would be great!

    Thanks.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Please post a small sample file showing expected outcome(s).

  3. #3
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Hi John, Thanks for the reply, here is some sample data. I now have a formula that isn't throwing an error, but is giving the wrong answer. Formula is found in cell "AE5".
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Try

    =INDEX(C$5:Z10,MATCH(1,(AE4=A5:A10)*(AD4=B5:B10),0),MATCH(1,(AC4=C4:Z4)*(AB4=C3:Z3),0))

    Answer 228 (?)

    You had the row and column MATCH the wrong way round (for the INDEX) and you needed the AND (*) condition on one of the MATCHes.

  5. #5
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Thank you! Yes that is the correct answer. Thank you for your help. I seem to have been frustratingly close on a few of my previous attempts, but couldn't get the syntax correct. Thank you very much. ( I can stop banging my head against the wall )

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Thank you for the feedback.

  7. #7
    Registered User
    Join Date
    08-07-2020
    Location
    Florida, USA
    MS-Off Ver
    19
    Posts
    1

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Hi there!

    I was using this thread to apply some formulas. I have a similar situation with two horizontal lookups and one vertical lookup. The only major issue is that I need a formula which I can drag across and down. The sample file provided can be used to explain my problem, except only one column. I know this post is quite old, but I am hoping someone would assist me with this problem. I'm sure there is a way to figure this out!

    Looking forward to hearing back from you!

    Thank you,
    Nidhi

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Transposing data from vertical to horizontal (INDEX/MATCH)
    By johnmitch38 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2015, 07:05 PM
  2. [SOLVED] Converting dataset from vertical to horizontal based on fixed criteria
    By LJH2410 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2014, 10:56 AM
  3. Index Match with Horizontal and Vertical Matches
    By KMCurtis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2014, 04:18 PM
  4. Sum based on horizontal and vertical match
    By zeez36 in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 04-04-2013, 05:43 AM
  5. [SOLVED] Sum based on horizontal and vertical match
    By Prcntrygrl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2013, 01:41 PM
  6. [SOLVED] Dynamic Formula based on two vertical criteria and one horizontal
    By GoGators in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 04:41 PM
  7. [SOLVED] Using Index & Match to search 2 vertical columns and return data to a vertical set
    By QuietLife in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2013, 09:59 AM

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