Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bobby
 
Posts: n/a
Default Conditional format assistance

I have a spreadsheet with dates in cells that are future holiday dates, and i
would like the cells to change colour when the date has passed.
In A1 I have the formula for todays date... today() but would like some
assistance on how I would format C4 which is the first of my dates to enable
the cell to change colour when the date in C4 has passed.

Thanks in advance

Bobby
  #2   Report Post  
P Sitaram
 
Posts: n/a
Default


Bobby wrote:
I have a spreadsheet with dates in cells that are future holiday

dates, and i
would like the cells to change colour when the date has passed.
In A1 I have the formula for todays date... today() but would like

some
assistance on how I would format C4 which is the first of my dates to

enable
the cell to change colour when the date in C4 has passed.

Thanks in advance

Bobby


select the cells of interest, i.e., say, C4:C100. go to
Format|conditional formatting , select Formula Is and enter the
formula:

=C4<A1 and set the formatting

  #3   Report Post  
Bobby
 
Posts: n/a
Default



"P Sitaram" wrote:


Bobby wrote:
I have a spreadsheet with dates in cells that are future holiday

dates, and i
would like the cells to change colour when the date has passed.
In A1 I have the formula for todays date... today() but would like

some
assistance on how I would format C4 which is the first of my dates to

enable
the cell to change colour when the date in C4 has passed.

Thanks in advance

Bobby


select the cells of interest, i.e., say, C4:C100. go to
Format|conditional formatting , select Formula Is and enter the
formula:

=C4<A1 and set the formatting

Thank you, that part works fine but how do I get the cells with no date in
them yet to stay clear.At the moment some cells have no dates in them yet and
they are turning to the colour I have formatted.

  #4   Report Post  
P Sitaram
 
Posts: n/a
Default

=(LEN(C4)*(C4<A1))

  #5   Report Post  
Bobby
 
Posts: n/a
Default



"P Sitaram" wrote:

=(LEN(C4)*(C4<A1))



Thanks for that it worked perfectly. How does that formula work?

I looked in the excel help pages for the LEN command but it was as much use
as a chocolate fire guard. It did not explain anything to me.


  #6   Report Post  
P Sitaram
 
Posts: n/a
Default

LEN returns the length of the cell entry, giving 0 when there is none.
So, the formula can result in:
0*0 = 0 i.e., FALSE
O*1 = 0 -do-
+ve number *0 = 0 -do-
+ve number*1 = +ve number i.e., TRUE

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
Office2000: Conditional format behaves strangely Arvi Laanemets Excel Discussion (Misc queries) 1 April 7th 05 08:47 AM
conditional format Julian Campbell Excel Worksheet Functions 2 December 15th 04 11:59 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
Copying a conditional format Meaux Excel Worksheet Functions 2 November 29th 04 10:19 AM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 02:58 PM


All times are GMT +1. The time now is 09:37 PM.

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

About Us

"It's about Microsoft Excel"