+ Reply to Thread
Results 1 to 5 of 5

Copy and paste multiple columns with specific date to another worksheet

  1. #1
    Registered User
    Join Date
    10-25-2019
    Location
    Greensburg, PA
    MS-Off Ver
    Office 365 Business
    Posts
    2

    Copy and paste multiple columns with specific date to another worksheet

    Hello All!

    I'm fairly new to Excel VBA and Macro recording but have made giant strides in my project.
    If someone could help me with my next task, I'd be very close to complete! Whoo hoo

    Thank you in advance!

    Every month I get meter readings from a job site. The meter records continuously, every 15 minutes, so ideally there are 96 recordings PER DAY. And there are 6 additional data points. 7 columns total, A:G.

    I have a macro set up to automatically generate a worksheet for every day of the month.

    What I would like to be able to do is have a macro that searches the main worksheet (with ALL of the data points) and copies all 7 columns that have a 10/1/2019 and pastes it in the worksheet titled 10/1/2019. And on and on...

    DATE is in column A.

    Is this possible??

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    Yes !

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Copy and paste multiple columns with specific date to another worksheet

    Quote Originally Posted by manebobbymo View Post
    What I would like to be able to do is have a macro that searches the main worksheet (with ALL of the data points) and copies all 7 columns that have a 10/1/2019 and pastes it in the worksheet titled 10/1/2019. And on and on...
    Questions...

    1) What is the name of your "main worksheet"?

    2) What row does your meter readings start on? In other words, are there header rows to skip over?

    3) What is the actual name of the worksheet titled 10/1/2019 (that can't be it because sheet names cannot have slashes in them)?

    4) You said "so ideally there are 96 recordings PER DAY"... does that mean some days could have less (or more) than 96 recordings?

  4. #4
    Registered User
    Join Date
    10-25-2019
    Location
    Greensburg, PA
    MS-Off Ver
    Office 365 Business
    Posts
    2

    Re: Copy and paste multiple columns with specific date to another worksheet

    1. Name of main worksheet is just the month for the data. So "September", "October" etc.
    2. The data does not initially include headers. I add them in. So data starts at A1:G1.
    3. My mistake, worksheets are titled 10-01-2019, 10-02-2019 etc.
    4. 96 recordings per day.

  5. #5
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Copy and paste multiple columns with specific date to another worksheet

    I think this macro will do what you want...
    Please Login or Register  to view this content.

+ 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. Replies: 0
    Last Post: 05-14-2019, 03:53 AM
  2. Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet
    By casper3043 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2015, 03:06 PM
  3. Replies: 2
    Last Post: 10-24-2013, 05:23 PM
  4. Open Multiple Files, Copy Worksheet, Paste in to Specific Tab in Original Workbook
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2013, 10:27 AM
  5. Search for specific date range, copy entire row and paste to new worksheet
    By turias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2013, 03:57 PM
  6. Copy several columns and paste into specific column on another worksheet
    By lcy_84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2012, 09:19 AM
  7. Copy / Paste multiple loop results in specific column ranges on one worksheet
    By bfbisso in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2012, 01:11 PM

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