Text colour change due to variant

drsrst2zvh

New Member
Joined
Dec 7, 2010
Messages
11
Hello im very new to this forum but i have had help here before.
Im looking to make a certain cells text change colour dependant on what date another cell states inside it.
Basics are i want the text to go red if the date has passed, to go amber if the date is within the next 30 days, and be green if the date is more than 30 days in the future?
Is this possible? if so can you tell me how?
Thanks
D
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Im using the new verison of excel so that is no use too me also would i need to put anything extra in the text as i want it to use the actual day we are in as the benchmark so 30 days from today would be 29 2moro. does that make sense?
 
Upvote 0
How about these then using conditional formatting formulas:

Before today
Formula
=AND(A2-TODAY()<0)

Due in the next 30 days:
Formula:
=AND(A2-TODAY()>=0,A2-TODAY()<=30)

More than 30 days:
Formula:
=AND(A2-TODAY()>=0,A2-TODAY()>30)
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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