Originally Posted by
belinda200
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.
Bookmarks