I have written this function that will give me a monthly sum for two columns: one has the date of each order, one has the cost of each order.
=SUMIF($C$1:$C$1000,">="&DATE(2010,6,1),$D$1:$D$1000)-SUMIF($C$1:$C$1000,">="&DATE(2010,7,1),$D$1:$D$1000)
Using data like this:
8/16/10 17:00 7.99
8/16/10 14:25 7.99
8/15/10 22:42 7.99
I end up with a table like this:
May 998
June 968.28
July 1239.76
August 514.96
However, now I would like to do daily sums and using my way I have to hand edit each row.
How can I do this better in Excel?
Use a column to let each date be shown as month number; another column for day number:
The formula for
A1is=Month(C1)The formula for
B1is=Day(C1)For Month sums, put the month number next to each month:
The formula for
G1is=SumIf($A$1:$A$100, E1, $D$1:$D$100). This is a portable formula; just copy it down.Total for the day will be be a bit more complicated, but you can probably see how to do it.