+ Reply to Thread
Results 1 to 5 of 5

Delete all cells that are not dates

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    United States
    MS-Off Ver
    Microsoft office standard 2007
    Posts
    52

    Talking Delete all cells that are not dates

    Looking to take two columns and delete Column A and B if Column A is not a date.

    For example in workbook 3
    A8:B8 should be deleted
    A12:B12 should be deleted


    If Column A is not a Date, A and B should be deleted for that row
    Attached Files Attached Files
    Last edited by jeck876; 07-30-2015 at 10:39 AM.

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

    Re: Delete all cells that are not dates

    There is no data in Column A on your sample.

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

    Re: Delete all cells that are not dates

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-01-2015
    Location
    United States
    MS-Off Ver
    Microsoft office standard 2007
    Posts
    52

    Re: Delete all cells that are not dates

    could you include a similar macro that would only delete Column A if does not start with a date??

    And Thank you this was a perfect solution to what i asked for.

  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: Delete all cells that are not dates

    You're welcome. Glad to help out and thanks for the feedback. Try:

    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. how to delete unwanted cells & delete the rest
    By annux08 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2015, 05:34 AM
  2. [SOLVED] Delete old dates
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-16-2015, 03:21 PM
  3. Search & Delete Cells, insert dates in calendar
    By Crash3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2015, 08:41 PM
  4. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  5. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  6. Replies: 1
    Last Post: 12-18-2012, 03:09 PM
  7. Replies: 1
    Last Post: 05-27-2010, 12:32 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