如何将月份转化成所属的季度,提供四种方法供参考:
="第"&TEXT(LEN(2^A2),"[dbnum1]")&"季度"
="第"&VLOOKUP(A2,{1,"一";4,"二";7,"三";10,"四"},2)&"季度"
=TEXT(CEILING(A2/3,1),"第[DBNUM1]0季度")
="第"&XLOOKUP(A2,{1;4;7;10},{"一";"二";"三";"四"},,-1)&"季度",
所有的方法都支持数组,也就是说将A2:A13一次性输出结果:
="第"&TEXT(LEN(2^A2:A13),"[dbnum1]")&"季度",以此类推。
评论 (0)