简体   繁体   中英

excel 2016 return cell according to current month

can anyone help me with an excel 2016 formula.

I have values in 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.

eg if current month is JAN then return value in A1 into A13, if current month is MAY then return A5 into A13.

Many Thanks

我没有Excel 2016,但请尝试:

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

Please try the INDEX function, in A13

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

在此处输入图片说明

Adding for A4:L4 range,

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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