+ Reply to Thread
Results 1 to 7 of 7

Date manipulation

  1. #1
    Registered User
    Join Date
    06-16-2008
    Posts
    10

    Date manipulation

    Hi,
    I have a table row that has date values in it. I write 2008-06-13 and it displays as June 13, 2008. My problem, is that I would like all those cells to have a conditional formating that would allow me to have a certain set of icon (the one named "3 traffic lights") I would like to have a green icon if the date corresponds to a date that is before today's date, a yellow if it corresponds to today's date, and a red one if it corresponds to a future date. I have tried all the ways I could possibly think...and now I'm begging for help !!

    Could someone point me in the good direction !

    Thanks

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    I hope I understand your problem.

    If you want to need three different colors, you need to setup 3 different conditional formats.

    1. Select the cell on which you would like to apply the format
    2. Go to FORMAT-CONDITIONAL FORMAT
    3. In the first dropdown box, select "formula is"
    4. Enter this formula: =A1<TODAY()
    *Note: Change A1 to the cell that you are working with.
    5. Choose a format
    6. Click add and use the formula =A1>TODAY() for dates after today's date
    7. Repeat for each condition

    Report back if this helps.

  3. #3
    Registered User
    Join Date
    06-16-2008
    Posts
    10
    ok I'm going to try this as soon as I get home !

  4. #4
    Registered User
    Join Date
    06-16-2008
    Posts
    10
    Is there any way to have this working using a general formula....so instaid of using A3, I would use something else that would allow me to apply the same formula to all my row.

  5. #5
    Registered User
    Join Date
    06-16-2008
    Posts
    10
    I tried something...I Click manage Formatting Rule, then I selected "Format all cells based on their values" Then I selected "Icon Sets" for the style. I selected "3 Traffic Lights (Unrimmed)" for the Icon Style and clicked Reverse Icon Order. Then I entered those values:

    *Red Icon* when value is > 39616 Number
    *Yellow Icon* when <= 39616 >= 39616 Number
    *Green Icon* when < 39616

    And it worked...so I changed all the "39616" for TODAY() and all the "Number" for "Formula" ... but now it doesn't work...


    EDIT: HAHA!!! I think it's working now...I had to change 39616 for =TODAY() not TODAY() !! :P
    Last edited by elite_thut; 06-17-2008 at 12:42 PM.

  6. #6
    Registered User
    Join Date
    06-16-2008
    Posts
    10
    But now I have another problem...I also have 2 rows. One with Starting hours, and other with Ending Hours...so the value of the ending hours is always bigger than the starting hours...Those to rows are formated so that I enter let's say 9:00:00 and it displays as 9h00. But the problem is that If I enter 15:00:00 in the starting row (B4) and 18:30:00 in the ending row (C4), then in C5, I do =IF(HOUR(C5-B5)>0;HOUR(C5-B5);"") ...and it gives me 3 h (it should be like 3.5 h. I added a custom format to this cell and it is : 0" h".

    Someone know what is the problem ?

  7. #7
    Registered User
    Join Date
    06-16-2008
    Posts
    10
    Solved-----

+ 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