Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to set the function - countif?

Does anyone have any suggestions on how to set the function - countif?
There is a list of date under column A, and there is a given date in cell B1,
I would like to count the date only match the month and day without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2 in cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to set the function - countif?


Hi,
Try =SUMPRODUCT((MONTH(A7:A10)=MONTH(b1))*(DAY(A7:A10) =DAY(b1)))


Eric;268242 Wrote:
Does anyone have any suggestions on how to set the function - countif?
There is a list of date under column A, and there is a given date in
cell B1,
I would like to count the date only match the month and day without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2 in
cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric




Adapt the range to your needs ( ranges like B:B are not possible in xl
versions before 2007)


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74851

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to set the function - countif?

=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))

SUMPRODUCT() should always be considered if you are using more than one
criteria.

See:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200838


"Eric" wrote:

Does anyone have any suggestions on how to set the function - countif?
There is a list of date under column A, and there is a given date in cell B1,
I would like to count the date only match the month and day without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2 in cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to set the function - countif?

Thank everyone very much for suggestions
I receive 0 instead of 2 from following code.
=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))
What wrong is it?
Thank everyone very much for any suggestions
Eric

"Gary''s Student" wrote:

=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))

SUMPRODUCT() should always be considered if you are using more than one
criteria.

See:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200838


"Eric" wrote:

Does anyone have any suggestions on how to set the function - countif?
There is a list of date under column A, and there is a given date in cell B1,
I would like to count the date only match the month and day without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2 in cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to set the function - countif?

I need to cover a table, which include blank space "", which cause the error,
but I cannot skip those blank space "".
Does anyone have any suggestions on how to avoid those error because of this
blank space within table from A1 to Z36? and return 2 in cell B2
Thank everyone very much for suggestions
Eric

"Eric" wrote:

Thank everyone very much for suggestions
I receive 0 instead of 2 from following code.
=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))
What wrong is it?
Thank everyone very much for any suggestions
Eric

"Gary''s Student" wrote:

=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))

SUMPRODUCT() should always be considered if you are using more than one
criteria.

See:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200838


"Eric" wrote:

Does anyone have any suggestions on how to set the function - countif?
There is a list of date under column A, and there is a given date in cell B1,
I would like to count the date only match the month and day without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2 in cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to set the function - countif?


Things would be easier if you could post a sample of your data.
You can do it on our forum ( no strings attached) and you will get a
speedy
answer.
Cheers
Eric;268428 Wrote:
I need to cover a table, which include blank space "", which cause the
error,
but I cannot skip those blank space "".
Does anyone have any suggestions on how to avoid those error because of
this
blank space within table from A1 to Z36? and return 2 in cell B2
Thank everyone very much for suggestions
Eric

"Eric" wrote:

Thank everyone very much for suggestions
I receive 0 instead of 2 from following code.
=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))
What wrong is it?
Thank everyone very much for any suggestions
Eric

"Gary''s Student" wrote:

=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))

SUMPRODUCT() should always be considered if you are using more than

one
criteria.

See:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200838


"Eric" wrote:

Does anyone have any suggestions on how to set the function -

countif?
There is a list of date under column A, and there is a given date

in cell B1,
I would like to count the date only match the month and day

without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2

in cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in

term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric


Things would be easier if you could post a sample of your data.
You can do it on our forum ( no strings attached) and you will get a
speedy
answer.
Cheers


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74851

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to set the function - countif?

Thank everyone very much for suggestions
I don't solve this problem, but replace the character "" with 0, and this
formula is working.
Thank everyone very much
Eric

"Pecoflyer" wrote:


Things would be easier if you could post a sample of your data.
You can do it on our forum ( no strings attached) and you will get a
speedy
answer.
Cheers
Eric;268428 Wrote:
I need to cover a table, which include blank space "", which cause the
error,
but I cannot skip those blank space "".
Does anyone have any suggestions on how to avoid those error because of
this
blank space within table from A1 to Z36? and return 2 in cell B2
Thank everyone very much for suggestions
Eric

"Eric" wrote:

Thank everyone very much for suggestions
I receive 0 instead of 2 from following code.
=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))
What wrong is it?
Thank everyone very much for any suggestions
Eric

"Gary''s Student" wrote:

=SUMPRODUCT((MONTH(A1:A100)=MONTH(B1))*(DAY(A1:A10 0)=DAY(B1)))

SUMPRODUCT() should always be considered if you are using more than

one
criteria.

See:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200838


"Eric" wrote:

Does anyone have any suggestions on how to set the function -

countif?
There is a list of date under column A, and there is a given date

in cell B1,
I would like to count the date only match the month and day

without
concerning the year, and return the number in cell B2.
For example,
Under column A,
11-Dec-2008
13-Jun-2007
14-Apr-2008
14-Apr-2006
The given date is 14-Apr-2003 in cell B1, and it should return 2

in cell B2,
because
14-Apr-2008 and 14-Apr-2006 match the given date 14-Apr-2003 in

term of
month and day.
Does anyone have any suggestions on how to set the formula?
Thanks in advance for any suggestions
Eric


Things would be easier if you could post a sample of your data.
You can do it on our forum ( no strings attached) and you will get a
speedy
answer.
Cheers


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74851


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
countif function Dave Excel Worksheet Functions 4 February 5th 09 05:34 PM
COUNTIF Function PatJennings Excel Worksheet Functions 4 June 4th 08 08:54 PM
please help how to combine IF function with Countif function Dinesh Excel Worksheet Functions 6 March 30th 06 08:28 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM


All times are GMT +1. The time now is 10:54 AM.

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"