Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default conditional formatting match month

I'm finding it difficult with conditional formatting matching the month for
=today() in cell b2 for example. the purpose is to match the month for a date
ranging from d15:d24 and then highlight if the month matches.

Any ideas? ive been working on this for 3 days now. thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default conditional formatting match month

Try this:

Select your entire range D15:D24

In Excel versions 2003 and earlier

Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the box on the right:
=MONTH(B$2)=MONTH(D15)
Click the Format button
Select the desired style(s)
OK out

In Excel 2007

Goto Home tabStylesConditional FormattingManage rulesNew ruleUse a
formula to determine which cells to format
Enter this formula in the box below:
=MONTH(B$2)=MONTH(D15)
Click the Format button
Select the desired style(s)
OK out

If there might be empty cells in your range D15:D24, or if B2 might be
empty, then use this formula:

=AND(B$2<"",D15<"",MONTH(B$2)=MONTH(D15))

--
Biff
Microsoft Excel MVP


"yuen" wrote in message
...
I'm finding it difficult with conditional formatting matching the month
for
=today() in cell b2 for example. the purpose is to match the month for a
date
ranging from d15:d24 and then highlight if the month matches.

Any ideas? ive been working on this for 3 days now. thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default conditional formatting match month

You can apply the CF directly w/o referencing
Select D15:D24 (with D15 active), then apply CF using Formula Is:
=AND(ISNUMBER(D15),MONTH(D15)=MONTH(TODAY()))
Format to taste OK out

If the above doesn't work, that means the dates in D15:D24 aren't real
dates. Select the range of "dates", convert it all at one go by clicking Data
Text to Columns. Click NextNext. In step 3 of the wiz., check "Date", then

choose the appropriate format from the droplist, eg: DMY. Click Finish.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"yuen" wrote:
I'm finding it difficult with conditional formatting matching the month for
=today() in cell b2 for example. the purpose is to match the month for a date
ranging from d15:d24 and then highlight if the month matches.

Any ideas? ive been working on this for 3 days now. 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
partial word match for conditional formatting Maureen Excel Worksheet Functions 9 October 24th 08 11:05 PM
Conditional Formatting to match cell values Mick B Excel Worksheet Functions 3 April 2nd 08 06:04 PM
Complicated conditional formatting if numbers match across a data set..How? DrSues02 Excel Worksheet Functions 1 November 3rd 05 10:10 AM
Complicated conditional formatting if numbers match across a data set..How? DrSues02 Excel Discussion (Misc queries) 1 November 3rd 05 05:59 AM
Conditional Formatting based on month name David Excel Discussion (Misc queries) 4 February 9th 05 10:19 AM


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