+ Reply to Thread
Results 1 to 6 of 6

INDEX, SMALL, COUNT, MATCH, I Dont Know.....

  1. #1
    Registered User
    Join Date
    07-24-2020
    Location
    Tacoma, Washinton
    MS-Off Ver
    Office 365
    Posts
    3

    Angry INDEX, SMALL, COUNT, MATCH, I Dont Know.....

    Hello Community,

    I am trying to figure out how to get Excel to extract a row from one sheet and post it to another based on criteria that (contains) the matching list from a third tab.

    I know some formulas, but i am really a novice at this. I tried to research and work my own formula and came across a very interesting example but it is not working.

    the Formula that i am working with, or at least trying to is this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Main tab is 'ALL', Tab that contains the criteria is 'Clinic List' and i want to extract to 'MHC' the same headers exist on all tabs as ROW 1.

    I had the idea to have excel help me to filter down to different Sheets based on criteria, but the formula is driving me up a wall.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: INDEX, SMALL, COUNT, MATCH, I Dont Know.....

    None of the lines in column E "ALL" tab match column L in "CLINIC LIST" tab....

  3. #3
    Registered User
    Join Date
    07-24-2020
    Location
    Tacoma, Washinton
    MS-Off Ver
    Office 365
    Posts
    3

    Re: INDEX, SMALL, COUNT, MATCH, I Dont Know.....

    Quote Originally Posted by belinda200 View Post
    None of the lines in column E "ALL" tab match column L in "CLINIC LIST" tab....
    We have a program that spits out a sequence number PRIOR to the actual text that is listed in Column L in the "Clinic List". i was hopeful that i could do like a "*"& before and &"*" after to allow for the variance. i guess i forgot to add that.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: INDEX, SMALL, COUNT, MATCH, I Dont Know.....

    Hi,

    How about adding another columnin in "ALL" sheet to lose the sequence number PRIOR to the actual text with the following:
    =MID(E2,14,100)

    Then in "MCH" tab I listed all the instances where the text in "CLINIC" tab (column L) is found in "ALL" tab
    If it is found more than once - then the text will repeat itself the number of intances found.

    This is the formula in column A ,"MCH" tab:
    =IFERROR(INDEX('Clinic List'!$L$1:$L$1800,AGGREGATE(15,6,MATCH(ALL!$H$2:$H$200,'Clinic List'!L:L,0),ROWS($F$1:F1))),"")

    Column B is extracting the names with below formula:
    =INDEX(ALL!$A$1:$A$200,AGGREGATE(15,6,(ROW(ALL!$A$1:$A$200))/(MHC!A2=ALL!$H$1:$H$200),COUNTIF(MHC!$A$2:A2,MHC!A2)))

    The rest - column C and forwards is a simple vlookup, you can drag it down and across:
    =VLOOKUP($B2,ALL!$A:$G,COLUMN(B1),0)


    Hope this is what you are looking for, I'm sure it can simplified but that's what I came up with.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-24-2020
    Location
    Tacoma, Washinton
    MS-Off Ver
    Office 365
    Posts
    3

    Re: INDEX, SMALL, COUNT, MATCH, I Dont Know.....

    Quote Originally Posted by belinda200 View Post
    Hi,

    How about adding another columnin in "ALL" sheet to lose the sequence number PRIOR to the actual text with the following:
    =MID(E2,14,100)

    Then in "MCH" tab I listed all the instances where the text in "CLINIC" tab (column L) is found in "ALL" tab
    If it is found more than once - then the text will repeat itself the number of intances found.

    This is the formula in column A ,"MCH" tab:
    =IFERROR(INDEX('Clinic List'!$L$1:$L$1800,AGGREGATE(15,6,MATCH(ALL!$H$2:$H$200,'Clinic List'!L:L,0),ROWS($F$1:F1))),"")

    Column B is extracting the names with below formula:
    =INDEX(ALL!$A$1:$A$200,AGGREGATE(15,6,(ROW(ALL!$A$1:$A$200))/(MHC!A2=ALL!$H$1:$H$200),COUNTIF(MHC!$A$2:A2,MHC!A2)))

    The rest - column C and forwards is a simple vlookup, you can drag it down and across:
    =VLOOKUP($B2,ALL!$A:$G,COLUMN(B1),0)


    Hope this is what you are looking for, I'm sure it can simplified but that's what I came up with.
    THIS IS AWESOME! so much more complicated then what I was thinking. Thank you for making sense of this. I can duplicate on all the other tabs to make it match each section as well. I really appreciate you doing all this work for me.

    I just put live data into the "ALL" tab and it came up with a different list on the "MHC" tab in column A then the rest of the columns. I will simply hide column A and it works perfect and i can see exactly what I need to see.

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: INDEX, SMALL, COUNT, MATCH, I Dont Know.....

    Hello DocBlack4444 ,
    Glad this helps and works for you. It did took me a while to solve this, it was not a kind of a straight forward answer to figure that out, so thanks for your feedback : )

+ 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] Tring to use Index Match but dont know how to solve the last part
    By frapi060 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-12-2018, 12:38 PM
  2. [SOLVED] Index Match Match for a small table lookup
    By slvrbktom in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-05-2018, 06:08 PM
  3. [SOLVED] Combining INDEX/MATCH with several criteria and INDEX/SMALL
    By Dresas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2018, 11:02 AM
  4. Index Match dont work well
    By Immortal2014 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2016, 07:43 AM
  5. Replies: 8
    Last Post: 07-02-2013, 08:06 PM
  6. Index and Match: I dont HAVE an error message, I WANT one.
    By dasafacjack in forum Excel General
    Replies: 6
    Last Post: 12-10-2011, 03:51 PM
  7. Index Match question........dont understand this result
    By welchs101 in forum Excel General
    Replies: 3
    Last Post: 11-17-2011, 10:52 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