简体   繁体   中英

EXCEL:: Can I use =TODAY() function in INDEX reference function?

Like the title, can I use =TODAY() function in INDEX reference?

At cell, I made INDEX function like this

INDEX('C:\files[THE_LIST_YYMMDD.xlsx]thelist':$AO,$AO,MATCH($A$15:'C.\files[THE_LIST_YYMMDD:xlsx]thelist',$Y:$Y,0))

And I want to put today's YYMMDD at file reference [THE_LIST_YYMMDD.xlsx]. Is there any way to put function in file reference? Like =TODAY() function?

By using TEXT(TODAY(),"YYMMDD") inside an INDIRECT function:

=INDEX(INDIRECT("'C:\files[THE_LIST_"&TEXT(TODAY(),"YYMMDD")&".xlsx]thelist':$AO,$AO"),MATCH($A$15: INDIRECT (""'C,\files[THE_LIST_"&TEXT(TODAY()."YYMMDD")&":xlsx]thelist',$Y:$Y"),0))

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