Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 84
Default Conditional Formatting with range

Help please,

I have a column of dates that I want to format if they match another column of dates.

Ex. AF251:AF255 = T249:T275

In other words, if any of the dates in cells AF251:AF255 match the dates in cells T249:T275 I want the format to change. So far all I have is this:

=AND($T$249:$T$259)

but every cell from AF251:AF255 reformats. I want only the cells with matching dates to reformat.

Thanks in advance,

K
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Current Month with real date

I don't understand how:
=TEXT(EDATE(TODAY(),0),"mmmm")
can return ###'s.

Are you sure that this is the formula you used?

This:
=month(now())
will return the number 11 (if you put it in a cell that is formatted as
General).

If you format that cell as a date, then excel will see that 11 as the 11th day
after a base date--and for most people in the wintel world, that base date is
December 31, 1899. So 11 is seen as January 11, 1900.

So format the cell as general and you'll see the 11.

Same kind of thing with
=year(month(now()))

That's the equivalent of:
=year(11) the 11th day of 1900.

=========
If you have a real date in A1, you could just give it a custom format:

MMMM YYYY
(or whatever you want)

with:
=today()
as the formula in A1


Keyrookie wrote:

Hey all,

I'm trying to have a cell always reflect the current month and year.
I'm sure it's a simple formula but I need some help. I'm wanting this
formula in a cell and then I have a calendar control cell that is
linked to to it... ie.

A1 (formula cell) and then D15=A1

I've already used

=TEXT(EDATE(TODAY(),0),"mmmm") this returns nothing but ###### etc.

and

=(MONTH(NOW())) this returns Jan 1900

and

=YEAR(MONTH(NOW())) this returns Mar 1905

The calendar works fine when I have real date (11/1/2005) in cell A1.

Help please,

K

--
Keyrookie


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Current Month with real date

On Mon, 30 Nov 2009 21:29:09 +0000, Keyrookie
wrote:

Hey all,

I'm trying to have a cell always reflect the current month and year.
I'm sure it's a simple formula but I need some help. I'm wanting this
formula in a cell and then I have a calendar control cell that is
linked to to it... ie.


It is simple, and depends on how you want to "reflect" the current month and
year.

A1: cell to have current month and year

A1: =today()
format/cells/number Custom: mmm-yyyy
--ron
  #4   Report Post  
Member
 
Posts: 84
Default

Quote:
Originally Posted by Ron Rosenfeld View Post
On Mon, 30 Nov 2009 21:29:09 +0000, Keyrookie
wrote:

Hey all,

I'm trying to have a cell always reflect the current month and year.
I'm sure it's a simple formula but I need some help. I'm wanting this
formula in a cell and then I have a calendar control cell that is
linked to to it... ie.


It is simple, and depends on how you want to "reflect" the current month and
year.

A1: cell to have current month and year

A1: =today()
format/cells/number Custom: mmm-yyyy
--ron

Thanks for the repsonses,

Sorry, I didn't explain things well. I have a calender and in the Friday column I want the cells to reformat if they match a range of dates located elswhere in the spreadsheet. The application is work hours have to be submitted on Friday every 2 weeks. Because these dates are constantly changing but not the day (Friday), I need a formula that will recognize the dates in the RANGE and then if it matches or equals the date in the Friday COLUMN I need it to reformat.

If there is another way to achieve this result I'm all ears. I may be approaching this problem from the wrong angle.

K
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 formatting using a range Marc's NYK Excel Discussion (Misc queries) 1 August 14th 09 04:00 PM
Conditional Formatting Range Jean Excel Discussion (Misc queries) 5 November 29th 07 11:27 PM
Conditional Formatting In a Range mikesteven Excel Discussion (Misc queries) 1 July 13th 06 09:37 PM
Conditional Formatting for a Range ahishaslauer Excel Discussion (Misc queries) 2 April 3rd 06 02:29 AM
HOW TO USE CONDITIONAL FORMATTING FROM ONE RANGE TO ANOTHER RANGE PeggyP Excel Worksheet Functions 2 November 4th 04 07:29 PM


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