Please refer the attached file for example. Expected results are the top 6 values based on the occurrence of the Codes in E coloum for the Matching criteria available in "G1" when checked in coloum D.
Just a thought : is it possible to use wild card match in this approach for code match. Actually in the data i will have a string of 10 to 15 Chr and i will check them for their first 10 digits.
Please find the file.
One more consideration : The actual data will be at least of 150K row. this means using volatile formula are going to kill the file. Please try to refrain.
Really excuse me, I could not got time to work on it. Will update something by tomorrow. Meanwhile can you check your last uploaded file, Names are all same??? Can you also illustrate with output sample for any one name what exactly your output will look like.
Attachment is right. refer coloum F and the results are in G coloum. Just the difference is that in initial version we match the whole string available in F and now we want to match first 10 chr of the string.