Need macro, not formula. Workbook A. Sheet 1 Column B starting in Row 7 has a variable number of names with spaces between the rows of names. Each name in the cells has been truncated to 11 spaces by a DB3 program.
Workbook B Sheet 4 has those same names in Column A sheet 4 starting in Row 4 that are not truncated.
I need a macro that will make Wkbk A search in Wkbk B for its similar name by matching the first 11 letters of text (including spacing). When it finds a match I want it to copy that from Wkbk B column A (which is the untruncated name) and the offset column by 1 (column B same row). Then I want it to paste it into Wkbk A Column N & O starting in Row 7. This will line up the truncated and untracated names in the same row.
Example:
Wkbk A Name (B7) Wkbk B Name (A4) Output Wkbk A (N7) (O7)
CAPTAIN VON CAPTAIN VON TRAPP CAPTAIN VON TRAPP 2
The names in the two lists don't necessarily coincide chronologically like this example. Must use match.
Workbook B Sheet 4 has those same names in Column A sheet 4 starting in Row 4 that are not truncated.
I need a macro that will make Wkbk A search in Wkbk B for its similar name by matching the first 11 letters of text (including spacing). When it finds a match I want it to copy that from Wkbk B column A (which is the untruncated name) and the offset column by 1 (column B same row). Then I want it to paste it into Wkbk A Column N & O starting in Row 7. This will line up the truncated and untracated names in the same row.
Example:
Wkbk A Name (B7) Wkbk B Name (A4) Output Wkbk A (N7) (O7)
CAPTAIN VON CAPTAIN VON TRAPP CAPTAIN VON TRAPP 2
The names in the two lists don't necessarily coincide chronologically like this example. Must use match.
Last edited: