+ Reply to Thread
Results 1 to 2 of 2

Paste Data from Sheet one to other sheets based on date criteria

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    51

    Paste Data from Sheet one to other sheets based on date criteria

    I am working on a project to display some metric data via a piviot table. I obtain my data via a connection to an oracle database. It pulls in a lot of information and I want to split it up to make it a little easier to work with based on the data in column S. I would like a macro that when the workbook is refreshed the following will hapen:

    1) Copy all entires where colum S = the current month and paste the data on sheet 2
    2) Copy all entries where column S =the previous month and paste on Sheet 4
    3) copy all entries where colum S = the last 12 months from current date


    I have attached a sample of what my data kinda looks like. All of the inforation in my actual sheet is sensitve so I can not post that one. Please excuse all typos as i threw it together just for a sample. The date column in hte example is Column Q, but My actual data set is Column S.




    Sample Data.xlsx.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Paste Data from Sheet one to other sheets based on date criteria

    Probably not what your asking, but see if this could be of any help for you.

    With an pivot table.

    I removed the data (from row 100 and further), otherwise the file whas to big to post.

    Please reply your comments.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  2. Copy and paste data to separate sheets based on mutiple criteria again
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-13-2011, 02:23 PM
  3. Copy and paste data to separate sheets based on mutiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2011, 03:48 PM
  4. MS Excel 2003 macro to copy paste data in different sheets based on certain criteria
    By bhaktprahlad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2010, 06:17 AM
  5. copy cells from sheets based on date, paste to another sheet
    By upod in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-27-2009, 01:29 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