Formula not working, work around?

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

=IF(A1={77;88;99}&" *";"OK";"")

A1 cell value= 77 Hamburger

Why does the formula return FALSE and not TRUE? :banghead:

Appreciate your input.
 
I think I solved the issue, it was the >0 in the first critera in the search formula that caused the issue. I guess "False" is interpret as greater than 0 so it turns to "true". Not sure.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try one of these.

=IF(OR((B1<=0)*ISNUMBER(SEARCH({77;88;99}&" ";LEFT(A1;3))));"OK";"")

if you want the number at the start with a space or

=IF(OR((B1<=0)*ISNUMBER(SEARCH({77;88;99};A1)));"OK";"")

if you dont mind where in the string the number is.
 
Upvote 0
try this

Code:
=IF(AND(B1<0;SUMPRODUCT(--(ISNUMBER(SEARCH({77;88;99};A1))))>0);"OK";"")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top