I have been getting spreadsheets from an OCR program and attempting to clean it up. One issue that I have is that I have two columns, one with an SSN and the other with a name, and sometimes the name is either spelled differently or misread by the OCR. I am looking to get the "max" value for the name (by length), but a pivot table only works for numbers. I do not want to use a formula, but rather a VBA approach so that I can select the cells (e.g. A2:B9) and values in B2:B9 automatically show the max name value for each name.
See attached spreadsheet. Any ideas? Thanks.
Bookmarks