Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting


I have 3 columns a,b,c.Column a,b contains dates.The dates in these columns
turn red if it is less than today.Column c is Status field which contains D
or M(M=Match, D=DOne).If the Status field is D the date is no more red even
if it is less than today( I set conditional formatting).Now,I want to count
the number of red dates in cloumn a or b .The status for these dates in not D.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

Assuming no empty cells in either range...

=SUMPRODUCT((A1:B10<TODAY())*(C1:C10<"D"))

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...

I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more red
even
if it is less than today( I set conditional formatting).Now,I want to
count
the number of red dates in cloumn a or b .The status for these dates in
not D.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting

Hi T.Valko,

Thanks for your feedback. But there is still something I need to fix. I do
have Blank cells in the Columns a &b. And if there is a red date in both a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these columns
turn red if it is less than today.Column c is Status field which contains D
or M(M=Match, D=DOne).If the Status field is D the date is no more red even
if it is less than today( I set conditional formatting).Now,I want to count
the number of red dates in cloumn a or b .The status for these dates in not D.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.


Ok, in other words you want to count the number of ROWS that meet the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to fix. I do
have Blank cells in the Columns a &b. And if there is a red date in both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more red
even
if it is less than today( I set conditional formatting).Now,I want to
count
the number of red dates in cloumn a or b .The status for these dates in
not D.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting

Hi,
Thanks much for your time and feedback. I tried the formula as you said but
its giving me #na error. I will need help to fix this and make the formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.


Ok, in other words you want to count the number of ROWS that meet the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to fix. I do
have Blank cells in the Columns a &b. And if there is a red date in both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more red
even
if it is less than today( I set conditional formatting).Now,I want to
count
the number of red dates in cloumn a or b .The status for these dates in
not D.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

If you want to send me a *small* sample file that shows what you have and
tell me what result you expect I can probably figure this out. If you want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you said
but
its giving me #na error. I will need help to fix this and make the formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.


Ok, in other words you want to count the number of ROWS that meet the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to fix. I
do
have Blank cells in the Columns a &b. And if there is a red date in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more red
even
if it is less than today( I set conditional formatting).Now,I want to
count
the number of red dates in cloumn a or b .The status for these dates
in
not D.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting

Hi,

Can you please send me your email address, so that I can send you a the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you have and
tell me what result you expect I can probably figure this out. If you want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you said
but
its giving me #na error. I will need help to fix this and make the formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that meet the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to fix. I
do
have Blank cells in the Columns a &b. And if there is a red date in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more red
even
if it is less than today( I set conditional formatting).Now,I want to
count
the number of red dates in cloumn a or b .The status for these dates
in
not D.






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you have and
tell me what result you expect I can probably figure this out. If you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you said
but
its giving me #na error. I will need help to fix this and make the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that meet the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's
more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red date in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more
red
even
if it is less than today( I set conditional formatting).Now,I want
to
count
the number of red dates in cloumn a or b .The status for these
dates
in
not D.








  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting

I have sent you an email with the sample sheet. Can you please confirm
whether you have received it or not?

Thanks!

"T. Valko" wrote:

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you have and
tell me what result you expect I can probably figure this out. If you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you said
but
its giving me #na error. I will need help to fix this and make the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that meet the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's
more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red date in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in these
columns
turn red if it is less than today.Column c is Status field which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no more
red
even
if it is less than today( I set conditional formatting).Now,I want
to
count
the number of red dates in cloumn a or b .The status for these
dates
in
not D.









  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

Yes, I have the file open in front on me.

Please verify that this is what you want to do:

You want to count "red dates" in columns J and K by row (not each cell) if
status in column L is not "D" ?


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
I have sent you an email with the sample sheet. Can you please confirm
whether you have received it or not?

Thanks!

"T. Valko" wrote:

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you have
and
tell me what result you expect I can probably figure this out. If you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you
said
but
its giving me #na error. I will need help to fix this and make the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that meet
the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and it's
more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red date
in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in
these
columns
turn red if it is less than today.Column c is Status field which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no
more
red
even
if it is less than today( I set conditional formatting).Now,I
want
to
count
the number of red dates in cloumn a or b .The status for these
dates
in
not D.













  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

Ok...

I'm only looking at columns J & K...

Your conditional formatting is based on column L not being "D" so you have
to consider that to count the "red cells". I'm not actually counting "red
cells". I'm using the logic of *why* the cells are red to arrive at the
count.

So, for columns J & K use this formula:

=SUMPRODUCT(--(((J13:J120<"")*(J13:J120<=C9))+((K13:K120<"")*( K13:K120<=C9))0),--(L13:L120<"D"))

The correct result is 35.

You have an incorrect date entry in cell K13: 10/1008

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Yes, I have the file open in front on me.

Please verify that this is what you want to do:

You want to count "red dates" in columns J and K by row (not each cell) if
status in column L is not "D" ?


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
I have sent you an email with the sample sheet. Can you please confirm
whether you have received it or not?

Thanks!

"T. Valko" wrote:

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a
the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you have
and
tell me what result you expect I can probably figure this out. If you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you
said
but
its giving me #na error. I will need help to fix this and make the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that meet
the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and
it's
more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red date
in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in
these
columns
turn red if it is less than today.Column c is Status field
which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no
more
red
even
if it is less than today( I set conditional formatting).Now,I
want
to
count
the number of red dates in cloumn a or b .The status for these
dates
in
not D.













  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting

You are a genius!!!Thank you so much for your solution it works great!! I
have been looking for an answer for this problem in so many websites, but
didn't get an answer! I am grateful to you for your help !! Thanks tons!!

"T. Valko" wrote:

Ok...

I'm only looking at columns J & K...

Your conditional formatting is based on column L not being "D" so you have
to consider that to count the "red cells". I'm not actually counting "red
cells". I'm using the logic of *why* the cells are red to arrive at the
count.

So, for columns J & K use this formula:

=SUMPRODUCT(--(((J13:J120<"")*(J13:J120<=C9))+((K13:K120<"")*( K13:K120<=C9))0),--(L13:L120<"D"))

The correct result is 35.

You have an incorrect date entry in cell K13: 10/1008

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Yes, I have the file open in front on me.

Please verify that this is what you want to do:

You want to count "red dates" in columns J and K by row (not each cell) if
status in column L is not "D" ?


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
I have sent you an email with the sample sheet. Can you please confirm
whether you have received it or not?

Thanks!

"T. Valko" wrote:

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a
the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you have
and
tell me what result you expect I can probably figure this out. If you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as you
said
but
its giving me #na error. I will need help to fix this and make the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that meet
the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and
it's
more
complicated since you're using conditional formatting. See this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red date
in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates in
these
columns
turn red if it is less than today.Column c is Status field
which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is no
more
red
even
if it is less than today( I set conditional formatting).Now,I
want
to
count
the number of red dates in cloumn a or b .The status for these
dates
in
not D.














  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates with Conditional Formatting

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
You are a genius!!!Thank you so much for your solution it works great!! I
have been looking for an answer for this problem in so many websites, but
didn't get an answer! I am grateful to you for your help !! Thanks tons!!

"T. Valko" wrote:

Ok...

I'm only looking at columns J & K...

Your conditional formatting is based on column L not being "D" so you
have
to consider that to count the "red cells". I'm not actually counting "red
cells". I'm using the logic of *why* the cells are red to arrive at the
count.

So, for columns J & K use this formula:

=SUMPRODUCT(--(((J13:J120<"")*(J13:J120<=C9))+((K13:K120<"")*( K13:K120<=C9))0),--(L13:L120<"D"))

The correct result is 35.

You have an incorrect date entry in cell K13: 10/1008

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Yes, I have the file open in front on me.

Please verify that this is what you want to do:

You want to count "red dates" in columns J and K by row (not each cell)
if
status in column L is not "D" ?


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
I have sent you an email with the sample sheet. Can you please confirm
whether you have received it or not?

Thanks!

"T. Valko" wrote:

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a
the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you
have
and
tell me what result you expect I can probably figure this out. If
you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as
you
said
but
its giving me #na error. I will need help to fix this and make
the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that
meet
the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and
it's
more
complicated since you're using conditional formatting. See
this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need
to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red
date
in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates
in
these
columns
turn red if it is less than today.Column c is Status field
which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is
no
more
red
even
if it is less than today( I set conditional
formatting).Now,I
want
to
count
the number of red dates in cloumn a or b .The status for
these
dates
in
not D.
















  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NM NM is offline
