Hello all,
I am working on a macro to compare two separate workbooks for accuracy on our reporting. I previously was using a line formula as shown here after merging them onto the same workbook but separate sheets:
=IFERROR(INDEX('Data1'!$D:$D,MATCH($A178,'Data1'!$C:$C,0)),"")
=IFERROR(INDEX('Data2'!$D:$D,MATCH($A178,'Data2'!$N:$N,0)),"")
I then just drag the formula down to search each line item against the secondary database. It has been working this way but I started messing with the VBA and think I can get a much cleaner/simpler result. Also one that can be easily transferred to other employees as an add-on
Simply put, I have a two columns (A, B). Column A holds a special code associated with a box letter sequence in column B.
I uploaded a spreadsheet with this to help you understand.
How can I:
search using the contents of cell A2 against Sheet2 column A
if found then copy adjacent cell (column B) on Sheet2 to Sheet1 column C?
if not found then write "not found"
repeat using contents of cell A3, then A4, etc until end.
I really don't have the experience or knowledge to even get started on this and my Goggle searches have yielded nothing positive.
Bookmarks