如图所示,我想做个只有年月的下拉框控件,只查询近两年的所有月份,除了使用自定义外,能用公式实现吗
=UNIQUEARRAY(MAPARRAY(RANGE(MONTHDELTA(today(),-24), today()), FORMAT(item, "yyyy-MM")))
WorkBook42.cpt
= UNIQUEARRAY(MAPARRAY(RANGE(DATEINYEAR(YEARDELTA(today(),-1),1), DATEINYEAR(today(),-1)), FORMAT(item, "yyyy-MM")))