Results 1 to 8 of 8

Searching one sheet and copying row to another sheet

Threaded View

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    52

    Searching one sheet and copying row to another sheet

    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
    Last edited by gryffin13; 07-13-2012 at 09:53 AM. Reason: Corrected thread title to topic only

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1