Forum Discussion
tomgag
Resolver I
8 years agoSearch amd exclude certain strings
Hi, I have the search function but want to exclude certain strings. Ball= IF (ISBLANK ( SEARCH ( "Messi", Table[Column], 1, BLANK () ) ), 0, 1 ) It gives me 1 or 0 depending if Messi is in...
- 8 years ago
Ball = IF (NOT(ISBLANK ( SEARCH ( "Messi", 'Table'[Column], 1, BLANK () ) )) && ISBLANK ( SEARCH ( "Ronaldo", 'Table'[Column], 1, BLANK () ) ) && ISBLANK ( SEARCH ( "Pogba", 'Table'[Column], 1, BLANK () ) ), 1, 0)
tomgag
Resolver I
8 years agoI give 1 when Messi and Ronaldo or Pogba inside the string.
parry2k
Super User
8 years agoCan you confirm your logic, it is not super clear
give example of your data and expected result.
- tomgag8 years ago
Resolver I
;;;;
Results should be:
Ball
0
0
0
0
1
- parry2k8 years ago
Super User
seems like you want if it is messi or ronaldo or pogba then 0 else 1 whereas you explain messi and ronaldo or pogba, is this correct understanding?
- tomgag8 years ago
Resolver I
'Messi is great' the result is 1
'Messi and Ronaldo are great' the result is 0
'Messi and Ronaldo or Pogba are great' the result is 0