Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Conditional Format based on dates

I have a work schedule that is 365 columns wide - all very narrow so that 2
or 3 months fits onto the screen at a time. Row 1 is the month name, with
each month a "merged and centered" cell spanning the 30 or 31 cells for that
month. Row 2 is the "day of month" number (1,2,3...30,31,1,2,3...etc). Row
3 through whatever (currently 22) is for the employee... each cell indicates
what the employee is doing that day (on duty, on vacation, etc.).

I'd like to format rows 2 and below so that the current day is highlighted
yellow. So, on Jan 20, T2:T22 would be yellow. Today (April 5th) would have
CQ2:CQ22 highlighted.

I am having problems with the "merged cell" part of the formula, I think.

Thanks,
Jim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Format based on dates

If you have 365 columns then you must be using Excel 2007.

Row 2 is the "day of month" number (1,2,3...30,31,1,2,3...etc).


In row 2 enter the actual dates then you can format the cells to display
just the day of the month.

If your days start in cell A2, enter the date 1/1/2009 in A2. Drag across to
cell NA2.

With the range A2:NA2 selected
Right click within the selected range
Format CellsCustom
Type: d
OK

The cells now display the day number of the months
1,2,3...30,31,1,2,3...etc.

Now, to apply the conditional formatting....
Select the range A3:NA22
Goto Home tabStylesConditional FormattingManage rulesNew ruleUse a
formula to determine which cells to format
Enter this formula in the box below:
=A$2=TODAY()
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"BaseballFan" wrote in message
...
I have a work schedule that is 365 columns wide - all very narrow so that 2
or 3 months fits onto the screen at a time. Row 1 is the month name, with
each month a "merged and centered" cell spanning the 30 or 31 cells for
that
month. Row 2 is the "day of month" number (1,2,3...30,31,1,2,3...etc).
Row
3 through whatever (currently 22) is for the employee... each cell
indicates
what the employee is doing that day (on duty, on vacation, etc.).

I'd like to format rows 2 and below so that the current day is highlighted
yellow. So, on Jan 20, T2:T22 would be yellow. Today (April 5th) would
have
CQ2:CQ22 highlighted.

I am having problems with the "merged cell" part of the formula, I think.

Thanks,
Jim



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Conditional Format based on dates

"T. Valko" wrote:
In row 2 enter the actual dates then you can format the cells to display
just the day of the month.


Simplistically brilliant, thanks. :^)
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Format based on dates

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"BaseballFan" wrote in message
...
"T. Valko" wrote:
In row 2 enter the actual dates then you can format the cells to display
just the day of the month.


Simplistically brilliant, thanks. :^)



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
conditional formula based on dates filups[_2_] Excel Worksheet Functions 4 November 30th 08 01:38 AM
PLS HELP - Conditional Format w/Dates Jacki[_2_] Excel Discussion (Misc queries) 7 November 11th 08 09:41 AM
Conditional Format with dates Lost in Microbiology Excel Discussion (Misc queries) 5 October 21st 08 06:19 PM
CONDITIONAL FORMAT BASED ON 2 CELLS Steve_n_KC Excel Worksheet Functions 4 May 11th 07 10:38 PM
Conditional Sum based on Bold Format Ron Excel Discussion (Misc queries) 3 February 8th 07 05:28 PM


All times are GMT +1. The time now is 01:46 AM.

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"