Hell dear Excel lovers.
I've my sheet setup with dates going from January 1 to December 31. It has two column namely Date and Debit now I want to sum the debit column by month. any help would be appreciated.
Thank you Aladin Akyurek for your reply. actually it seems complicated to me, I am a new to Excel, could you please amend the following formula to my need:
=SUM(IF(MONTH(Date)=7,Debit,0))
this will calculate the sum for the month of July. what I want is to increase the number 7 automatically when I drag the formula down to December (i.e. 12) then it should come down to 1, and finally it should start to increase to June. My spreadsheet date begins from July and end at June. I have applied the Name Range to my data as:
Date Column = Date
Debit Column = Debit
Thanking you in advance.
Thank you, this solved the problem.
Couldn't we just get rid of the reference cell (X1). In other words, is there a way to embed the Month in the formula so that when we drag the formula down it should change to the next month, i.e. July -> August -> September -> October -> November -> December -> January -> February -> up to June.
Once again I appreciate your response.
Would you also please correct the following formula for me:
=SUMPRODUCT(MONTH(Date)=7,Debit)
this is for the month of July only.
I entered it with ctrl+enter and ctrl+shift+enter, it do not work in either case.