Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kevin
 
Posts: n/a
Default Conditonal Format with a date format

I have a page with colum A1:A365 date formatted I would like all stat days to
turn red Conditional format I am trying to use is,

=OR(A1:A365=DECEMBER 25, 2004, A1:A365=JANUARY 1, 2005) ect ect

I If I type December 25 2004 in column any cell in column A without a date
format, it works. As soon as use a date format in column A1:A365 the
conditional format does not work.

Can anyone help??

Thank you
Kevin

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Kevin,

This works for me. Select all the cells and then use this formula

=OR(A1=--"2005-12-25",A1=--"2006-01-01")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Kevin" wrote in message
...
I have a page with colum A1:A365 date formatted I would like all stat days

to
turn red Conditional format I am trying to use is,
.
=OR(A1:A365="DECEMBER 25, 2004", A1:A365="JANUARY 1, 2005") ect ect

I If I type December 25 2004 in column any cell in column A without a date
format, it works. As soon as use a date format in column A1:A365 the
conditional format does not work.

Can anyone help??

Thank you
Kevin



  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

You're testing for a text string, not a date

You may find it easier to put all your 'stat days' into a range, the set up
the conditional formatting to be along these lines

Formula is =MATCH(A1,date_range,0)0


"Kevin" wrote:

I have a page with colum A1:A365 date formatted I would like all stat days to
turn red Conditional format I am trying to use is,

=OR(A1:A365=DECEMBER 25, 2004, A1:A365=JANUARY 1, 2005) ect ect

I If I type December 25 2004 in column any cell in column A without a date
format, it works. As soon as use a date format in column A1:A365 the
conditional format does not work.

Can anyone help??

Thank you
Kevin

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel enters date as a text format Kane Excel Discussion (Misc queries) 3 March 22nd 05 09:20 PM
How to format a date to a different format Laura Excel Discussion (Misc queries) 1 March 5th 05 09:59 PM
Date Format Question Josh O. Excel Discussion (Misc queries) 1 February 10th 05 09:45 PM
USING THE DATE FORMAT IN EXCEL teach Excel Discussion (Misc queries) 3 December 14th 04 11:55 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM


All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"