Hi all,
Wish you all a merry Christmas and happy new year.
This time i am seeking your support to find a vba that align cells from 2 excel columns that have similar text, but not exact one. Some background: This happens because 2 different clients call a same document with different name: eg. list of home appliances 1.0 12dec2014 vs home appliances list 12-Dec-14, feedback from client 1jan2019 vs client feedback 1-1-2019. Sometimes the name can be much longer. So column A is how client A named the documents and column B is how client B named the documents. I need the vba to align cell from column A with the most similar cell from column B in order to check if version and date is the same. Sometimes i can have 20 documents, i.e. 20 rows., and in order to check that the documents were assigned the same version i would start with row 1 column A, scroll down column B to find the row which has the name assigned to that file by client B and check the version and date. Then i have to go to cell A2, scroll thru column B to find out which cell has the name of the document and then check if the version/date matches. I imagine this Vba picking up each word from cell A1 (avoid numbers and dates in this analysis as this will be dona manually once the cells are aligned), checking the presence of that word in all of the cell from column B, assigning a score to each cell of column B depending on if the word was found and the length of the word (if there is a match, the longer the word is, the larger should be the score assigned), then the cell from column B that gets the larger score should be sorted to be in the same row as the cell from column A being analyzed. Hope this makes sense.
All the best!
Pablo
Bookmarks