LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
ZMAN
 
Posts: n/a
Default SUMIF for Dates / Months ?

Hi, I have a spreadsheet that has every day of the year (1/1/2004 to
12/31/2004) and I am trying to sum a column next to it to get only
totals for each month. Basically I want to know what I get as a sum
for all of January, February, etc.

So I am trying to use SUMIF in combination with Month(A1:A365)=1
through =12 and just sum those that are in month 1 and then those in
month 2, etc.

Column A has all dates and column B has revenue numbers ($ made that
day)

Can anyone suggest how to do it right?

I was trying arrays like:
for February: {=SUM(IF((MONTH(A:A)=2),1,0)*(B:B))}

I also tried SUMIF such as:
example February: =SUMIF(A:A,MONTH(A:A)&""&"2",B:B)

I know I am doing something utterly wrong but can you please help?

Thanks!

 
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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
months between 2 dates!!! speary Excel Discussion (Misc queries) 1 August 19th 05 03:22 PM
Why "datedif" function results sometimes negative numbers? Ambrosiy Excel Worksheet Functions 1 July 8th 05 11:29 AM
How do i change 15 months to read 1 year and 3 months? Marty Excel Discussion (Misc queries) 1 February 17th 05 11:21 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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