Sum Past three months Revenue

north19701

Active Member
Joined
Jun 17, 2003
Messages
491
I have a query where I need a calculated field to total 3 months worth of revenue by vendor. For example:

Month Vendor Revenue
12/31/2004 - Jackson - $100.00
1/31/2004 - Jackson - $100.00
2/29/2004 - Jackson - $100.00
3/31/2004 - Jackson - $100.00
4/30/2004 - Jackson - $100.00
12/31/2004 - Murray - $100.00
1/31/2004 - Murray - $100.00
2/29/2004 - Murray - $100.00
3/31/2004 - Murray - $100.00
4/30/2004 - Murray- $100.00

I need to set up a calculated field in the query that will sum vendor totals, in this case from 2/2004 to 4/2004. Of course next month this will change to 3/2004 to 5/2004. Can anyone help with this?
 
Looks like that works good. I guess ctr # is the same as vendor. The example I sent before doesn't seem work that good. I thought I had it. Tried it again and got garbage. Too late in the day to figure out why.

That's one good thing about posting; everyone has a different technique. Using DSum in that way may be quite helpful as I do a lot of rolling average type of stuff. Typically I'll code it out but now you've given me a good way to get at stuff quicker.

thanks

I'm from Newark. St. Mark's and UD.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
well cool, glad I could help. DSUM seemed to work best for me.
I live in Bear now, right below newark, came from Elkton in cecil county (don't hold it against me... :LOL: )
 
Upvote 0
Was ctr # the same as vendor? That's the one part I haven't gotten to work.
Code:
","[Ctr #] = " & [Ctr #] & " AND
 
Upvote 0

Forum statistics

Threads
1,221,692
Messages
6,161,351
Members
451,697
Latest member
pedroDH

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