It might be easier to use a SWITCH()
statement, since you are checking the same field, namely {Suburb}
, each time.
For an overview of formula fields, please refer to the Guide to Formula, Lookup, Count, and Rollup fields.
Formulas may involve functions, numeric operations, logical operations, and text operation...
SWITCH(
{Suburb},
"gorokan", "KPM1",
"hamlyn terrace", "KPM2",
...
)
yep, that works but is there a way so I dont have to do individual suburbs? eg:
“gorokan, toukley, etc, etc”, “KPM1”
“hamlayn terrace, kanwal, etc etc” “KPM2”
…
I would prefer to group the suburbs into one part of the formula rather than 1 per suburb as I have about 30 to do. lol
yep, that works but is there a way so I dont have to do individual suburbs? eg:
“gorokan, toukley, etc, etc”, “KPM1”
“hamlayn terrace, kanwal, etc etc” “KPM2”
…
I would prefer to group the suburbs into one part of the formula rather than 1 per suburb as I have about 30 to do. lol
Nope.
You could group them together in a repeated IF(OR())
structure, but you’d likely end up writing more characters, only to have a far less readable formula.
I’d suggest biting the bullet and writing out the explicit SWITCH()
function. Perhaps a good Programming text editor would come in handy here…
Nope.
You could group them together in a repeated IF(OR())
structure, but you’d likely end up writing more characters, only to have a far less readable formula.
I’d suggest biting the bullet and writing out the explicit SWITCH()
function. Perhaps a good Programming text editor would come in handy here…
Thats what I thought! lol
Already writing it out, not the most elegant but at least it will work!
Thanks for the help!
Nope.
You could group them together in a repeated IF(OR())
structure, but you’d likely end up writing more characters, only to have a far less readable formula.
I’d suggest biting the bullet and writing out the explicit SWITCH()
function. Perhaps a good Programming text editor would come in handy here…
If you think 30 lines in a SWITCH()
function is bad, you should take a look at this formula I had to write for a client…
If you think 30 lines in a SWITCH()
function is bad, you should take a look at this formula I had to write for a client…
haha… cut and paste is your friend there!
Im only new to airtable and functions, formula’s / excel in general and can do the basics but I get lost in all the (((((( ) ()))))))'s
haha… cut and paste is your friend there!
Im only new to airtable and functions, formula’s / excel in general and can do the basics but I get lost in all the (((((( ) ()))))))'s
I refer you to a programming text editor again.
Auto-indentation and auto-closing of parentheses and brackets will make your life much easier.
I refer you to a programming text editor again.
Auto-indentation and auto-closing of parentheses and brackets will make your life much easier.
I will certainly look into it! ( your link above where you suggested it doesnt work if you were recommending one.)
I will certainly look into it! ( your link above where you suggested it doesnt work if you were recommending one.)
Fixed it (20 characters)