#1   Report Post  
Posted to microsoft.public.excel.misc
TC
 
Posts: n/a
Default conditional format

Hi - wonder if someone can help me with this one

What would be the conditional format for - if current month = date in cell
A1 then apply format.

i.e. date in cell A1 is dd/mm/yyyy, and I want format to apply for whole
month.

Many thanks

--
Tobit


  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default conditional format

On Fri, 2 Dec 2005 09:44:46 +0000 (UTC), "TC"
wrote:

Hi - wonder if someone can help me with this one

What would be the conditional format for - if current month = date in cell
A1 then apply format.

i.e. date in cell A1 is dd/mm/yyyy, and I want format to apply for whole
month.

Many thanks


=MONTH(A1)=MONTH(TODAY())


--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
TC
 
Posts: n/a
Default conditional format

Ron - thanks works a treat

One refinement

The date is always in row 1 (A1, B1, C1 etc) and the fomatted cells are rows
2 to 35. When I use the format in A2 then copy/paste special the format to
A3, B4 etc it assumes that the date is in the same relative position. what
is the syntax to say that the date is always in row 1.

Thanks again

--
Tobit


Hi - wonder if someone can help me with this one

What would be the conditional format for - if current month = date in cell
A1 then apply format.

i.e. date in cell A1 is dd/mm/yyyy, and I want format to apply for whole
month.

Many thanks


=MONTH(A1)=MONTH(TODAY())


--ron



  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default conditional format

On Fri, 2 Dec 2005 12:19:21 +0000 (UTC), "TC"
wrote:

Ron - thanks works a treat

One refinement

The date is always in row 1 (A1, B1, C1 etc) and the fomatted cells are rows
2 to 35. When I use the format in A2 then copy/paste special the format to
A3, B4 etc it assumes that the date is in the same relative position. what
is the syntax to say that the date is always in row 1.

Thanks again



You just need to use mixed reference for your cell reference:

e.g.: A$1


=MONTH(A$1)=MONTH(TODAY())



--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
TC
 
Posts: n/a
Default conditional format

Last question - honest

I should have said, I need the conditional format to match the month AND
year, not just the month otherwise it occurs for multiple years. Been trying
to worth this out for an hour or so, but no luck.

Is there a good website for this type of syntax ?

Thanks again

--
Tobit




  #6   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default conditional format

=AND(MONTH(A1)=MONTH(TODAY()),YEAR(A1)=YEAR(TODAY( )))

or

=DATE(YEAR(A1),MONTH(A1),1)=DATE(YEAR(TODAY()),MON TH(TODAY()),1)


--

Regards,

Peo Sjoblom

"TC" wrote in message
...
Last question - honest

I should have said, I need the conditional format to match the month AND
year, not just the month otherwise it occurs for multiple years. Been

trying
to worth this out for an hour or so, but no luck.

Is there a good website for this type of syntax ?

Thanks again

--
Tobit




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
Data Validation or Conditional Format (or combo of) Scott Excel Worksheet Functions 3 November 3rd 05 03:57 PM
Conditional format numbers PiPPo Excel Worksheet Functions 5 October 18th 05 05:03 AM
Cell Format Changes When Data Is Entered - Not Conditional Formatt SundanceKidLudwig Excel Worksheet Functions 2 September 30th 05 02:07 PM
Conditional format of minimum number MaggieMagill Excel Worksheet Functions 6 September 25th 05 11:36 PM
Conditional Format Question DougS Excel Worksheet Functions 3 May 3rd 05 01:36 AM


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