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:

[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
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,222,241
Messages
6,164,787
Members
451,917
Latest member
WEB78

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