SUM IF DATE IN IN THAT MONTH

superstarr

Board Regular
Joined
Jul 10, 2003
Messages
54
hi
need a little hlp pls
have a range of dates, ie 3/11/2004
would like to have the sum of all the dates by month
tried the sumif, but cant figure out how to tell formula that 3/11/2004 is in march so add to the march total

thx much

JOn
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi There

In the column next to your dates insert - assuming dates in column A
=Month(A1) this converts the date to a number

Then to summarize

=SUMIF(B1:B6,1,C1:C6)
This will give the total for Janurary, which will = 1
now do one sumif for each month changing the one.
=SUMIF(B1:B6,2,C1:C6)
=SUMIF(B1:B6,3,C1:C6)

ect....


Dan
 
Upvote 0
Andrew Poulsom,

You are a lovely guy.. I have seen you giving amazing solutions..Thank you!
mrxlsx
_______________________________________________________________
"Real knowledge is to know the extent of one's ignorance".....Confucius
 
Upvote 0
try it also by Array formula

Excel 2007
ABCDEF
1DateSalesDateSum
201/01/201331301/07/20131531
316/01/2013629
431/01/2013925
515/02/2013583
602/03/2013907
717/03/2013642
801/04/2013453
916/04/2013612
1001/05/2013568
1116/05/2013429
1231/05/2013264
1315/06/2013497
1430/06/2013994
1515/07/2013915
1630/07/2013616
1714/08/2013351
1829/08/2013668
1913/09/2013244
2028/09/2013438
2113/10/2013309
2228/10/2013664
2312/11/2013778
2427/11/2013580
2512/12/2013166
2627/12/2013863
Sheet3
Cell Formulas
RangeFormula
F2{=SUM(IF(MONTH($A$2:$A$26)=MONTH(E2),$B$2:$B$26))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hello Hussein,

I tried this whole night, but stuck up at giving the argument $B$2:$B$26 yesterday.. thanks anyways..Hussein
 
Upvote 0
try it also by Array formula


Array Formulas
CellFormula
F2{=SUM(IF(MONTH($A$2:$A$26)=MONTH(E2),$B$2:$B$26))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

Hi,

Sorry to reopen, what seems to be a closed topic, but i have hit a snag with this solution.

It has worked perfectly for all of the months, other than january, which is giving a total of all of the months combined. (i assume its, seeing the 1 as true)

Any ideas how to resolve this please?
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top