+ Reply to Thread
Results 1 to 9 of 9

Formulating Date cells to auto color code based on Date

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formulating Date cells to auto color code based on Date

    I deal with a spreadsheet on a daily basis that is used as a suspense tracker. I need to formulate the cells in one of the columns to either color fill or icon change based on the suspense date. Example: Today is 23-Apr-13, I have 5 taskings due 23-Apr, 24-Apr, 25-Apr, 28-Apr and 30-Apr. I would need the 23-Apr cell Red (since due today), 24-Apr cell Yellow ("caution" due tomorrow) and the 25-30 Apr cells Green (no stress, plenty of time).

    I have played around with it now for 2 weeks, and got close but no cigar. My Chiefs actually want me to use the Red, Yellow, Green stop light ICONs but I am still crawling with the regular cell fills..lol. Anyone that can help, greatly appreciated. Have uploaded an example. This has had me pulling my hair out for days.....

    Darren
    Attached Files Attached Files

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

    Re: Formulating Date cells to auto color code based on Date

    in conditional formating you can use
    today() to test the cell

    CELL = today() - then red- what if date older than today
    CELL = today()+1 then amber
    CELL = >today()+1 then green - Do you only want to go out to 7 days in advance ?

    i think will work on, if you can clarify

    I'll have a play and post a sample back here - so watch for an edit if you have not replied in the meantime , if you have i will post a new reply

    Sheet attached with dates coloured

    let me know re other questions and if what you need

    My Chiefs actually want me to use the Red, Yellow, Green stop light ICONs
    can you expand ?
    Last edited by etaf; 04-23-2013 at 10:12 AM.

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulating Date cells to auto color code based on Date

    etaf,

    I looked at the sheet you posted. It seems to be mostly what I was looking for. I came up with close to the same, using =(A2-TODAY()), but couldn't get them all to work. Like past dates, they are clear, but need to be red as well. To elaborate on the ICONs. on the drop down for conditional formatting, there is an option for ICON sets. Hovering over ICON sets, a drop down menu comes up. At the bottom, an option for "more rules". If you select more rules, a window opens where you can select an ICON style, then the "rules" options at the bottom. This ICON set is how they want me to format it, but I am hit a brick wall.

    Attempting to formulate the ICONs based on a "formula" Type, I can't figure out what formula to put in the "value" box with the <>= functions. I am still playing with it and will I suppose til I figure it out, but no luck so far.

    Darren

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

    Re: Formulating Date cells to auto color code based on Date

    so to get the red for previous dates - change
    CELL = today() - then red- what if date older than today
    to
    CELL <= today()

    i'll look in to the icons - never used before

  5. #5
    Registered User
    Join Date
    04-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulating Date cells to auto color code based on Date

    Uploaded file for preview of ICON set option.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulating Date cells to auto color code based on Date

    etaf, thanks a bunch for the help with the formulas for filling. The change worked so far as I can see. Greatly Appreciated. Now I will keep trucking away at the ICON part.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formulating Date cells to auto color code based on Date

    i have added an extra column with the traffic lights in

    in that column I have used an IF statement to select a value

    =IF(B2<=TODAY(),1,IF(B2=TODAY()+1,0.75,0.5))

    so we get
    0.1 for today or before today
    0.75 for tomorrow
    and 0.5 for day after tomorrow and beyond

    now we can apply the icon traffic lights to those numbers and also state - show icon only (so the results from the formula goes away )

    and you have the traffic lights - albeit in a different column

    see attached

  8. #8
    Registered User
    Join Date
    04-21-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    35

    Thumbs up Re: Formulating Date cells to auto color code based on Date

    Hi,
    Even I work based on the dates. Can you explain me in detail. Also i want the calculation sheet in xl2003 format.
    Items which are due to completed should show on yellow and items which are due today should show in red and items which has some time should reflect in green
    eg
    Work Targetted date
    xxxx 25/04/2013
    yyyy 23/04/2013

    The first date should appear in green and the second in red
    Last edited by Jemima Sugantharani; 04-23-2013 at 01:56 PM.

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formulating Date cells to auto color code based on Date

    @Jemima Sugantharani you need to post in a new thread and not hijack a reply here - I would be happy to answer a new thread

    FOR @darren.capps
    i think i have worked it out to have the icon in the same column

    I'm using formula in the icon set

    have a look at this spreadsheet and see includes the other conditional formats

    I have also attached a version with ONLY at the end - that just has the traffic light icon in the date column and no other formating
    Last edited by etaf; 04-23-2013 at 02:12 PM.

+ 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