+ Reply to Thread
Results 1 to 3 of 3

Conditional formating based on the time and date

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Conditional formating based on the time and date

    Greetings,

    I am looking for some help with conditional formatting. In a different cell I have a date stamp (Time and date) I want to use formatting in a different cell based on that date. However I want it to format the cell when the time stamp is before noon of that day (timestamp date not current day).

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional formating based on the time and date

    You need to create a TRUE/FALSE statement. Assuming the timestamp is in cell A1, something like this:

    =MOD(A1,1)<0.5
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formating based on the time and date

    Another one...

    A2 = date/time stamp

    =HOUR(A2)<12
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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