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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!