Jump to content
  • 0

IF doesn't work with logical or and Strings with wildcards


matteoluigi

Question

Actually I try to write an IF query in a worksheet. Sth like:

=IF(((B2<>'')|(B2<>'*A*')|(B2<>'*B*'));'YES';'NO')

 

It's mainly about filtering weather string (it will be a substring later on...) does contain a special word/code or it doesn't. For the beginning I try to filter, wether cell B2 does contain the letter A or B or it doesn't. However B2.1 and B2.2 do contain an '*A*' and '*B*' however the result is still YES.

 

No clue, why... (it will be a main part of my code...)

 

779482036_Bildschirmfoto2022-05-19um16_23_07.png.3f1d44deaa6d8489d5738aec2cc0bb0c.png

 

 

IF OR.zip

Edited by matteoluigi
Link to comment

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...