Multiple IF's the way to go ??
Hi all,
I have a column named "Site Name" this column is a drop-down single select with all our site names (approx 20 different options) for the sake of this post I will call them
Rome, London, Paris, Tokyo, New York, Milan
The user selects the site name via a form and this is reflected in the cell in the appropriate row.
I would like to add a column named "Region" and in this column have a formula that looks to the "Site Name" and returns a value.
So for example, if the user selected "Rome" then the formula would return "Europe" in the region column if however the user selected "New York" the region would change to US and so on and so forth.
What would be the most elegant and economic way to achieve this?
Thanks
Dan
Answers
-
I hope you're well and safe!
You can either use a multi IF formula or an INDEX/MATCH structure.
Make sense?
Would that work/help?
I hope that helps!
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 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.
-
Can you show me a short working example of how I would use that in the example in my question ?
Thanks
Dan
-
I would suggest going the INDEX/MATCH route if you have a lot of different options.
First you would need to build a table in another sheet that has each option and the corresponding value listed out.
Rome, London, Paris, Tokyo, New York, Milan
"Rome" then the formula would return "Europe" in the region column if however the user selected "New York" the region would change to US
Rome..........Europe
London.......UK
Paris...........Europe
New York...US
Then in your working sheet where you pull the data to, you would (using the appropriate steps for creating cross sheet references) use a formula such as this:
=INDEX({Table Sheet Region Column}, MATCH([Dropdown Column]@row, {Table Sheet City Column}, 0))
-
Great thanks for your replies both.
Paul, I used your suggestion of another sheet and it worked like a charm.
Thanks again for your help and all the best
Dan
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!