+ Reply to Thread
Results 1 to 9 of 9

copy paste based on a date

  1. #1
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    copy paste based on a date

    Hi,

    Im looking for a marco that looks up a cell and based on that cell it copies data to another cell.

    So in the attached, the looks at the date (column B) and copies the data from column C then, that it looks for the date in row 1 and pasted the copied data below.

    Is there a way to do this?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: copy paste based on a date

    if it's roughly as easy as it looks - all the dates are properly sorted and you're literally just taking strings from rows and moving them to columns you could do it like this:

    Please Login or Register  to view this content.
    where you just need to manipulate Range("C8:C13") and Cells(2,i+4) to map to your actual input range and your desired output range...
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: copy paste based on a date

    Hi thank you for your reply, the dates in column b will also be in a random order. This is what im having trouble with.

    Is there a simple way around this?

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: copy paste based on a date

    how about this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ?
    Last edited by simarui; 03-11-2015 at 10:10 AM.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: copy paste based on a date

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: copy paste based on a date

    Hi John, that works a beaut. Can i ask if i was to have data in say col D or and E next to a name, could i copy that data over as well?

  7. #7
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: copy paste based on a date

    Or a range like c8 to e14

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: copy paste based on a date

    Try:

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: copy paste based on a date

    Quote Originally Posted by namluke View Post
    Or a range like c8 to e14
    Not sure I understand?

+ 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 Paste Based on Date
    By RedMug in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2014, 01:50 PM
  2. [SOLVED] copy data from the last tab (based on the name with date) and paste it into another tab
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-06-2013, 03:33 PM
  3. Copy/Paste based on Date Range
    By smmeader in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2012, 09:24 AM
  4. Copy Paste row from one worksheet to another based on DATE
    By niketmohan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2011, 08:29 AM
  5. Copy row based on date and then paste into a new worksheet based on section number
    By calmlaunch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2011, 11:40 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