Lookup function/sum function
Assumptions:
Sheet1!A2:A100 contains the sales order date (true date values)
Sheet1!B2:B100 contains the total price
Sheet2!B1:D1 contains the first day of the month and year of interest,
such as November 1, 2005, December 1, 2006, and January 1, 2006 (format
cells as desired)
Formula:
B2, copied across:
=SUMPRODUCT(--(Sheet1!$A$2:$A$100-DAY(Sheet1!$A$2:$A$100)+1=Sheet2!B$1),S
heet1!$B$2:$B$100)
Change the references accordingly.
Hope this helps!
In article ,
Secret Squirrel wrote:
I have a worksheet (sales orders) that has a list of sales orders that I need
to total up on a different summary worksheet by month. On the sales order
worksheet I have one column that has the sales order date and another that
has the total price. What I want to do is have all the sales added up for
each month on another worksheet. The headers I have on the summary worksheet
are "11/06", "12/06", etc. I want it to just put the summary for each month
it finds on the sales order worksheet under the correct month.
|