Sum YTD of fiscal year beginning april based on month&year inputs

SirPie

New Member
Joined
Aug 29, 2014
Messages
12
I have a sheet:

DatesProfit
01/01/2014200
01/05/2014100
01/02/2013656
01/06/2013656

<tbody>
</tbody>

And I need it to sum the YTD based on on a fiscal year beginning in april. the problem is the user must be able to select the year and month and for it to calculate the ytd based on the input

example:

Year: 2014
Month: 8

I would need SUM of profit for months 4,5,6,7,8 for 2014(YTD).

If the selection was

Year: 2015
Month: 3

I would need the sum of profits for months: 3,2,1 for 2015, and 12,11,10,9,8,7,6,5,4 for 2014.

and so on going forward, and backwards (if 2013 was selected woulld need from 2012 as well).

New inputs are constantly added. and the sum of ytd would be in a separate cell of course.

Thanks for your help
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Dates Profit fiscal year
01-01-2014 200 2014
01-05-2014 100 2015
01-02-2013 656 2013
01-06-2013 656 2014

c2=if(month($A2)>=4,year($A2)+1,year($A2))

and drag down.

now you can make a pivot table to analyze your data.

You also can use sumif, with column C as criteria (fiscal year).
 
Upvote 0
Dates Profit fiscal year
01-01-2014 200 2014
01-05-2014 100 2015
01-02-2013 656 2013
01-06-2013 656 2014

c2=if(month($A2)>=4,year($A2)+1,year($A2))

and drag down.

now you can make a pivot table to analyze your data.

You also can use sumif, with column C as criteria (fiscal year).

Thanks for your help. Simple solution yet the problem om facing is it needs to sum ytd to that specific month. As is it will sum the entire fiscal year.

For eexample if the user selects
Year 2014
Month 7

It will havw to sum up until month 7 and not include month 8
 
Upvote 0
Code:
Thanks for your help. Simple solution yet the problem om facing is it needs to sum ytd to that specific month. [COLOR="#B22222"]As is it will sum the entire fiscal year.[/COLOR]
The above request is from #4.

Code:
thanks for your help, but it must be in formula form not pivot table and must calculate [COLOR="#B22222"]ytd to specific month, not full fiscal year [/COLOR]
The above request is from #6


Why such differant request !!!


And where do you added that you don't want to have a pivot table solution?



Please reply.
 
Upvote 0
Code:
Thanks for your help. Simple solution yet the problem om facing is it needs to sum ytd to that specific month. [COLOR="#B22222"]As is it will sum the entire fiscal year.[/COLOR]
The above request is from #4.

Code:
thanks for your help, but it must be in formula form not pivot table and must calculate [COLOR="#B22222"]ytd to specific month, not full fiscal year [/COLOR]
The above request is from #6


Why such differant request !!!


And where do you added that you don't want to have a pivot table solution?



Please reply.

In 4 i meant solution only shows entire year and not ytd based on month. Sorry i did not specify it must be a formula. I meant to write it and it must have slippes my mind.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,211
Members
448,554
Latest member
Gleisner2

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