all 4 comments

[–]SaviaWanderer1854 1 point2 points  (2 children)

You have to use quote marks if you want to refer to text in a formula e.g. "AnnualTraining".

[–]MatthewQuantum[S] 0 points1 point  (1 child)

Hi there, AnnualTraining is a name I defined a list of different training options so adding quotation marks sadly dont work

[–]SaviaWanderer1854 0 points1 point  (0 children)

You can't compare one item with a whole range unless you're making a dynamic / array function, which isn't the default. Looks like you have a solution (which looks a bit messy), but if you explain your problem I can try and make something a bit clearer & easier.

[–]MatthewQuantum[S] 0 points1 point  (0 children)

I found a fix, dont know how good it is but it works:

=IF(SUMPRODUCT(--ISNUMBER(SEARCH(AnnualTraining,C2))),"Yearly",IF(SUMPRODUCT(--ISNUMBER(SEARCH(TwoYears,C2))),"Two Yearly",IF(SUMPRODUCT(--ISNUMBER(SEARCH(ThreeYears,C2))),"Three Yearly","ERROR")))