+ Reply to Thread
Results 1 to 8 of 8

Move Sheet Data to New Sheet, Then Search Through It

  1. #1
    Registered User
    Join Date
    01-15-2019
    Location
    Lisle, IL
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Move Sheet Data to New Sheet, Then Search Through It

    We use an Excel workbook to track attendance for workshops that we offer. There are 4 different sheets that contain client data. Each sheet tracks attendance for a different class or workshop, so each sheet asks for different information (column headers are not the same from sheet to sheet).

    The workbook is only for 2 months of events at a time. Currently Jan-Feb workshops show up as list options when selecting what the client is attending, then in February we'll delete the client entries and change the list items to workshops for Mar-Apr.

    The spreadsheet is attached to this post.

    What we would like to do:
    Have all client entries for the past 2 months put into a new sheet in the same workbook so that we can search through and find previous clients. It can be complicated behind the scenes (use VBA), but the interface has to be user friendly because we have some older employees.

    Would love a way to automate the transition of client data from one sheet to the other, but the discrepancy in each sheet's column headers comes into play here.

    After we move the data into the other sheet, what are our options as far as searching goes? Is a pivot table the way to go? We would be searching for names, so a filter could potentially become too much to look through.
    Attached Files Attached Files
    Last edited by ElHarpie; 01-15-2019 at 03:45 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Move Sheet Data to New Sheet, Then Search Through It

    I think that it would be easier to help and test possible solutions if we could work with your actual file which includes any macros you are currently using. Perhaps you could attach a copy of your file? Include a detailed explanation of what you would like to do using a few examples from your data and referring to specific cells, rows, columns and worksheets. If the workbook contains confidential information, you could replace it with generic data.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    01-15-2019
    Location
    Lisle, IL
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Re: Move Sheet Data to New Sheet, Then Search Through It

    I couldn't find any way to attach a file when I created this post. I still don't see an option to do so. I guess I could share some other way and post a link here...
    The workbook has no macros, only some simple formulas and conditioning rules.
    Capture1.PNG
    Capture2.PNG

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Move Sheet Data to New Sheet, Then Search Through It

    To attach a file, click on the "Go Advanced" button at the lower right. Then scroll down a bit and click "Manage Attachments".

  5. #5
    Registered User
    Join Date
    01-15-2019
    Location
    Lisle, IL
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Re: Move Sheet Data to New Sheet, Then Search Through It

    Thank you, Mumps1. I have attached the file to the original post.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Move Sheet Data to New Sheet, Then Search Through It

    Try the attached file. I've unmerged your merged cells. You should avoid using merged cells because they almost always create problems for macros. I have added the session in cell E1 of each sheet and created a new sheet to match that session name. At the end of each 2 month period, you can change E1 to match the next session and add a new sheet named to match the next session. The macro is a Worksheet_Change event which means that it is triggered automatically when a cell in the worksheet is changed. In your case it will be triggered by a change in any cell in column F (Counsellor) in each sheet. This means that you start entering the data in column A and move to column F making sure that column F is the last column populated. When you do that, as soon as you enter a name in column F and exit the cell, that data will automatically be copied to the new sheet. See if this will work for you and let me know. If you want to see the macro, do the following: Hold down the ALT key and press the F11 key. This will open the Visual Basic Editor. In the left hand pane, double click on "ThisWorkbook".
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-15-2019
    Location
    Lisle, IL
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Re: Move Sheet Data to New Sheet, Then Search Through It

    Thank you so much, Mumps1. We opted to go with a filtering search box (found on thespreadsheetguru.com]) for ease of use in searching.
    I'll look at tweaking the VBA code you contributed to append new entries to the Client Search sheet based on attendance.
    Attached Files Attached Files

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Move Sheet Data to New Sheet, Then Search Through It

    Glad it worked out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Move coulumns data of a sheet to diff other columns of other sheet in same workbook
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-03-2013, 09:22 AM
  2. Replies: 2
    Last Post: 05-27-2013, 11:21 PM
  3. Split Data Unique Value From 2 Sheet of A column and Move to 2 Sheet with Splited Values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2013, 04:21 AM
  4. Move entire row of data from Sheet 1 to sheet 2 when completed date is entered.
    By jt7721 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:50 AM
  5. VBA CODE to move rows from one sheet(1) to another sheet(2) based on data in cell
    By fozzieulo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 02:43 PM
  6. [SOLVED] Move rows of data from one sheet to another based on specific values of sheet
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-26-2013, 06:21 AM
  7. Replies: 4
    Last Post: 09-05-2012, 05:57 PM

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