+ Reply to Thread
Results 1 to 5 of 5

Coping data between sheets based on conditions

  1. #1
    Registered User
    Join Date
    09-27-2009
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    23

    Coping data between sheets based on conditions

    Here's the setup:

    - Sheet 2 has two columns (A&B)
    - Column A has the employee name
    - Column B has was shift the employee works (Day, Twi, Mid, Sun)

    I would like a macro to do the following:

    In Sheet 1, I want a macro to populate column A with the names of all employees who work the Day sort based off the data in Sheet 2.

    Any help would be appreciated. Thanks!
    Attached Files Attached Files
    Last edited by Phosphonothioic; 02-23-2011 at 10:58 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Coping data between sheets based on conditions

    please attach sample workbook showing original data and result you need to obtain

  3. #3
    Registered User
    Join Date
    09-27-2009
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Coping data between sheets based on conditions

    Quote Originally Posted by watersev View Post
    please attach sample workbook showing original data and result you need to obtain
    I've put together a quick and simple sample for you. Notice in sheet two some of the employees have a shift designated in column D.

    If they work the Day sort, I want the macro to pull their names to sheet 1.

    Thanks!

  4. #4
    Registered User
    Join Date
    09-27-2009
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Coping data between sheets based on conditions

    Can anyone help me with this? Blast my inexperience with VBA.

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Coping data between sheets based on conditions

    check attachment, run code "test"
    Attached Files Attached Files

+ 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