need help

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
983
I need some help with this but not sure how to explain it

I have to check a cell to see if ti has a date in it, if so , then i have to check the current date to another cell, if the current date is greater then that cell i want to change the color of the cell

Not sure what formula to use
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

mordrid

Board Regular
Joined
Jul 22, 2005
Messages
234
Not sure why you need to check that it is a date, if you format the cell it as a date.

I do a similar thing through conditional formatting. Within the condition I have set

Cell Value to be equal to or less than and then the value as todays date


I have then set a condition 2 with greater than where the format is as original
so this would be the default and when condition 1 is met then the colour changes

Hope this helps

Richard
 

sthack99

Board Regular
Joined
May 16, 2006
Messages
237
Are there other values besides a date ever entered into these cells?

If not, then conditional formatting may be all you need. Somewhere within the wb place today's date [="today()], then select the cell you want to change color and click Format --> Conditional Formatting --> select Formula Is, and enter "=IF(A2<A1,TRUE,FALSE)" (A2 would be the cell w/ the date and A1 would be the cell w/ today's date). Then click on Patterns, select the color you want the cell to change to, and click OK. Do this for every cell you need the color changed for.
 

sthack99

Board Regular
Joined
May 16, 2006
Messages
237
Oops - got cut off!

Are there other values besides a date ever entered into these cells?

If not, then conditional formatting may be all you need. Somewhere within the wb place today's date [="today()], then select the cell you want to change color and click Format --> Conditional Formatting --> select Formula Is, and enter "=IF(A2<A1,TRUE,FALSE)" (A2 would be the cell w/ the date and A1 would be the cell w/ today's date). Then click on Patterns, select the color you want the cell to change to, and click OK. Do this for every cell you need the color changed for.
 

sthack99

Board Regular
Joined
May 16, 2006
Messages
237

ADVERTISEMENT

huh? hold on.........
 

sthack99

Board Regular
Joined
May 16, 2006
Messages
237
....."=IF(A2<A1,TRUE,FALSE)" (A2 would be the cell w/ the date and A1 would be the cell w/ today's date). Then click on Patterns, select the color you want the cell to change to, and click OK. Do this for every cell you need the color changed for.
 

sthack99

Board Regular
Joined
May 16, 2006
Messages
237

ADVERTISEMENT

WHY IS IT GETTING CUT OFF???????????????????????
 

sthack99

Board Regular
Joined
May 16, 2006
Messages
237
Are there other values besides a date ever entered into these cells?

If not, then conditional formatting may be all you need. Somewhere within the wb place today's date [="today()], then select the cell you want to change color and click Format --> Conditional Formatting --> select Formula Is, and enter "=IF(A2<font color="red">insert the less than symbol here</font>A1,TRUE,FALSE)" (A2 would be the cell w/ the date and A1 would be the cell w/ today's date). Then click on Patterns, select the color you want the cell to change to, and click OK. Do this for every cell you need the color changed for.
 

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
983
more

all cells are dates

to enter code or formulas toy have to hit the code button and end with code button
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,565
Messages
5,765,140
Members
425,263
Latest member
alcat

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
Top