Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Translating Dates to a Visual

I have the following basic spreadsheet, and I wanted to use conditional
formating to color the relevant cells Green, but in the example given I can
only apply green to Jan

1 2 3 4 5
A Start End Jan Feb Mar (etc)
B 01/01/10 02/02/10
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Translating Dates to a Visual

I think you have your rows and columns mixed up to start with.

Columns are the letters across the top and rows are the numbers down the
left side.

Which would be the relevant cells and how do you decide?


Gord Dibben MS Excel MVP

On Wed, 9 Sep 2009 17:03:02 -0700, english4518
wrote:

I have the following basic spreadsheet, and I wanted to use conditional
formating to color the relevant cells Green, but in the example given I can
only apply green to Jan

1 2 3 4 5
A Start End Jan Feb Mar (etc)
B 01/01/10 02/02/10


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Translating Dates to a Visual

Hi English,

Excel 2007 -

The following will format Jan and Feb green, assuming that the column head
for Jan is actually 1/1/2010 - with a custom format of "mmm" to display as
"Jan" - and so on for all of the column heads, beginning with C1 through N1
for December - 12/1/2010 custom format of "mmm" to display as "Dec".

Next select cell C2 through the last cell in the range to be conditionally
formatted; from the Home ribbon select Conditional Formatting/New Rule/Use a
formula to determine which cells to format/

paste the following formula into Format values where this formula is true:

=IF(OR(AND(MONTH(C$1)=MONTH($A2),YEAR(C$1)=YEAR($A 2)),AND(MONTH(C$1)=MONTH($B2),YEAR(C$1)=YEAR($B2)) ),1,"")

then select the desired formatting.

for the row where 1/1/2010 is start, and 2/2/2010 is end - both Jan and Feb
will be formatted. In your original post you mention that Jan is formatted -
is that what you are wanting, or what you want to fix?

Additional logic can be added to fit your needs - however you need the cells
to be conditionally formatted.

Hope this helps.
--
If this post helps click Yes
---------------
Peggy Shepard


"english4518" wrote:

I have the following basic spreadsheet, and I wanted to use conditional
formating to color the relevant cells Green, but in the example given I can
only apply green to Jan

1 2 3 4 5
A Start End Jan Feb Mar (etc)
B 01/01/10 02/02/10

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
Translating Erika Excel Discussion (Misc queries) 0 June 6th 08 03:13 PM
translating lotus 123 formulas into excel Seth Excel Worksheet Functions 1 February 26th 07 08:11 PM
Translating formulas Cameron Excel Discussion (Misc queries) 9 August 3rd 06 11:43 AM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM
Translating function names dziw Excel Discussion (Misc queries) 2 June 30th 05 04:37 AM


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