+ Reply to Thread
Results 1 to 3 of 3

Search for rows in one sheet and copy into another sheet based on customer id

  1. #1
    Registered User
    Join Date
    10-19-2007
    Posts
    1

    Search for rows in one sheet and copy into another sheet based on customer id

    Hi,

    I need someone to help with excel sheets and I do not have much experience with it. I am guessing there is a solution for this.

    I have two workbooks: 1. Workbook 1 and 2. Workbook 2

    Both of these workbooks contain the same no of EXCEL sheets which is
    1. Customer sheet, 2. Address sheet 3. Email sheet, 4. Phone sheet

    Workbook 1: Before Process contains data before a certain cleansing process was run
    Workbook 2: After Process contains data after a certain cleansing process was run

    All of the worksheets in both the workbooks contain a common field in cloumn 1 which is the customer id.

    Hence Customer sheet contains:
    Customer id First Name Last Name Suffix Age
    1 John Doe Jr 23
    2 Jane Smith 32

    The Address sheet contains:
    Customer id Addl1 City State Zip Type
    1 123Main LA CA XXXX Home
    1 456Bea LA CA XXXX Work
    2 789abc LA CA XXXX Billing
    2 234xyz LA CA XXXX Work

    Etc. The same data is present in the sheets in Workbook2 but just cleaned out.

    I have a worksheet# 3 which I want to copy with the rows from the two workbooks which match
    the provided customer id. Customer id is selected manually and put into workbook3

    Hence,
    I want to populate the third workbook based on a customer id which is selected manually.
    The customer id is present in in all the sheets within the workbooks 1& 2 as column 1

    Can someone provide a macros/way as to be able to
    1. Search two workbooks based on customer id
    2. Populate all the matched rows into workbook3

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474
    Hi,
    maybe zip a copy of the workbook and attach it to your post, with that example supply the desired result you want, this will help us understand the question better

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    As Dave says an example would be useful, you might be able to use VLOOKUP
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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