I have a sheet:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dates[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]01/05/2014[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]01/02/2013[/TD]
[TD]656[/TD]
[/TR]
[TR]
[TD]01/06/2013[/TD]
[TD]656[/TD]
[/TR]
</tbody>[/TABLE]
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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dates[/TD]
[TD]Profit[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]01/05/2014[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]01/02/2013[/TD]
[TD]656[/TD]
[/TR]
[TR]
[TD]01/06/2013[/TD]
[TD]656[/TD]
[/TR]
</tbody>[/TABLE]
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