Can you extract text from a cell to use within a formula of another cell?
I'm trying to dynamically update the lookup_table value in my VLOOKUP formula based on a selection made in another cell.
Thank you,
Matt
Answers
-
Hi @DFW Admin
I hope you're well and safe!
Not sure I follow. Can you elaborate?
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
In one column, I have a drop down listing current projects. In another column, I have a VLOOKUP that references another sheet that contains budget items. Right now, that VLOOKUP command references that sheet statically.
=IFERROR(ROUND(VLOOKUP([Cost Code]@row, {2020-049 Bus287 Budget Range}, 7, true) / VLOOKUP([Cost Code]@row, {2020-049 Bus287 Budget Range}, 5, true), 2), "MISSING INFO")
My question, is it possible to reference another cell to dynamically change the VLOOKUP reference? Depending on the project selection, "2020-049 Bus287" would reflect the project selection and of course take the text from project and concatenate "Budget Range".
Another way would be to test the project column to return a specific VLOOKUP command, but this would require altering the formula to reflect new projects.
-
Hi @DFW Admin
If I'm understanding you correctly, you'd like the actual {reference} to change based on a value in a cell. So, if a column notes "Sheet 1" then the Vlookup ranges would look into sheet 1. Or if it says "Sheet 2", it will change the {reference} to be sheet 2.
In this instance, no, there isn't a way to automatically change where {this reference} is pointing. You would either need to manually delete/replace references as needed, or write a nested IF statement to return the different VLOOKUPs you'd prefer.
If we've misunderstood, it would be helpful to see screen captures and to learn more about your {2020-049 Bus287 Budget Range} range, but please block out sensitive data!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thank you. You have the right idea. I was trying to eliminate the need to revise nested if statements. As we add new projects, the primary user could continue using the sheet with only modifying the project list rather than formulas.
Thanks again.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!