+ Reply to Thread
Results 1 to 4 of 4

Need to use conditional formating to highlight a cell

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    clarksville tn
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need to use conditional formating to highlight a cell

    I need a formula in conditional formatting in excel 2010 to change color when the date time group of one cell "10aug20142105" is subtracted from and other cell "11aug20140150". Is this possible?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need to use conditional formating to highlight a cell

    Can you give some examples with real cell references? (Ideally, attach worksheet showing what you want - Go Advanced>Manage Attachments)

    So if time one is in A1 and time 2 is in B1, you want to change the color of the cell if C1 = B1-A1? Are there other options for C1?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-08-2013
    Location
    clarksville tn
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need to use conditional formating to highlight a cell

    excel example.xlsx

    The attach is generally what I am looking for. The Date Time group is in text. Again, any help is appreciated.

    Paul

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need to use conditional formating to highlight a cell

    Here is the formula to subtract the two

    =DATEVALUE(LEFT(E5,LEN(E5)-5))+(MID(E5,LEN(E5)-3,2)&":"&RIGHT(E5,2))-(DATEVALUE(LEFT(C5,LEN(C5)-5))+(MID(C5,LEN(C5)-3,2)&":"&RIGHT(C5,2)))
    values less than 1 are less than 1 full day (24 hours)

    Here is the conditional Formatting formula to turn things blue.
    =DATEVALUE(LEFT($E5,LEN($E5)-5))-(DATEVALUE(LEFT($C5,LEN($C5)-5)))>=1
    Attached Files Attached Files

+ 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] Highlight Conditional Formating
    By VTJeep in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2014, 12:56 PM
  2. [SOLVED] Highlight Cells using Conditional Formating
    By dompoma in forum Excel General
    Replies: 4
    Last Post: 04-05-2013, 05:44 PM
  3. Highlight Column Conditional Formating
    By BigMeat in forum Excel General
    Replies: 5
    Last Post: 07-07-2011, 03:42 PM
  4. Replies: 3
    Last Post: 08-28-2009, 11:16 AM
  5. Conditional formating - highlight every integer
    By pluszak in forum Excel General
    Replies: 4
    Last Post: 04-19-2009, 07:00 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