forumtest.xlsx
If you can figure out how to do this with formulas I'll be fully satisfied. I can't though.
I have a workbook with two sheets. Sheet1 contains a set of information about orders. Sheet2 has a different set of info about orders. What I'm looking to do is run a macro that will check to see if the order numbers are the same and if they are copy the data from Sheet1 and put it in the same row but next to the line that has the same order in Sheet2.
Sheet1 has the order numbers in column E whereas Sheet2 has the order numbers in column B. An additional complication is that the order numbers in the sheets are different formats. They are 123456 in Sheet1 but might be AA123456 or B123456 or 123456 in Sheet2.
My current thoughts were running a loop, for every row in Sheet1, setting the value of Erow to ordernumber, copying the row, moving to Sheet2, searching for ordernumber. If it's found, paste the values starting in column O of Sheet2 in the same row the value is found. But I can't make that work. I also don't know if there is an easier way to do this. Any ideas? Thanks
Bookmarks