简体   繁体   English

excel 2016返回单元格,根据当月

[英]excel 2016 return cell according to current month

can anyone help me with an excel 2016 formula. 谁能帮我提供Excel 2016公式。

I have values in A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12 我在A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12中具有值

I want to return those values into A13 depending on the current month. 我想根据当前月份将这些值返回到A13中。

eg if current month is JAN then return value in A1 into A13, if current month is MAY then return A5 into A13. 例如,如果当前月份为JAN,则将A1中的值返回A13;如果当前月份为MAY,则将A5返回A13。

Many Thanks 非常感谢

我没有Excel 2016,但请尝试:

=OFFSET(A1,MONTH(TODAY())-1,)

Please try the INDEX function, in A13 请尝试在A13使用INDEX函数

=INDEX(A1:A12,MONTH(TODAY()),1)

在此处输入图片说明

Adding for A4:L4 range, 添加A4:L4范围,

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM