+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting with special characters

  1. #1
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    130

    Conditional Formatting with special characters

    Hi Guys

    Don't know if this can be done..

    What i need is the following: In cell B1: if A1 is greater than 08:00am but less than 14:00pm than B1 should have a tick which is green, if cell A1 is greater than 14:00pm than B1 should have a cross which is red...
    Attached Files Attached Files
    Last edited by Climaxgp; 08-24-2009 at 10:23 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    re: Conditional Formatting with special characters

    What if it's less than 8a.m.?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    130

    re: Conditional Formatting with special characters

    Hi romperstomper

    We start work at 8:00am so it does not matter. I for got to mention in my previous post the following: If A1 is greater than or equal to 08:00am but less than 14:00pm than B1 should have a tick which is green, if cell A1 is greater than or equal to 14:00pm than B1 should have a cross which is red...

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    re: Conditional Formatting with special characters

    What do you mean by 'does not matter'? Do you want nothing put in if it's less than 8am (as most of the example seem to be) or do you only really care if it's before 14:00?

  5. #5
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    130

    re: Conditional Formatting with special characters

    Hi

    Just thought about it now..

    If it's greater than 14:00 but less than 8:00am than it should be a red cross.

    Hope i'm making sense

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    re: Conditional Formatting with special characters

    Put it this way:
    The day starts at 00:00 and goes through to 24:00 (which is 00:00)
    From 00:00 to 08:00 B1 = ?
    From 08:00 to 14:00 B1 = tick
    From 14:00 to 24:00 B1 = cross

    Put this formula in B1
    =LOOKUP(A1*24,{0,8,14},{"","a","r"})
    and set the cell font to webdings and colour green
    then use conditional formatting: if cell value is ="r" then font colour = red

    If you want the cross for the morning slot, simply this:
    =LOOKUP(A1*24,{0,8,14},{"r","a","r"})
    (conditional format will still apply)

    HTH

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    re: Conditional Formatting with special characters

    Here's one way - very similar but slightly different formulas and I used Wingdings.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    130

    re: Conditional Formatting with special characters

    Thanks Cheeky Charlie and romperstomper!!!!

    Both work fine!!!

+ 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