Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Guys,
I am trying to replace nested if with Pick Match function, but I am stuck at using Wildmatch inside the Match function like,
pick(
Match( -1,
Subjects = 'Stat',
WildMatch(Name,'YYY*')
)+1
,'NA'
,'Low'
,'High'
)
Here if you see my 2nd condition is not working.
Any help would be appreciated.
Just add a comparing to the wildmatch(), like:
pick(
Match( -1,
Subjects = 'Stat',
WildMatch(Name,'YYY*') > 0
)+1
,'NA'
,'Low'
,'High'
)
Wildmatch() never returns -1. It returns the number of the match, or 0 if no match was found, same as Match().
Just add a comparing to the wildmatch(), like:
pick(
Match( -1,
Subjects = 'Stat',
WildMatch(Name,'YYY*') > 0
)+1
,'NA'
,'Low'
,'High'
)