+ Reply to Thread
Results 1 to 21 of 21

INDEX and MATCH in defined range from another INDEX and MATCH

  1. #1
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    INDEX and MATCH in defined range from another INDEX and MATCH

    Hi all,
    first post here and right into the issue...

    I have an excel table of helpdesk tickets, usually there are 4 rows per one ticket, but sometimes 7. I need to extract survey data, which are not in order, using INDEX and MATCH. Survey questions are in column I, answers are in J and numeric value in L. I figured the best approach would be to first define range for each searched ticket - so I used "=MATCH(M2;B:B;1)" and "=MATCH(M2;B:B;0)"
    M2 represents the searched ticket number, B column has all the tickets.

    This will print 166 and 169 respectively, which is good, but now I need to find a survey question within that range and read its numeric value. But I'm not sure how to parse the 166 and 169 to INDEX that follows, in form of B166:B169 (this doesn't work B&(MATCH(M2;B:B;1)):B&(MATCH(M2;B:B;0))

    Any help is appreciated.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Thanks for the response, uploaded sample sheet.
    Sheet form is the target form I need to do and Data is the source of data (self explanatory, hopefully)

    What I tried is to define start and end row for each ticket and MATCH within that range. Needless to say I wasn't very successful.
    Attached Files Attached Files
    Last edited by andy479; 09-20-2019 at 04:44 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Lots of stuff, but no explanation.

    What do you expect to see?
    Where do you expect to see it?
    Why?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Row 3 in sheet "Form" should have all the descriptions, with examples following below.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Mmm. How should the ticket numbers in column A of Form get there? By formulae (criteria???) or by manual entry, or what??

  7. #7
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    By manual entry, after being taken from column B, "Data", and sorted for duplicates.
    Or if the duplicate search could be automated, that'd be great, but it's just one button so in both cases it's fine.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    I think it's clear now. Roughly how many rows of data do you have? Might be do-able by formula to get the uniques.

  9. #9
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    2000-3000, in the last report there was 2200 I think.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Mostly formulae are variants of this:
    =IFERROR(INDEX(Data!J$2:J$200,MATCH(1,INDEX((Data!$B$2:$B$200=$A4)*(Data!$I$2:$I$200=$A$19),0),0)),"")

    see sheet for details. Different shading = different formulae.
    Attached Files Attached Files

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    2000 might be a bit too many for a formula to handle... A lot of resource would be used.

  12. #12
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Wow, I was expecting a hint or advice, not a complete solution with color coding. Thanks a bunch! Where's the donate button? :D

    It's a one time calculation, when it's done we can repaste the formulas as values for better performance, or set manual recalc.

    I'll try to understand what's going on over the weekend..
    Last edited by andy479; 09-20-2019 at 05:36 AM.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    I deleted a few redundant rows, moved the search terms to another sheet, for clarity, and added a formula in column A to return uniques:
    =IFERROR(INDEX(Data!$B$2:$B$200,MATCH(0,INDEX(COUNTIF($A$1:$A1,Data!$B$2:$B$200),0),0)),"")

    Adjust the ranges to suit.

    I copied all formulae down to the end of your data. I reshaded one column, as it should have had a different colour (different formula to column to its left).

    There's no donate button. I do this 'cos I'm sick in the head.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    BtW, no need to paste values, etc. It's not a volatile formula. It may take some time to grind through 2000 rows. But having done so, it won't need to do so again, unless/until you change the raw data TICs.

  15. #15
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Thanks again! Repo added.
    I found a slight issue - for example with TIC6443488, two Yes should be marked as per Data!I9 and Data!I7, but only one appears.
    Last edited by andy479; 09-20-2019 at 07:21 AM.

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    About to settle down to a pile of seafood. I'll be back in a few hours.

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Are you saying that the same TIC can answer that question more than once? Do any of theblank fieldsprovide any differentiation between the answers?

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Never mind. Figured it out. Back at PC a bit later on...

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Completely revised formula in that section. Check it over & let me know if there are still any problems...
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    09-20-2019
    Location
    Poland
    MS-Off Ver
    O365
    Posts
    8

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    Hi Glenn,
    sorry, I was out of town without internet.

    Yes, this is exactly what I needed

    Thanks again

  21. #21
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: INDEX and MATCH in defined range from another INDEX and MATCH

    You're welcome!

+ 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 - Dynamic Index Range with Hlookup
    By WassimJMP in forum Excel General
    Replies: 3
    Last Post: 02-16-2016, 12:24 PM
  2. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  5. [SOLVED] INDEX MATCH MATCH gives N/A without row numbers defined
    By cbearl78 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 05:18 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. [SOLVED] Defined Name + Index Match
    By ricky2k2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2012, 10:47 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