Skip to main content
Solved

Nested IF Statements as a Script

  • April 7, 2022
  • 1 reply
  • 19 views

Forum|alt.badge.img+5

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

Best answer by Vivid-Squid

You are looking for SWITCH().

1 reply

Forum|alt.badge.img+16
  • Inspiring
  • 529 replies
  • Answer
  • April 7, 2022

You are looking for SWITCH().