Originally Posted by
NickyC
Hi
assuming your headings are in cells A1:E1 and your data in cells A2:E5 try this formula
Hi Nicky,
Many thanks for the quick reply. The code appears to work in my simplified workbook but in the actual workbook I only get "#N/A" and a few "#VALUE!" results, unfortunately no ID's are copied across. I modified the code slightly to the following:
The reasons being: Cell E2 is ID2, C2 is Text1 and the range is fairly substantial. I'm assuming my error is due to the complexity of the text under Text1/Text2, maybe there are minor differences...I shall investigate further. Is there perhaps a way to use approximate matches such as in the VLOOKUP function?
EDIT: I've noticed that in Text2 the text is introduced by a number, so going back to the example it would read "1.Aberdeen" (no spaces between . and A), is there a way around this?
Thanks again for your help.
Bookmarks