I have a nested IF formula that is working well, but is excruciatingly hard to maintain because it’s so many levels deep. It would be easier to maintain if I could use IFS(), but that doesn’t seem to exist in Airtable. Is there anything else similar I could use?
The logic is (in pseudocode) :
IF regex_match(MYFIELD, expr1) then regex_extract(MYFIELD,pattern1)
ELSIF regex_match(MYFIELD, expr2) then regex_extract(MYFIELD,pattern2)
ELSIF …. etc for far too many more patterns …
ELSE blank()
ENDIF
I don’t think I can use SWITCH or CASE (if these even exist in Airtable) because each if statement clause is different. Essentially, I have a string that may contain one and only one of a dozen substrings, and I need to detect and extract these substrings whenever they show up. Fun times.