Pull YTD and MTD from Table

Sully38

Board Regular
Joined
Mar 9, 2004
Messages
167
I have a table that contains currency data in monthly rows. I need to generate a query that will select just the current Month and sum it as MTD and also sum the previous months up to the current month as YTD.
Example Feb MTD would be Feb and Feb YTD would be Jan + Jeb. Is this possible within a query? or is this something that needs some VBA Coding. :cool:
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi, calculating MTD and YTD figures can definitely be done in a query. You don't need VBA to do this. Have a read through this post where Brian and I go through a whole variety of reporting MTD and YTD for this year and last year. If you get stuck then reply to this post.
HTH, Andrew. :)
 
Upvote 0

Forum statistics

Threads
1,221,849
Messages
6,162,425
Members
451,765
Latest member
craigvan888

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