Please vote:
I’ve been needing something like this for a very long time. I’ve done some very crude workarounds using secondary google sheets, or massive 180 column array columns that are populated via sheet formulas with every possible date within a range. I don’t know if I even understand how it works anymore.
As for your situation, is your fiscal year always consistent as far as the month and day? I wonder if you could have an additional column that gets populated with a fiscal year, such as 2018/19, or 2019/20 when the row is created, or maybe you can get creative with some math, template, and IF columns to dynamically build your fiscal year based on the date in the row.
I have a couple of similar cases. One is where I want to have a relation that finds similar related rows with a date prior to the date in the current row. In this case, I don’t have an exact list of dates to match up to. I need to compare to a range of dates. This is needed so I get get rollup columns to return the correct rollup value. The other situation I have is with a sheet of lessons that have dates. I also have another sheet with billing cycles that have a beginning and end date. What I try to do is dynamically link the lessons to the billing cycle, where the lesson date is within beginning and end dates of the billing cycle…and I try to link a billing cycle to the lessons, where the lesson date is within that beginning and end date of the billing cycle. Lesson dates and billing cycles can be modified at any time so I need those links to be dynamic. I can’t rely on hard setting a lesson to belong to a billing cycle because that billing cycle may or may not exist yet. Being able to put conditions on a relation would make this so much easier.
I think we share a similar need, but I think yours might be achievable.
Maybe you could have four math columns:
- one with YEAR(date)-1
- one with YEAR(date),
- one with YEAR(date)+1.
- finally one with MONTH(date)*100+DAY(date)
Then create two template columns:
- one that joins the -1 year and current year (ex. 2019/2020)
- one that joins the current year and +1 year (ex. 2020/2021)
Then create an IF column as follows:
IF month/day < 0604
THEN first template column
ELSE second template column
That might get you close to what you want.