I have a set of start and end dates that can cover several years. These are award dates for grants.
For any pair of start and end dates I want to be able to calculate how many days there are for a particular fiscal year.
In my organization the fiscal year is from 6/1/xx to 5/31/xx
So for example if I have a set of dates from 2/7/2011 - 2/6/2016 how many days are there in the fiscal year ending 5/31/11.
I know by looking to count the days from 2/7/11 to 5/31/11, its 113. But a formula escapes me. I've tried different kinds of IF statements but I can't crack it. Any solutions?