+ Reply to Thread
Results 1 to 4 of 4

Datetime Highlight Cell

  1. #1
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Datetime Highlight Cell

    I have a Column which contains datetime as below

    2015/10/26 05:39:09 PM
    2015/03/13 04:54:35 PM
    2015/03/12 05:20:16 PM
    .
    .
    .
    .
    .
    .
    And so on..

    So the coumn cell value should be compared with System datetime.. & if their is differnece of more than one hour then the cell value should be highlighted..
    Please assist any code
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  2. #2
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Datetime Highlight Cell

    =abs((now()-a1))>(0.0416666666666667)

  3. #3
    Registered User
    Join Date
    10-07-2015
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Datetime Highlight Cell

    Note:
    you should use this formula in Conditional formatting (to be highlighted)

    Please Login or Register  to view this content.
    we use ABS to see the difference.
    if you want the date that are later than NOW, you must remove ABS from code

  4. #4
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Datetime Highlight Cell

    an we have a VBA code to do this, because the data in the sheet keeps on changing..

    I mean the rows gets deleted and so the formatting also gets deleted..& then data gets populated again.. so if there is any code for this.. i would use it at the last of all.

    I got below formula working
    Please Login or Register  to view this content.
    How would i use it as a VBA code for entire A column... please assist

+ 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] ISO datetime difference
    By NDBT85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2014, 10:12 AM
  2. [SOLVED] reference date time range, return the value into all cell that match datetime range
    By Jarvco13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2013, 10:39 PM
  3. formatting datetime, US vs. UK
    By kmfdm515 in forum Excel General
    Replies: 5
    Last Post: 05-05-2012, 03:16 AM
  4. Based on a Column datetime value auto calculate and populate a datetime range
    By rajashanmuga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-22-2010, 04:10 PM
  5. datetime question
    By mr_P in forum Excel General
    Replies: 2
    Last Post: 07-16-2008, 01:56 PM
  6. [SOLVED] Highlight cells with ctrl-click but only un-highlight one cell
    By hagan in forum Excel General
    Replies: 5
    Last Post: 05-27-2005, 02:05 PM
  7. Replies: 1
    Last Post: 02-24-2005, 07:26 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