+ Reply to Thread
Results 1 to 4 of 4

Copy rows of data if date in cells meets certain date criteria

  1. #1
    Registered User
    Join Date
    11-26-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copy rows of data if date in cells meets certain date criteria

    Hello all. I have tried and tried to find an example of this code so I wouldn't be bothering anybody, but alas, here I am. What I am trying to do is this: I have a worksheet with several different types of data in it, and in column H I have dates. If a date in that column is either any date in the past before today() or 60 days in the future from today() then i need to copy cells A-H, N, O for that row and paste them into another spreadsheet at B-J, and then continue this for every row in the spreadsheet that meets the same date criteria. Not sure if it matters, but the format I am using for the date is 14-Mar-01. Any help would be much appreciated. Thank you all so much in advance!!!!!

    Joseph

  2. #2
    Registered User
    Join Date
    11-12-2010
    Location
    Pisek, Czech republic
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy rows of data if date in cells meets certain date criteria

    Hello Joseph,

    try this one, hope I got Your idea

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-26-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copy rows of data if date in cells meets certain date criteria

    Thank you so much for your help!!! I made a few minor tweaks and it is working like a charm! One other question though. I am using the following:

    Please Login or Register  to view this content.
    to get to the first blank cell in that spreadsheet I am pasting the data to. How do I use the code you gave me and paste to that particular cell that is selected if I don't know the exact location? (Because the data pasted will be different lengths every time depending on the date).

    Again, I definitely appreciate your help!!!! You are a life saver!!!

    Joseph

  4. #4
    Registered User
    Join Date
    11-12-2010
    Location
    Pisek, Czech republic
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy rows of data if date in cells meets certain date criteria

    Hi,

    luckily it is a few days I learned right here from RoyUK a nice way to define the number of the last cell row. It looks like this
    Please Login or Register  to view this content.
    You can then use the value as You wish, e.g. like this:
    Please Login or Register  to view this content.
    Knecht

+ 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