Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default ContIF Formula Needed

I need a formula that would look into a range of Dates and count how many
values I have for each month.

Example:

Date Results
1-Jan January 3
2-Jan Feb 4
3-Jan Mar 1
1-Feb Oct 2
7-Feb
9-Feb
10-Feb
5-Mar
1-Oct
2-Oct

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 863
Default ContIF Formula Needed

Have you considered a pivot table, grouping the dates by month? That may be a better
solution, particularly if your data spans more than 1 year, so you have Jan 2006 and Jan
2007.

Or you can try COUNTIF. Put the month numbers in say, B1:B12, this formula in C1, and copy
it down through C12:

=COUNTIF(A$1:A$100,"="&DATE(2007,B1,1))-COUNTIF(A$1:A$100,"="&DATE(2007,B1+1,1))

On Mon, 5 Nov 2007 11:33:03 -0800, Nhernandez
wrote:

I need a formula that would look into a range of Dates and count how many
values I have for each month.

Example:

Date Results
1-Jan January 3
2-Jan Feb 4
3-Jan Mar 1
1-Feb Oct 2
7-Feb
9-Feb
10-Feb
5-Mar
1-Oct
2-Oct

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default ContIF Formula Needed

Say your list starts in A1.
In B1 enter
jan
and copy down to B12 to create a list of unique months.

Then in C1, enter this formula:

=COUNTIF($A$1:$A$100,TEXT(B1,"mmm"))

And copy down to C12.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Nhernandez" wrote in message
...
I need a formula that would look into a range of Dates and count how many
values I have for each month.

Example:

Date Results
1-Jan January 3
2-Jan Feb 4
3-Jan Mar 1
1-Feb Oct 2
7-Feb
9-Feb
10-Feb
5-Mar
1-Oct
2-Oct



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default ContIF Formula Needed

Hi,

Try something like this:

=SUMPRODUCT(($A$1:$A$3000)*(MONTH($A$1:$A$300)=RO W(A1)))

this will count the number of dates for the month of january "ROW(A1)"
copy down 11 more rows for the rest of the months.

HTH
Jean-Guy

"Nhernandez" wrote:

I need a formula that would look into a range of Dates and count how many
values I have for each month.

Example:

Date Results
1-Jan January 3
2-Jan Feb 4
3-Jan Mar 1
1-Feb Oct 2
7-Feb
9-Feb
10-Feb
5-Mar
1-Oct
2-Oct

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
function contif Isaías. New Users to Excel 2 March 6th 07 01:09 PM
Formula help needed [email protected] Excel Worksheet Functions 0 May 24th 06 07:13 PM
Formula Help Needed carl Excel Worksheet Functions 3 May 24th 06 05:29 PM
CONTIF DEPENDING ON TEXT/NUMBER COLOR Fecozisk Excel Discussion (Misc queries) 6 May 21st 06 05:27 PM
Formula needed audi Excel Discussion (Misc queries) 4 August 3rd 05 12:09 PM


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