Forum Discussion
bbwong
4 years agoHelper I
Containstring Function
Hi,
Needing help with a formula to calculate the Level of Support containing text of "high intensity" or "standard", with remaining categorized as "Other".
| Service | Level of Support (calcaulate column) if contains: |
| Support with High Intensity | High Intensity |
| Standard Support | Standard |
| Service Add 1 | Other |
| Service Add 2 | Other |
| Service Add 3 | Other |
With thanks,
bbwong Maybe:
Column = SWITCH(TRUE(), SEARCH("High Intensity",[Service]),"High Intensity", SEARCH("Standard",[Service]),"Standard", "Other" )
3 Replies
- Greg_DecklerCommunity Champion
bbwong Maybe:
Column = SWITCH(TRUE(), SEARCH("High Intensity",[Service]),"High Intensity", SEARCH("Standard",[Service]),"Standard", "Other" )- bbwongHelper I
Thanks for the prompt reply.
I tried the above however getting an error of:
Function 'SWITCH' does not support comparing values of type True/False with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.- bbwongHelper IManaged to tweek your suggestion and it worked!
Column = SWITCH(TRUE(), SEARCH("High Intensity",[Service]) 1, 0 ) > 0,"High Intensity", SEARCH("Standard",[Service]) 1, 0 ) > 0,"Standard", "Other" )