Formula - IF and VALUE function
I'd like to figure out how to execute the following function.
If a cell contains certain text, fill in a numerical value in another cell. For example:
If cell A1 says "Request Type A" then fill in "3" in cell A2.
If cell A1 says "Request Type B" then fill in "5" in cell A2.
Comments
-
Here are few options depending on whether you are you building this formula out further with additional criteria. Both work though. These are based on the results going in an adjecent column. If you want the result directly below, then just swap out @row for the specific cell you want to look at:
1) =IF([Column A]@row = "Request Type A", 3, 5)
2) =IF([Column A]@row = "Request Type A", 3, IF([Column A]@row = "Request Type B", 5))
-
Depending on how many different options you have and how flexible you need those options to be (adding/deleting/etc.), another option would be to build out a table and use an INDEX/MATCH. This would keep you from having to dive into a long nested IF statement just to make a minor change then having to update all of the other rows.
Of course that is if you have a lot of options or your options/values could change frequently.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!