Nested IF Statements as a Script

I have a field that needs translating into a form that can be used by a second program, but there are some 50-60 options that need translating and the IF statement got huge.

Essentially it goes:

IF Cell A = “Manager”, “X”, IF Cell A = “Worker”, “Y” …

It only needs to be done once, so would it be possible to use a script? The find and replace one looks almost perfect, but rather than replacing the value, I want the new value pasted into a separate cell

You are looking for SWITCH().

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.