summing amount in a report based on date ranges

gordytech

New Member
Joined
Jun 29, 2016
Messages
5
i have a sales table that includes the following fields; date, amount, custname

the report has grouping for cust name

i would like the report to show the the cust name and the amount purchased each month

in the group footer i was intending to have 12 controls with each one doing sum, iif for that month

question is - where do i list the field i want the sum to act on in the following equation

=Sum(IIf([DATE] Between (12/31/2014) And (1/31/2015),0))
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Instead of using your table as a record source, use a query as the record source. Create your criteria in your query and then have the report based on the query.
 
Upvote 0
thanks, but the same question for me applies to making it part of a query, if I create a field in the query and want it to sum the month of january;

how do i do that?

JAN: Sum(IIf([DATE] Between (12/31/2014) And (1/31/2015),([AMOUNT]),0)) doesnt work

or do i put the date range in the criteria line
 
Upvote 0
A two step process. Create a query that limits your activity to the date range. Put the date range in the criteria using the Between function.

Then create a second query using the first and group your query on the fields you need to be totalled. See the following link

MS Access: Sum Function
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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