简体   繁体   中英

Excel replace column name with cell value in formula

I want to replace a columnname with a cell value in a formula: 在此处输入图像描述

Seems like a simple problem, but I can't find the right way to dynamically (based on another cell value) create the column name for the formula.

Thanks for any hints

Reto

Use INDIRECT:

=INDIRECT("table[@"&E1&"]")

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