Multiple IF statements using a dropdown
Hi all.
Using a dropdown column with values: 0, 1-10. 20-100, can you use multiple IF statements in a formula in another column (cell) that states - IF cell = 0 then value equals 1 & IF cell = 1-10 then the value must equal 20 & IF cell = 20-100 then the value equals 50.
Is this possible??
Any assistance would be greatly appreciated.
Best Answer
-
Hi @Trav25
If I understand your question correctly, then a nested if formula should work in your case. Here is an example
- Sheet with one column with drop down value named as "Drop Down" having values - 0, 1-10, 20-100
- Another column with formula named as "Formula Column"
- Use formula in "Formula Column" as "=IF([Drop Down]@row = 0, 1, IF([Drop Down]@row = "1-10", 20, IF([Drop Down]@row = "20-100", 50)))"
Refer screenshot
Let me know if this is correct representation or if you have a different scenario.
Regards,
Saurabh Maheshwari
Smartsheet Superstar
Portfolio Lead, TCS
Answers
-
Hi @Trav25
If I understand your question correctly, then a nested if formula should work in your case. Here is an example
- Sheet with one column with drop down value named as "Drop Down" having values - 0, 1-10, 20-100
- Another column with formula named as "Formula Column"
- Use formula in "Formula Column" as "=IF([Drop Down]@row = 0, 1, IF([Drop Down]@row = "1-10", 20, IF([Drop Down]@row = "20-100", 50)))"
Refer screenshot
Let me know if this is correct representation or if you have a different scenario.
Regards,
Saurabh Maheshwari
Smartsheet Superstar
Portfolio Lead, TCS
-
Thanks for the quick response, that's what I had used, but realised it was an error in my formula.
Thanks so much!
Trav
-
Glad to know that it worked.
Regards,
Saurabh Maheshwari
Smartsheet Superstar
Portfolio Lead, TCS
-
Hello there,
this answer has helped me greatly but I am struggling to extend this to the number of values I have in my dropdown. I've tried adding more, copying and pasting and adding a bracket but I keep getting the unparseable error.
How would you go on to extend this to include more dropdown values - what am I missing?
-
Hi @CarlaT
Can you post the formula you've been trying, a list of your dropdown values, and an explanation of what you want to happen in each instance? We'd be happy to help you with this!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!