I am trying to get a result that meets the following conditions..
- If the Craft is Crane Operator or all Riggers including Rigger I, Rigger II, Rigger III then display the value of column F in the column H
- If the Craft is H.E. Operator then display the value of column G in the column H
- All other Crafts excluding Crane Operators, H.E. Operators and all Rigger including Rigger I, Rigger II, Rigger III then display the value of column E in the column H
I tried the below formula but does not work..
=IFS(C7="Crane Operator", QUERY(F7,"SELECT *"),C7="Rigger III", QUERY(F7,"SELECT *"),C7="Rigger II", QUERY(F7,"SELECT *"),C7="Rigger I", QUERY(F7,"SELECT *"),C7="H.E. Operator", QUERY(G7,"SELECT *"))
You can access Goggle Sheet to check the data:
>Solution :
Crafts are in column D rather than column C. Use regexmatch(), like this:
=ifs(
regexmatch(D7, "Crane Operator|Rigger I{1,3}"), F7,
D7 = "H.E. Operator", G7,
true, E7
)
See regexmatch().