Conditional Formatting Excel

Charlotte Moss 21 Reputation points
2022-11-08T14:13:44.767+00:00

I have taken over an excel spreadsheet and would like the dates to change colour as they get close to expiring but I'm having trouble, What I would like is the below

Red - A year after the original date entered
Amber - 30 days before we reach the next year
Green - From date recorded until 30 days when it would change to Amber

I have found formulas basing it on today but the dates I have are from 2021 or dates earlier than today of this year and the formulas I've found and tried just turn everything red or Amber.

So what I'd like is that is I did something on 03/06/2022 I want it to go red on 03/06/2023 and amber on 03/03/3023.

Microsoft 365 and Office Excel For business Windows
{count} votes

Accepted answer
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2022-11-09T09:43:28.227+00:00

    Hi @Charlotte Moss ,
    Select the range you need to apply Conditional Formatting- go to Home- Conditional Formatting- New Rule...- Use a formula to determine which cells to format- enter the formula and set the cell format:
    258712-image.png
    258693-image.png

    Green: =TODAY()-A1<335
    Amber: =AND(TODAY()-A1<365,TODAY()-A1>=335)
    Red: =TODAY()-A1>=365

    258713-image.png

    If my understanding is incorrect, please be a bit more precise to explain your requirement or you can upload a screenshot so that I can get more accurate solutions to this problem. I’m glad to help and follow up your reply.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Charlotte Moss 21 Reputation points
    2022-11-09T12:59:41.1+00:00

    Thank you so much this is exactly what I was after.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.