Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
viddom
 
Posts: n/a
Default Conditional formating for the month

I have a column with the birthday of some clients and I want the cell format
to change to yellow when his date of birth is withing the current and the
next monat. In order to do that I wrote these formula in the first and
second field of the conditional formating panel=C2=MONTH(TODAY()) and
=C2=MONTH(TODAY())+1 , but it doesn't work.

Can't you tell me what am I doing wrong

Thanks
  #2   Report Post  
Dave O
 
Posts: n/a
Default

Try this, using only one condition:
=OR(MONTH(C2)=MONTH(NOW()),MONTH(C2)=MONTH(NOW())+ 1)

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=OR(MONTH(C2)=MONTH(TODAY(),MONTH(C2)+1=MONTH(TODA Y())

all in the one CF condition

--

HTH

RP
(remove nothere from the email address if mailing direct)


"viddom" wrote in message
...
I have a column with the birthday of some clients and I want the cell

format
to change to yellow when his date of birth is withing the current and the
next monat. In order to do that I wrote these formula in the first and
second field of the conditional formating panel=C2=MONTH(TODAY()) and
=C2=MONTH(TODAY())+1 , but it doesn't work.

Can't you tell me what am I doing wrong

Thanks



  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=OR(MONTH(C2)=MONTH(TODAY()),MONTH(TODAY())-1=MONTH(C2))

Biff

"viddom" wrote in message
...
I have a column with the birthday of some clients and I want the cell
format
to change to yellow when his date of birth is withing the current and the
next monat. In order to do that I wrote these formula in the first and
second field of the conditional formating panel=C2=MONTH(TODAY()) and
=C2=MONTH(TODAY())+1 , but it doesn't work.

Can't you tell me what am I doing wrong

Thanks



  #5   Report Post  
cgarrett1999
 
Posts: n/a
Default

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"



  #6   Report Post  
JE McGimpsey
 
Posts: n/a
Default

That formula (with the correct parens) will highlight birthdays in the
current and last month, not the current and next month. In addition, it
won't work for the end of the year rollover of MONTH().

This should:

=OR(MONTH(C2)=MONTH(TODAY()),MONTH(C2)=(MOD(MONTH( TODAY()),12)+1))

In article ,
"Bob Phillips" wrote:

=OR(MONTH(C2)=MONTH(TODAY(),MONTH(C2)+1=MONTH(TODA Y())

all in the one CF condition

  #7   Report Post  
JE McGimpsey
 
Posts: n/a
Default

That wouldn't work for birthdays in the next month, nor would it be
consistent for months with 28, 29, 30 and 31 days.

In article .com,
"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"

  #8   Report Post  
viddom
 
Posts: n/a
Default

Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the cell do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"


  #9   Report Post  
viddom
 
Posts: n/a
Default

Mr JE McGimpsey,

do you know the formula, cause I tried all the others and it didn't work,
maybe I am missing some step

"JE McGimpsey" wrote:

That wouldn't work for birthdays in the next month, nor would it be
consistent for months with 28, 29, 30 and 31 days.

In article .com,
"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"


  #10   Report Post  
Biff
 
Posts: n/a
Default

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that string to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"






  #11   Report Post  
viddom
 
Posts: n/a
Default

Dear Biff,

my computer do the same, but still the cell format do not change. If I have
to generate some code, lI will be pleased to have some example

"Biff" wrote:

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that string to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"





  #12   Report Post  
Biff
 
Posts: n/a
Default

Try this:

If you date cell is C2 and it contains the true Excel date of 25-Aug-05, in
a cell next to that enter this formula:

=OR(MONTH(C2)=MONTH(TODAY()),MONTH(TODAY())-1=MONTH(C2))

What result do you get?

Biff

"viddom" wrote in message
...
Dear Biff,

my computer do the same, but still the cell format do not change. If I
have
to generate some code, lI will be pleased to have some example

"Biff" wrote:

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that string
to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the
cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"







  #13   Report Post  
viddom
 
Posts: n/a
Default

No results, the format do not change, some other idea?

"Biff" wrote:

Try this:

If you date cell is C2 and it contains the true Excel date of 25-Aug-05, in
a cell next to that enter this formula:

=OR(MONTH(C2)=MONTH(TODAY()),MONTH(TODAY())-1=MONTH(C2))

What result do you get?

Biff

"viddom" wrote in message
...
Dear Biff,

my computer do the same, but still the cell format do not change. If I
have
to generate some code, lI will be pleased to have some example

"Biff" wrote:

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that string
to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the
cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"








  #14   Report Post  
viddom
 
Posts: n/a
Default

I have to go, I hope we find a solution tomorrow.

Thanks

"viddom" wrote:

No results, the format do not change, some other idea?

"Biff" wrote:

Try this:

If you date cell is C2 and it contains the true Excel date of 25-Aug-05, in
a cell next to that enter this formula:

=OR(MONTH(C2)=MONTH(TODAY()),MONTH(TODAY())-1=MONTH(C2))

What result do you get?

Biff

"viddom" wrote in message
...
Dear Biff,

my computer do the same, but still the cell format do not change. If I
have
to generate some code, lI will be pleased to have some example

"Biff" wrote:

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that string
to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the
cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"








  #15   Report Post  
JE McGimpsey
 
Posts: n/a
Default

The one that I posted works fine for me.

In article ,
viddom wrote:

do you know the formula, cause I tried all the others and it didn't work,
maybe I am missing some step



  #16   Report Post  
Biff
 
Posts: n/a
Default

No results, the format do not change, some other idea?

You didn't do what I asked!

I want you to enter that formula into a cell on the worksheet. You'll get
either TRUE or FALSE.

If you get TRUE that means the formula works. If you get #VALUE! that means
C2 is not a true Excel date and is a text string. You should not get FALSE!

Biff

"viddom" wrote in message
...
No results, the format do not change, some other idea?

"Biff" wrote:

Try this:

If you date cell is C2 and it contains the true Excel date of 25-Aug-05,
in
a cell next to that enter this formula:

=OR(MONTH(C2)=MONTH(TODAY()),MONTH(TODAY())-1=MONTH(C2))

What result do you get?

Biff

"viddom" wrote in message
...
Dear Biff,

my computer do the same, but still the cell format do not change. If I
have
to generate some code, lI will be pleased to have some example

"Biff" wrote:

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that
string
to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select
GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the
conditional
formatign with each formula, but when I put a date like 25aug05 the
cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and
"=today()+30"
Format the cell to be color = "yellow"










  #17   Report Post  
Dave Peterson
 
Posts: n/a
Default

If those text dates are all in one column, you can convert them by:

Select the range (whole column???)
data|text to columns
delimited
(uncheck everything)
choose Date (dmy)
and finish up



viddom wrote:

Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the cell do
not change a format. What step I am missing?

"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"



--

Dave Peterson
  #18   Report Post  
viddom
 
Posts: n/a
Default

Hi,

I am here again, still with the same problem. And I would like to know if
you tried the code you gave me. Hope you and the guys can help me

"viddom" wrote:

Dear Biff,

my computer do the same, but still the cell format do not change. If I have
to generate some code, lI will be pleased to have some example

"Biff" wrote:

Are you sure that 25aug05 is being recognized as a TRUE EXCEL DATE?

It looks like a TEXT string to me!

In my version of Excel if I type in 25aug05, Excel converts that string to
25-Aug-05 which is a TRUE EXCEL DATE.

Select the "date" cell and then goto FormatCellsNumber. Select GENERAL.
Does the Sample box show 38589? If not then 25aug05 is a text string.

Biff

"viddom" wrote in message
...
Guys, I don't know what I am doing wrong,cause I tried the conditional
formatign with each formula, but when I put a date like 25aug05 the cell
do
not change a format. What step I am missing?


"cgarrett1999" wrote:

This seems to work also.

Position the cursor over the cells where the date is.

Conditional formatting,
Condition1 "Cell Value Is" "between" "=today()" and "=today()+30"
Format the cell to be color = "yellow"





  #19   Report Post  
What to find * in an access table?
 
Posts: n/a
Default

Hi,

Perhaps try this one

Condition 1: select Formula is

In the next panel type the following if the date colume is "F"
=AND($F2=TODAY(),$F2<TODAY()+30)

Frances


"viddom" wrote:

I have a column with the birthday of some clients and I want the cell format
to change to yellow when his date of birth is withing the current and the
next monat. In order to do that I wrote these formula in the first and
second field of the conditional formating panel=C2=MONTH(TODAY()) and
=C2=MONTH(TODAY())+1 , but it doesn't work.

Can't you tell me what am I doing wrong

Thanks

  #20   Report Post  
JE McGimpsey
 
Posts: n/a
Default

What did you get when you tried the solution I proposed?

In article ,
viddom wrote:

I am here again, still with the same problem

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
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Conditional Formating & Rand() function BaldySlaphead Excel Discussion (Misc queries) 10 July 20th 05 03:43 PM
conditional formating Jed Excel Discussion (Misc queries) 3 June 14th 05 05:11 PM
Conditional Formating Roy Excel Discussion (Misc queries) 4 May 27th 05 01:16 AM
more than 3 conditional formating in excel Manan Excel Discussion (Misc queries) 2 February 7th 05 09:12 PM


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