Short formula not returning expected result?

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I've got a formula that searches for two conditions in a cell and if it doesn't find them, then it should return a blank. But it's returning the word "FALSE" instead.

What makes things even more odd is that I've written another formula to check if the word "FALSE" appears in that cell, but the formula doesn't pick it up?

Has anyone ever experienced this before? If so, do you know why it happens?

Please find below sample data - only three cells:

A1 has this text: ABCD 3.50

B1 has this formula: =IF(ISNUMBER(SEARCH("for ",A1)),IF(ISNUMBER(SEARCH("€",A1)),"Euro & For ","")) ie it checks if a cell has the word "for" and the word the euro sign

C1 has this formula: =IF(B1="FALSE","Ok","What's going on?") ie it checks if the word "FALSE" appears in cell B1, which it does in this case, but this formula doesn't pick it up!?? This is the most bizarre thing I've ever seen in Excel!

If you know the solution to this problem, it would be greatly appreciated.

Thanks in advance.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
The formula in B1 should be

=IF(ISNUMBER(SEARCH("for ",A1)),IF(ISNUMBER(SEARCH("€",A1)),"Euro & For ",""),"")

By the way, your formula in C1 doesn't return "Ok" because your original formula in B1 returns the logical (boolean) value FALSE, not a string "FALSE".

M.
 
Upvote 0
Oh, cool! Thanks Marcelo - your amended formula worked!

Re the other suggestion , do you know if it's possible to create a formula that will pick up a logical (boolean) value FALSE (in case I have a similar problem, in future, where a long formula is not working)?

The original IF statement I have, has over 20 arguments, so I had to painstakingly rule out the ones that didn't work before finding the one I posted in my original question.

Thanks again for your help, so far.
 
Upvote 0
Oh, ok!!

Thanks - I didn't know the solution was that simple!

Thanks again for your help!
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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