+ Reply to Thread
Results 1 to 17 of 17

INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single cell

Hybrid View

  1. #1
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single cell

    As you know, using INDEX MATCH MATCH will only return the first result it finds in my range of data (B10:U29)
    I simply want to find a way to adjust my formula so all the occurrence appear in a single cell joined together with a comma

    Hoping someone here might be able to assist and offer up a little advice as to what it is I'm missing here. Thanks in advance
    Attached Files Attached Files

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

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Here is a workaround with a VBA that will give multiple responses. You will need to open the file and look at the VBA
    Attached Files Attached Files
    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
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    thanks don't seem to understand would prefer formulas as that is what l understand and that is what l require.
    Mine is multiple columns not single columns, can't quite follow

  4. #4
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Quote Originally Posted by alansidman View Post
    Here is a workaround with a VBA that will give multiple responses. You will need to open the file and look at the VBA
    thanks Alan

    it worked with your MLOOKUP

    (SOLVED)

  5. #5
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in multiple columns for the outcome to appear in a single cell separated by a coma

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,473

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Does the workbook show what you want?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    I know i have to use INDEX, MATCH and SMALL, ROW functions but how. The workbook by MLOOKUP does not help

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

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Neither does your sample workbook!

    Please post a workbook that shows what you want - mock the results up manually for that data sample. When you have done that and we have a clear picture of what you are after, we can help.

  9. #9
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Thanks AliGW
    have included the attachment
    would like the outcome to be in column X (29-31,31-33) based on the criteria 2 (in red)

  10. #10
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    please see the workbook Attachment 637462

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,473

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Where in the attachment have you shown what you want the outcome to look like?

    If you want the grid output that is already there, what is wrong with your current formula?

    EDIT: Looking at the new attachment that has just appeared, which is identical to the one attached to post #1. This is getting us nowhere.

    You need to add a mock-up of how you want the results to look.
    Last edited by AliGW; 08-16-2019 at 02:24 AM.

  12. #12
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Thanks AliGW,
    My current formula only gives me the 1st occurrence (29-31) in column X10 and not the 2nd occurrence of (31-33) but would the outcome to include (29-31,31-33) based on the criteria X9

  13. #13
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    l have highlighted it in green if that helps Attachment 637463
    thanks in advance

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,473

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Sorry, no, it doesn't help at all. I still have no idea what you are trying to do or how you want it to look.

    This is your last chance to get help from me before I bow out: WHAT DO YOU WANT THE RESULTS TO LOOK LIKE AND WHERE SHOULD THEY GO?

    It's up to you. I'm not going to waste any more of my time on this unless you provide the information I have requested. It's your choice.

  15. #15
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    thanks for your patience.
    this is my formula =IFERROR(INDEX(C10:U10,MATCH($X$9,D10:V10,0)),"") in X10 based on the criteria X9 (2) The result i get is (29-31) which is right but would to have a multiple result shown in a single cell e.g like (i.e. 29-31,31-33 shown in Z10 but can't seem to figure a way out.

    Attachment 637467)

    Most formula l know is based on two columns but l have multiple columns

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,473

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    No, I'm still not 100% clear on what we are aiming for here.

    I'll step aside and hope that someone else can see through the mist. Good luck!

  17. #17
    Registered User
    Join Date
    05-26-2018
    Location
    London,England
    MS-Off Ver
    2016
    Posts
    18

    Re: INDEX MATCH MATCH statement to look up the 1st occurrence, 2nd occurrence in a single

    Thanks I am truly grateful for taking the time to help i really 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. nth occurrence with multiple criteria (index/match)
    By Hlech989 in forum Excel General
    Replies: 3
    Last Post: 03-08-2019, 03:46 AM
  2. Replies: 2
    Last Post: 03-07-2019, 07:29 PM
  3. Index match nth occurrence or just get nth match
    By sdl2 in forum Excel General
    Replies: 10
    Last Post: 05-21-2018, 09:59 AM
  4. Finding Second Occurrence if Index Match Returns -
    By zmster2033 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-22-2016, 02:50 PM
  5. Using index and match to return a value based on earliest occurrence (MONTH)
    By potatoman in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-09-2014, 06:12 AM
  6. Using index and match to return a value based on earliest occurrence (MONTH)
    By potatoman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2014, 06:16 AM
  7. [SOLVED] Index Match row value and nth occurrence of header
    By dm@stams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2013, 05:43 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