Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Cell Referencing problem when copying conditional formatting

(Excel 2000)

I have a row of cells (K6:AH6) which have some conditional formatting,
depending whether or not the date (month and year) shown in the corresponding
headers in K5:AH5 are less than or greater than (up to 12 months) the date
given in cell D6.

I have managed to get this working for one row, using the following formula:

For the months that are less than the given date in D6 (up to 12 months
previous):
=AND(DATE(YEAR(K5),MONTH(K5),28)<DATE(YEAR($D$6),M ONTH($D$6),28),DATE(YEAR(K5),MONTH(K5),28)DATE(YE AR($D$6)-1,MONTH($D$6)-1,28))

For the months that are greater than the given date in D6 (up to 12 months):
=AND(DATE(YEAR(K5),MONTH(K5),28)DATE(YEAR($D$6),M ONTH($D$6),28),DATE(YEAR(K5),MONTH(K5),28)<DATE(YE AR($D$6)+1,MONTH($D$6)+1,28))

When I copy this down to the other rows, the cell reference changes where a
'$' has not been entered in the formula - so the references for the headers
then changes to subsequent rows. However, I change the formula to how I
think it should be represented, the conditional formatting doesn't work.

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
Copying Conditional Formatting DTTODGG New Users to Excel 2 March 8th 07 02:12 PM
Excel 2003 print problem with conditional formatting cell selected MarkGerritsen Excel Discussion (Misc queries) 1 March 22nd 06 02:48 PM
Copying conditional formatting...HELP PLEASE!!!! trixiebme Excel Worksheet Functions 3 March 24th 05 01:53 PM
Copying Conditional Formatting SMac Excel Discussion (Misc queries) 3 March 11th 05 07:28 PM
copying conditional formatting Jakgeem Excel Worksheet Functions 2 December 23rd 04 05:03 PM


All times are GMT +1. The time now is 04:07 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"