external usenet poster
 
Posts: 51
Default Counting dates with Conditional Formatting

Moving in the same lines. I have another question for you. In the same sheet,
how can I count the number of rows which have red dates? So, a row might have
1 or 4 or 6 red dates but we will just count it as one. In a nutshell, i want
to count the total number of rows having red dates, no matter how many they
have.

Thanks again for your help.


"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
You are a genius!!!Thank you so much for your solution it works great!! I
have been looking for an answer for this problem in so many websites, but
didn't get an answer! I am grateful to you for your help !! Thanks tons!!

"T. Valko" wrote:

Ok...

I'm only looking at columns J & K...

Your conditional formatting is based on column L not being "D" so you
have
to consider that to count the "red cells". I'm not actually counting "red
cells". I'm using the logic of *why* the cells are red to arrive at the
count.

So, for columns J & K use this formula:

=SUMPRODUCT(--(((J13:J120<"")*(J13:J120<=C9))+((K13:K120<"")*( K13:K120<=C9))0),--(L13:L120<"D"))

The correct result is 35.

You have an incorrect date entry in cell K13: 10/1008

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Yes, I have the file open in front on me.

Please verify that this is what you want to do:

You want to count "red dates" in columns J and K by row (not each cell)
if
status in column L is not "D" ?


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
I have sent you an email with the sample sheet. Can you please confirm
whether you have received it or not?

Thanks!

"T. Valko" wrote:

Try this version:

xl<canhelp<atcomcast<.net

Remove all of the <
Remove "can"

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,

Can you please send me your email address, so that I can send you a
the
sample file.
My apologies but I could not comprehend the email provided below.

Thanks !

"T. Valko" wrote:

If you want to send me a *small* sample file that shows what you
have
and
tell me what result you expect I can probably figure this out. If
you
want
to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi,
Thanks much for your time and feedback. I tried the formula as
you
said
but
its giving me #na error. I will need help to fix this and make
the
formula
work to get my results.
Thanks again for help.

"T. Valko" wrote:

if there is a red date in both a1 and b1, I just
want to count it as 1 and not 2.

Ok, in other words you want to count the number of ROWS that
meet
the
condition, not every cell?

Try this:

=SUMPRODUCT(--(MMULT(--(A1:B10<"")*(A1:B10<TODAY()),{1;1})0),--(C1:C10<"D"))

This will only work if the range is less than 5462 rows.

If that doesn't work then you'll have to use some VBA code and
it's
more
complicated since you're using conditional formatting. See
this:

http://www.cpearson.com/Excel/CFColors.htm


--
Biff
Microsoft Excel MVP


"NM" wrote in message
...
Hi T.Valko,

Thanks for your feedback. But there is still something I need
to
fix. I
do
have Blank cells in the Columns a &b. And if there is a red
date
in
both
a1
and b1, I just want to count it as 1 and not 2.
I will appreciate your help.
Thanks!


"NM" wrote:


I have 3 columns a,b,c.Column a,b contains dates.The dates
in
these
columns
turn red if it is less than today.Column c is Status field
which
contains
D
or M(M=Match, D=DOne).If the Status field is D the date is
no
more
red
even
if it is less than today( I set conditional
formatting).Now,I
want
to
count
the number of red dates in cloumn a or b .The status for
these
dates
in
not D.

















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
Counting Conditional Formatting Results Jugglertwo Excel Discussion (Misc queries) 3 February 1st 08 05:07 PM
Conditional formatting and counting. Pank Excel Discussion (Misc queries) 5 March 19th 07 09:11 AM
Conditional formatting and then counting specifics within it. Pank New Users to Excel 2 March 13th 07 11:32 AM
Counting Cells with Conditional Formatting JasonC Excel Discussion (Misc queries) 6 December 30th 05 05:33 AM
counting cells with conditional formatting applied HalB Excel Discussion (Misc queries) 3 February 21st 05 01:21 PM


All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"