+ Reply to Thread
Results 1 to 4 of 4

Conditional Formattiing for Custom Date/Time

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Anytown, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Conditional Formattiing for Custom Date/Time

    Hello Excel Gurus!

    I am hoping that one of you can help me with an issue that I am having with Conditional Formatting in Excel 2007.

    I have a custom date/time that I use ("ddd mm/dd/yy hh:mm "AM/PM") and would like to have it auto format to red text when hh:mm >= 4:00 PM. Additionally, I would like to have it auto format to red text when ddd= Sat or Sun, regardless of time (but not Mon-Fri, unless >= 4:00 PM). I'm thinking that this will require two seperate formulas, but I've not had any success yet.

    I would appreciate any help you have to offer!

    Thanks!
    Shannon

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.90.2 (24102719))
    Posts
    8,978

    Re: Conditional Formattiing for Custom Date/Time

    you could probably use an

    OR

    OR( HOUR(Cell)>=16 , WEEKDAY(Cell,2)>5 )

    see attached
    Attached Files Attached Files
    Last edited by etaf; 07-18-2013 at 02:24 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-18-2013
    Location
    Anytown, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Re: Conditional Formattiing for Custom Date/Time

    So... I tried your formula, @etaf. Unfortunately, I couldn't seem to get it to work. It did format some cells, but not the right ones. I can't seem to understand why, either. I'm not an expert by any means on the excel-verse, but the basic logic seemed pretty good. Do you have any recommendations as far as what other options I might have?

    Thanks!
    Shannon

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.90.2 (24102719))
    Posts
    8,978

    Re: Conditional Formattiing for Custom Date/Time

    can you attach the spreadsheet

    did you select the cells using control key ?

    also it would be worth rechecking the formula does not have
    ""
    around it

    but a sample sheet would be very useful

+ 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. Conditional Date Formatting with a Custom Cell Format
    By kqueen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2012, 01:48 PM
  2. Date and Time picker custom formats
    By Newbie_Nick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2010, 08:58 AM
  3. Custom Properties, Date and Time Zone Changes.
    By cvitacek in forum Excel General
    Replies: 0
    Last Post: 10-04-2010, 12:54 PM
  4. custom date and time weighted average!!
    By jfzaki in forum Excel General
    Replies: 3
    Last Post: 09-24-2009, 04:01 AM
  5. Custom Date & Time format
    By MSwan1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2005, 04:05 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