+ Reply to Thread
Results 1 to 6 of 6

Index Match to match values separated by comma from a list, with each match reporting

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    Milwaukee, WI
    MS-Off Ver
    2013
    Posts
    28

    Index Match to match values separated by comma from a list, with each match reporting

    Index Match to match values separated by comma from a list, with each match reporting a separate value within one cell. See below. Thanks.

    Reference cell = H10.32, J01.90, H65.199
    Reports = left conjunctivitis, acute sinusitis, non suppurative OM

    Current formula only returns one value or "N/A"

    =INDEX('ICD-10'!E3:E440,MATCH(Table1[[#This Row],[ICD-10]],'ICD-10'!D3:D440,0))

  2. #2
    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
    43,969

    Re: Index Match to match values separated by comma from a list, with each match reporting

    This not easy to follow...

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

  3. #3
    Registered User
    Join Date
    02-01-2016
    Location
    Milwaukee, WI
    MS-Off Ver
    2013
    Posts
    28

    Re: Index Match to match values separated by comma from a list, with each match reporting

    See attachment.
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,685

    Re: Index Match to match values separated by comma from a list, with each match reporting

    As some of your descriptions are quite long, would you like each symptom to appear on a new line?

    Pete

  5. #5
    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
    43,969

    Re: Index Match to match values separated by comma from a list, with each match reporting

    A bit of a monster, but try this (set up for 3 codes at present):

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


    I forgot to add: you need to enable text wrapping on that column, too.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 02-04-2017 at 09:37 PM.

  6. #6
    Registered User
    Join Date
    02-01-2016
    Location
    Milwaukee, WI
    MS-Off Ver
    2013
    Posts
    28

    Re: Index Match to match values separated by comma from a list, with each match reporting

    Is there any chance you could make it stop after not identifying a ";"? I also added an additional line. Otherwise it works like a charm!

    =IFERROR(INDEX('Valid ICD-10 DX Codes 2017'!$B$2:$B$68416,MATCH(TRIM(MID(SUBSTITUTE(";"&$O24,";",REPT(" ",125)),125*COLUMNS($A:A),125)),'Valid ICD-10 DX Codes 2017'!$A$2:$A$68416,0)),)&CHAR(10)&

    IFERROR(INDEX('Valid ICD-10 DX Codes 2017'!$B$2:$B$68416,MATCH(TRIM(MID(SUBSTITUTE(";"&$O24,";",REPT(" ",125)),125*COLUMNS($A:B),125)),'Valid ICD-10 DX Codes 2017'!$A$2:$A$68416,0)),)&CHAR(10)&

    IFERROR(INDEX('Valid ICD-10 DX Codes 2017'!$B$2:$B$68416,MATCH(TRIM(MID(SUBSTITUTE(";"&$O24,";",REPT(" ",125)),125*COLUMNS($A:C),125)),'Valid ICD-10 DX Codes 2017'!$A$2:$A$68416,0)),)&CHAR(10)&

    IFERROR(INDEX('Valid ICD-10 DX Codes 2017'!$B$2:$B$68416,MATCH(TRIM(MID(SUBSTITUTE(";"&$O24,";",REPT(" ",125)),125*COLUMNS($A:D),125)),'Valid ICD-10 DX Codes 2017'!$A$2:$A$68416,0)),)

+ 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] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. INDEX & MATCH multiple rows to return comma separated cell
    By sifuchi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2015, 04:36 PM
  4. Match a Value from a single-cell, comma separated list
    By secondchild12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-24-2014, 06:16 PM
  5. Replies: 3
    Last Post: 05-19-2014, 02:01 PM
  6. [SOLVED] Macro to match values in cells separated by semicolon and comma
    By Ale84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 11:00 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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