Problem with conditional formatting dates

chrissmarlow

Board Regular
Joined
Jun 3, 2010
Messages
59
Hi Guys,

Hope you can help because this is driving me mad!

I have a spreadsheet with 7 dates in it (listed below), from cell A1:A7, in cell C1 I have the formula =EOMONTH(TODAY(),0)+1 which at present is 01/08/2011, to give me the first day of the next month.

I want to conditionally format the 7 dates (A1:A7) so that if they occur after the first day of the next month then they will highlight red. I have tried using the greater than formula in conditional formatting but this doesnt seem to work as it highlights "28/07/2011". All cells with data in them are formatted as short date (dd/mm/yyyy).

Can anyone help me out with this?

Dates in cells A1:A7
15/09/2011
29/09/2011
07/05/2011
29/09/2011
15/09/2011
15/09/2011
28/07/2011
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Sorry, I missed out a $

Excel Workbook
ABC
115/09/201101/08/2011
229/09/2011
307/05/2011
429/09/2011
515/09/2011
615/09/2011
728/07/2011
Sheet8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =A1>C$1Abc
 
Upvote 0
Sorry, I missed out a $

Excel Workbook
ABC
115/09/201101/08/2011
229/09/2011
307/05/2011
429/09/2011
515/09/2011
615/09/2011
728/07/2011
Sheet8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =A1>C$1Abc

Thanks very much, iv tried this in a new sheet and typed all the dates out etc and it works! However, if I got back to my original sheet and put in the same conditional format formula then it still doesnt work??? I can only think its something to do with the data, I have formatted it as short date though so I dont know what else to do, any ideas?
 
Upvote 0
So Excel doesn't think it is a date.

Select A1:A7, Data > Text to Columns, click Next twice, tick Date and select DMY then click Finish. Does that fix it?
 
Upvote 0
So Excel doesn't think it is a date.

Select A1:A7, Data > Text to Columns, click Next twice, tick Date and select DMY then click Finish. Does that fix it?


Yes, thanks very much! What could have caused this? Is doing the text to columns thing the only way to get round it?
 
Upvote 0
I don't know what would have caused it.

Either Text to Columns or format the cells as General and type in the dates again.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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