简体   繁体   中英

Referencing A Formula In Another Cell

Is it possible to enter formula text into a cell and then reference use that formula text in a other formula?

For example, I'm trying to do a VLOOKUP that changes which table it's looking at based on some other criteria. Instead of writing a cumbersome formula that includes the VLOOKUP formulas for each table I'll be referencing, I thought it might be a little easier to just have the VLOOKUP formulas in a table, and then write an IF statement that will determine which formula to use. Is it possible to say for example IF(A1=true, insert formula in D1, "")?

如果您的表格格式相同,那么您可以切换它并使用 VLOOKUP 公式引用的表格名称,例如,如果您将表格名称下拉列表放入 A1 并将查找值放入 B1 然后使用类似=VLOOKUP(B1,INDIRECT("'" & A1 & "[[COLUMN1]:[COLUMN5]]"),5,FALSE) (未经测试)

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