I have a column that has case quantities in them, due to the nature of the data entry sometimes this column has some text in it which messes up the conversions. I am trying to make an if statment that will see if the value contains text and transform it appropriately.
Quick example, the three columns that wold be in use (3rd row after the headers is where I need the if statement to work):
What I would want the if statement to do is the following: If [pack size] = "Other" then Pots = [cases] but removing the 5 rightmost characters so that it would just be 12
Else
[cases]*[pack size]
Hoping someone could help me out in the proper syntax for achieving the above.
Quick example, the three columns that wold be in use (3rd row after the headers is where I need the if statement to work):
Cases | Pack Size | Pots |
5 | 15 | 75 |
10 | 18 | 180 |
12 pots | Other | ERROR |
10 | 18 | 180 |
What I would want the if statement to do is the following: If [pack size] = "Other" then Pots = [cases] but removing the 5 rightmost characters so that it would just be 12
Else
[cases]*[pack size]
Hoping someone could help me out in the proper syntax for achieving the above.