+ Reply to Thread
Results 1 to 11 of 11

2 Conditional formats but only 1 working

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-16-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    257

    2 Conditional formats but only 1 working

    Hi

    I have 2 conditional formats but only one of them is working, I know why, but I don't know how to change it.

    A8 needs to change to AMBER if its 60 days overdue, RED for 90, But it'll constantly stay on AMBER. So I think I need to change it to go amber between days 60-89 then Red for 90+

    These are the 2 formats I have:

    RED
    Formula: copy to clipboard
    =D8>A5+90

    AMBER
    Formula: copy to clipboard
    =D8>A5+60


    Ideally I would like it as:
    NO VALUE or 90+ to be RED
    60-89 AMBER
    1-59 GREEN


    How do I change the formulas for this please?

    Thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: 2 Conditional formats but only 1 working

    change the order and use stop if true


    or

    =AND( D8>A5+60, D8<A5+90)

    you say A8 and you are using A5

    you could use today()

    is D8 the date you want to test

    what is A5?


    assuming D8

    =D8<today()-90 for RED

    =D8<today()-60 for Amber

    =D8<today() for green - so today does colour

    put in that order and stop if true
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    10-16-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    257

    Re: 2 Conditional formats but only 1 working

    I've completely thought his out back to front!!!!! haha

    Attachment below.

    In A8 Is the material audited.
    A5 is todays date (in the attachment ive manually put dates to test.
    D8 is the most recent date between a set range.

    A8 will flag red if A5 is +90 days of D8
    A8 will flag amber if A5 is between 60-89 days of D8
    A8 is Green if A5 is less than 60 days of D8

    Ideally, if There is no date in D8 then A8 will flag red.
    I think i'm there now, but would like someone to check it over if possible.

    Thanks

    MaterialsAudit.xls

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: 2 Conditional formats but only 1 working

    i have added the three rules
    are you using excel 2003

    and used today

    so if in the cell D8

    you put

    =today()-xx
    where xx is the number of days you want to go back

    so =today()-90
    =today()-60

    see if that works OK

    does not need to test A5 , unless you need that as part of the test
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-16-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    257

    Re: 2 Conditional formats but only 1 working

    Thanks.

    D8 Needs to be
    Formula: copy to clipboard
    =MAX(F8:BE8)

    Because a date will be entered along this range when an audit is done, and D8 will return the most recent audited date.
    So then if an audit is x amount of days behind then that's when the effect takes place.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: 2 Conditional formats but only 1 working

    yes, i realised that - but just showing a quick way to test the formula for different days
    as you can just instead of using max - use today() - days as a complete test
    to make sure its 100% (and remember sometimes <60 will not include 60 - so you need to change to <59 or <=60
    once you are happy with the working
    then you can re-enter the correct formula of MAX() and then you will it works OK or should do , and if not then something else is wrong

    hope that explains the change

  7. #7
    Forum Contributor
    Join Date
    10-16-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    257

    Re: 2 Conditional formats but only 1 working

    sorry, I was changing the wrong day and got muddled up again!! Haha

    Works a treat.

    Thanks very much!!!!

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

    Re: 2 Conditional formats but only 1 working

    you sure it does the right colour for the days

    -90
    -60
    and today

  9. #9
    Forum Contributor
    Join Date
    10-16-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    257

    Re: 2 Conditional formats but only 1 working

    Actually, ten Amber isn't working?

    It's either Red or Green

    Would I need to dictate a range for the amber? >60 <90

    Thanks

  10. #10
    Forum Contributor
    Join Date
    10-16-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    257

    Re: 2 Conditional formats but only 1 working

    This seems to be working now for Amber:
    Formula: copy to clipboard
    =AND(D9<TODAY()-59,D9<TODAY()-1)

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: 2 Conditional formats but only 1 working

    excellent

+ 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] PasteSpecial with number formats but without conditional formats or borders
    By bodhi808 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 09:58 AM
  2. [SOLVED] Conditional Formats .activate not working in Personal.xls
    By dlsmith36 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2013, 03:57 PM
  3. Conditional formats from 2007 not working in 2010
    By roskib in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-17-2013, 07:10 AM
  4. Working with Condtitional formats and dates
    By ibabs in forum Excel General
    Replies: 2
    Last Post: 06-25-2009, 02:40 PM
  5. Cell formats not working
    By wellscrambled in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2008, 12:44 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