I want to create a sheet trigger to select the previous year and the current year but not the current month.
If for example we were in 201604...
Sample data is as follows:
201511
201512
201601
201602
201603
201604
Selection I would want would be:
201511
201512
201601
201602
201603
In the Trigger expression you can use the
YearStartfunction along with theMAXfunction to get all of the previous year plus the current years months excluding the current month.