COLOR CODES FOR DATE TRACKING

hsarrategui

New Member
Joined
May 25, 2022
Messages
33
Office Version
  1. 2010
Platform
  1. Windows
I am trying to track our leases that are 6 months long. I need 3 formulas.

I need a formula that will change the date in the cell to green when up to date.

A formula that changes those cells to yellow if we have 3 month left in the 6 months

And a formula that turns red the month it expires.

So if the cell says 3/31/24 it should be yellow now and turn red on march 1st. but be green or colorless from October 1st until January 1st.

The columns are "C" and "H" starting on line "4".
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
dates. i didn't know if the columns mattered. But thats where the expiration date is being entered
Okay, I suppose I should be a little more specific. Which date is in Column C and which date is in Column H? Is there a start date and expiration date, or is the expiration date compared to today's date?
 
Upvote 0
Not really sure what you have going on completely. But here is a basic comparison conditional formatting mini worksheet:

Book1
CHIJKLMNOPQR
1
2
3
42024-03-31
52024-02-012024-03-012024-04-012024-05-012024-06-012024-07-012024-08-012024-09-012024-10-012024-11-01
6Lease Date
72024-01-312024-02-012024-03-012024-04-012024-05-012024-06-012024-07-012024-08-012024-09-012024-10-012024-11-01
8Red=EOMONTH(I$7,-1)<=$C$7
9Yellow=EOMONTH(I$7,-3)<=$C$7
10Green=EOMONTH(I$7,-3)>$C$7
Sheet1
Cell Formulas
RangeFormula
I5I5=EDATE(J5,-1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I7:R7Expression=EOMONTH(I$7,-1)<=$C$7textNO
I7:R7Expression=EOMONTH(I$7,-3)<=$C$7textNO
I7:R7Expression=EOMONTH(I$7,-3)>$C$7textNO
.



Mr. Excel has a tool called xl2bb add in that allows you to post mini worksheets like I did above. (link is below) Please use it. The forum can make errors and is wasting it's time trying to guess what your scenario looks like. If you cannot use the tool, the post your data as a table (include row and column headers). Images are marginally helpful as the forum must type in all of the scenario.

Thanks in advance.
 
Last edited:
Upvote 0
Okay, I suppose I should be a little more specific. Which date is in Column C and which date is in Column H? Is there a start date and expiration date, or is the expiration date compared to today's date?

Not really sure what you have going on completely. But here is a basic comparison conditional formatting mini worksheet:

Book1
CHIJKLMNOPQR
1
2
3
42024-03-31
52024-02-012024-03-012024-04-012024-05-012024-06-012024-07-012024-08-012024-09-012024-10-012024-11-01
6Lease Date
72024-01-312024-02-012024-03-012024-04-012024-05-012024-06-012024-07-012024-08-012024-09-012024-10-012024-11-01
8Red=EOMONTH(I$7,-1)<=$C$7
9Yellow=EOMONTH(I$7,-3)<=$C$7
10Green=EOMONTH(I$7,-3)>$C$7
Sheet1
Cell Formulas
RangeFormula
I5I5=EDATE(J5,-1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I7:R7Expression=EOMONTH(I$7,-1)<=$C$7textNO
I7:R7Expression=EOMONTH(I$7,-3)<=$C$7textNO
I7:R7Expression=EOMONTH(I$7,-3)>$C$7textNO
.



Mr. Excel has a tool called xl2bb add in that allows you to post mini worksheets like I did above. (link is below) Please use it. The forum can make errors and is wasting it's time trying to guess what your scenario looks like. If you cannot use the tool, the post your data as a table (include row and column headers). Images are marginally helpful as the forum must type in all of the scenario.

Thanks in adv
Okay, I suppose I should be a little more specific. Which date is in Column C and which date is in Column H? Is there a start date and expiration date, or is the expiration date compared to today's date?
so the only dates provided are the expiration date itself. so the dates change when the expiration date changes. I have added a screen shot of the columns. We have 2 properties so each column is not related. I want to be able to open the worksheet and have the dates colored based on how far today is from the expiration date. So if I put 7/1 then the date should be green until april and then red starting june.
 

Attachments

  • Screenshot 2024-01-25 151454.png
    Screenshot 2024-01-25 151454.png
    13 KB · Views: 23
Upvote 0
What date are you comparing the expiration dates to? Are you typing a date in somewhere?

Did you read my statement at the bottom of POST #5. Please post a mini worksheet or a table. Images are not helpful.
What are your expectations based upon the data you have in the workbook? Which cells should be yellow, red, or green?
 
Upvote 0
What date are you comparing the expiration dates to? Are you typing a date in somewhere?

Did you read my statement at the bottom of POST #5. Please post a mini worksheet or a table. Images are not helpful.
What are your expectations?
I've tried the mini worksheet and it isn't opening for me. It never does. If you click on the picture you can see what I uploaded. I also explained what I needed along with the photo. The only dates in the worksheet are the expiration dates.

"so the only dates provided are the expiration date itself. so the dates change when the expiration date changes. I have added a screen shot of the columns. We have 2 properties so each column is not related. I want to be able to open the worksheet and have the dates colored based on how far today is from the expiration date. So if I put 7/1 then the date should be green until April and then red starting June."

With the mini worksheet not working for me I don't know how else to explain it.
 
Upvote 0
There is a debugging section for xl2bb on the forum.

The forum are excel lovers and volunteers. The easier you make the job for them the better. Images are almost the worst thing to ask forum member to debug.
Putting aside a forum members question about what something means is discourteous to the people who are trying to help you. We ask because we want to help.

The solution i offered in POST #5 had the concepts you needed.

Here is the update:
(I"m not sure if I have the months counting the way you want, but you can figure that out.)

Book1
CH
6Lease Date
72024-05-01
8RedFALSE
9YellowFALSE
10GreenTRUE
Sheet1
Cell Formulas
RangeFormula
H8H8=C7 <= EOMONTH(TODAY(),1)
H9H9=AND(C7 >= EOMONTH(TODAY(),1),C7 <= EOMONTH(TODAY(),3))
H10H10=C7>=EOMONTH(TODAY(),3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C7Expression=AND(C7 >= EOMONTH(TODAY(),1),C7 < EOMONTH(TODAY(),3))textNO
C7Expression=C7>=EOMONTH(TODAY(),3)textNO
C7Expression=C7 <= EOMONTH(TODAY(),1)textNO
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top