Consulting

Results 1 to 4 of 4

Thread: Non-VBA question for Conditional Formatting

  1. #1
    VBAX Contributor
    Joined
    Apr 2014
    Posts
    109
    Location

    Non-VBA question for Conditional Formatting

    Hello and thanks for any help...

    I realize this is normally used for VBA, and I have at one time been more involved in VBA on this forum, but today my question is just excel based. Excel's conditional formatting normally works, but I am struggling to make the third format rule work.

    I have a date column, the date for which the next Criminal Record Check is due. It is in a table, column N, "Next Ck Due".
    I want 3 conditional formats, so that
    1. When the due date is 6 months away or less the date will be bold, green.
    2. When the due date is 1 month away or less the date will be bold, dark yellow.
    3. When the due date is past the date will be bold, red.


    Here is what I did... see image.
    The 6 mos away does not work. The other two work fine. Any ideas what I did wrong?

    Thanks..
    Gary

    Screenshot 2023-08-25 212859.jpg

    Attached Images Attached Images
    Last edited by garyj; 08-25-2023 at 08:33 PM. Reason: add image

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    try:
    =DATEDIF(TODAY(),$N1,"m")<=6
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    garyj , you are more than welcome to post excel queries here.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  4. #4
    VBAX Contributor
    Joined
    Apr 2014
    Posts
    109
    Location
    That works.
    Thanks so much, p45cal.
    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •