+ Reply to Thread
Results 1 to 5 of 5

Compare dates and return true or false

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Compare dates and return true or false

    I have a worksheet which has the date of action in column a and new date 1 in column s, I want a macro to do 2 things first, if the date in column a is within 30 days of column s I want to return the pending and if it is past the date in column a I want to return overdue otherwise do nothing, can anyone help with this? I need to use a macro as other users edit the sheet and keep deleting my if statements/ formatting.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,042

    Re: Compare dates and return true or false

    It can be tough to prevent the un-iniciated from messing with your file, but have you considered protecting your sheet?

    Keep in mind that to use macros, they need tpo be enabled, and not all organisations aloow their use
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Compare dates and return true or false

    I am already using macros in my sheet and just need to be able to run the macro once a day to update data etc so I will be able to build this additional part in

  4. #4
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Compare dates and return true or false

    Can anyone help with this, would be most appreciated.

  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: Compare dates and return true or false

    Maybe?

    Please Login or Register  to view this content.
    Results in Column T

+ 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: 6
    Last Post: 11-13-2014, 11:26 AM
  2. Compare two excel files and display true or false
    By sravanthi009 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-01-2011, 11:36 AM
  3. Replies: 3
    Last Post: 07-15-2006, 05:20 AM
  4. Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM
  5. How do I return True False
    By SimonP in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-31-2006, 12:15 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