Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formula to group dollar amounts by date

Status
Not open for further replies.

ginaburg

Technical User
Jul 14, 2004
62
US
I have an excel spreadsheet that has a column with a date and one with a dollar amount.
I would like to put summaries by month at the bottom of the page.
I would like to list each month
January $$
February $$
March $$
etc...
If the date falls in January add the amount field to the January summary field, if the date falls in february add the amount field to the february summary field, etc.

I hope this makes sense.
Thanks
Gina
 
You could try this.

Set the format of your date to custom (mmmm)or add another coulmn with this format
Then insert a subtotal.

Data, Sub total, (criteria) Change of each "Month", Use Function Sum and add Sub Total to "Amount"

This assumes your 2 columns are headed "Month" and "Amount"
If not adjust Subtotals to accomodate

Proabably a quicker way but this should work

Regards, Phil

"Then I’d say what’s the point of having rank if you can’t pull it?"

(DCI Jack Meadows)
 
Forgot to mention

Sort the columns by Date first!

Regards, Phil

"Then I’d say what’s the point of having rank if you can’t pull it?"

(DCI Jack Meadows)
 
That works great.

I can get it to work with
>=06/01/04 as the criteria but how do I put in the criteria as a date range like:
>=06/01/04 or <=06/30/04
 
hey try something like this: not sure if there is an easier way

=SUMIF(A1:A6;">06/01/04";B1:B6)-SUMIF(A1:A6; "<06/30/04";B1:B6)

if u need more help ask and i will try to have a deeper look into it
 
Hi,

I might use the PivotTable Wizard, Drag Date into the ROW AREA and Amount into the DATA AREA using Sum Of Amount.

Then Right Click Date heading in the PivotTable and select Group and Show Detail/Group and select Year & Month for the grouping

VOLA!

Skip,

[red]Be advised:[/red] [glasses]
Alcohol and Calculus do not mix!
If you drink, don't derive! [tongue]
 
or u can use sumproduct

=SUMPRODUCT((A1:A6>=A1)*((A1:A6<=A3))*B1:B6)

should do the trick quite well, its an array formula so u haev to press crtl-shift-enter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top