Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Formula to count month-specific items

Hello,

I need a formula to do the following.

Column A = ascending dates, e.g. 01/01/07, 02/01/07 etc
Column B = a figure corresponding to its date in column A

I then have different cells corresponding to the 12 months. I need each of
these to show the total figure from column B but only those from its specific
month. So, I could do with an example of a formula to use. Let's say the
total for January will be in cell C2. What formula would I put in that cell
to make a total for column B, but only for items from January (the dates
being in column A)?

This is a clarification of an earlier post which may have been too confusing
as there have been no replies.

Many thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Formula to count month-specific items

On Thu, 4 Jan 2007 04:51:00 -0800, IoHeFy
wrote:

Hello,

I need a formula to do the following.

Column A = ascending dates, e.g. 01/01/07, 02/01/07 etc
Column B = a figure corresponding to its date in column A

I then have different cells corresponding to the 12 months. I need each of
these to show the total figure from column B but only those from its specific
month. So, I could do with an example of a formula to use. Let's say the
total for January will be in cell C2. What formula would I put in that cell
to make a total for column B, but only for items from January (the dates
being in column A)?

This is a clarification of an earlier post which may have been too confusing
as there have been no replies.

Many thanks!


If you want to sum the values for January 2007, you can use this:

=SUMIF(A:A,"="&DATE(2007,1,1),B:B) - SUMIF(A:A,""&DATE(2007,1,31),B:B)

Obviously, you can substitute a cell reference for the DATE function; or for
part of it.

For example, if you had 1 January 2007 in C1, you could substitute:

=SUMIF(A:A,"="&C1,B:B) - SUMIF(A:A,""& C1+32-DAY(C1+32),B:B)




--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Formula to count month-specific items

=SUMPRODUCT((MONTH($A$1:$A$100)=1)*SUMIF($A$1:$A$1 00,$A$1:$A$100&"",$B$1:$B$100))

this assumes you're looking at 100 rows of data, and allows for blank rows.
if you want to sum February, change the month()=1 to =2...

"IoHeFy" wrote:

Hello,

I need a formula to do the following.

Column A = ascending dates, e.g. 01/01/07, 02/01/07 etc
Column B = a figure corresponding to its date in column A

I then have different cells corresponding to the 12 months. I need each of
these to show the total figure from column B but only those from its specific
month. So, I could do with an example of a formula to use. Let's say the
total for January will be in cell C2. What formula would I put in that cell
to make a total for column B, but only for items from January (the dates
being in column A)?

This is a clarification of an earlier post which may have been too confusing
as there have been no replies.

Many thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Formula to count month-specific items

Check your earlier post, subject: Formula Madness.........you have two replys
there

Vaya con Dios,
Chuck, CABGx3

"IoHeFy" wrote:

Hello,

I need a formula to do the following.

Column A = ascending dates, e.g. 01/01/07, 02/01/07 etc
Column B = a figure corresponding to its date in column A

I then have different cells corresponding to the 12 months. I need each of
these to show the total figure from column B but only those from its specific
month. So, I could do with an example of a formula to use. Let's say the
total for January will be in cell C2. What formula would I put in that cell
to make a total for column B, but only for items from January (the dates
being in column A)?

This is a clarification of an earlier post which may have been too confusing
as there have been no replies.

Many thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default Formula to count month-specific items

Try filling down in columns C and D:

C D
Jan-07 =SUMIF(A:A,"<"&C2,B:B)-SUMIF(A:A,"<"&C1,B:B)
Feb-07 =SUMIF(A:A,"<"&C3,B:B)-SUMIF(A:A,"<"&C2,B:B)

IoHeFy wrote:
Hello,

I need a formula to do the following.

Column A = ascending dates, e.g. 01/01/07, 02/01/07 etc
Column B = a figure corresponding to its date in column A

I then have different cells corresponding to the 12 months. I need each of
these to show the total figure from column B but only those from its specific
month. So, I could do with an example of a formula to use. Let's say the
total for January will be in cell C2. What formula would I put in that cell
to make a total for column B, but only for items from January (the dates
being in column A)?

This is a clarification of an earlier post which may have been too confusing
as there have been no replies.

Many thanks!


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
formula to count cells containing #'s in a specific range woogiebooboo Excel Worksheet Functions 1 April 27th 06 08:23 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
formula: First and last day in month Zbigniew Lewandowski Excel Worksheet Functions 6 October 16th 05 04:51 AM
Count items between specific hours on a matching date KS Excel Worksheet Functions 1 December 10th 04 05:52 PM
Count If Formula Mimi Excel Worksheet Functions 0 November 5th 04 11:55 AM


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