+ Reply to Thread
Results 1 to 8 of 8

Highlighting date cells

  1. #1
    Registered User
    Join Date
    06-22-2008
    Location
    peterborough
    Posts
    5

    Highlighting date cells

    hi, i'm working on a worksheet that highlights when maintenance needs to be carried out on various buildings.
    i'd like to highlight the date due cells in different colours.

    green for "in date"
    orange when there is a month to go until maintenance is due
    red when the maintenance is due or overdue

    the present date is displayed at the top of the sheet with various dates of maintenance due in the cells beneath.

    i have tried using excel help but cannot fathom this one.

    hope someone can help...its been so long since i've used excel and i am definately rusty!

    cheers

    Al

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    use conditional formatting
    see here
    http://www.contextures.com/xlCondFormat03.html#Expiry
    or post a spreadsheet and someone will probably do it for you!!

  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Theres plenty of help on the subject in ExcelTips here's just one http://www.exceltip.com/st/Coloring_...tting/654.html
    Not all forums are the same - seek and you shall find

  4. #4
    Registered User
    Join Date
    06-22-2008
    Location
    peterborough
    Posts
    5

    Yeah But...

    handy info but can't get my head round it and need it to count in months, not days...
    have a look...hopefully i can work out how to add an attachment...

    line 6 shows maintenance peridodicy of inspections.

    you can see in cell G8 i've had a go at something but failed miserably.

    Ideally i'd like the dates to be colour coded as per my initial post but it seems quite complex?

    Al
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    you could use the datedif function
    info here
    http://www.cpearson.com/excel/datedif.aspx
    see attached using conditional formatting it gives red if in past or due now
    orange if due within one calender month
    green if more
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-22-2008
    Location
    peterborough
    Posts
    5

    Datedif

    ok, trying the DATEDIF function, as per the link in the previous post.

    =DATEDIF(F8,B3,"m")

    as per the link i'm getting a #NUM! error. obviously its to do with the "m".

    i'm such a f*****t, so close....

    AL

  7. #7
    Registered User
    Join Date
    06-22-2008
    Location
    peterborough
    Posts
    5

    Got It

    Got it, simple really...how do i get -numbers if the date has "passed"?

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    you cant with that function thats why i used iserror in the conditional format
    condition 1 on the premis that if it doesnt give a result it mus be in the past

+ 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