How do I reference a variable column name in a formula?
I'm trying to reference different columns based on a value in a helper column. Depending on the value in the helper column, the value should be pulled from a different column. I know I can do this with nested IF formulas, but is there a way to have the column name populated in a formula based on lookup formulas?
I wanted the below formula to lookup the column name based on the number in the "Index" column, and then pull the date value from the column header specified.
="[" + INDEX([Index Date Row]:[Index Date Row], MATCH(Index@row, [Index Lookup]:[Index Lookup], 1)) + "]@row"
Example, the first row is Index 3, meaning it should pull the date from "Day 0 Start3 Date" (9/3/23) Instead, it shows as text.
Any suggestions?
Best Answer
-
I believe this has already been answered here:
Answers
-
I believe this has already been answered here:
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!