ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   OR function in a SEARCH not working (https://www.excelbanter.com/excel-worksheet-functions/122061-function-search-not-working.html)

Tester

OR function in a SEARCH not working
 
This is my formula
=IF(ISERR((SEARCH($N$2,OR($D54,$F54),1)0)),0,IF($ G540,$G54,$H54))

At the moment the OR function doesn't seem to work, i.e. when i run a test i
get zero - any ideas please
The search is referring to text in a header cell and searches 2 cells in
different columns containing text for the same string (not case sensitive)
amongst the entire content. Provided there is no error it then displays the
figure which appears in either colum G or H.
Well, it should!!

TIA
Chris



Bob Phillips

OR function in a SEARCH not working
 
=IF(OR(ISNUMBER(SEARCH($N$2,$D54)),ISNUMBER(SEARCH ($N$2,$F54))),IF($G540,$G54,$H54),0)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Tester" wrote in message
...
This is my formula
=IF(ISERR((SEARCH($N$2,OR($D54,$F54),1)0)),0,IF($ G540,$G54,$H54))

At the moment the OR function doesn't seem to work, i.e. when i run a test
i get zero - any ideas please
The search is referring to text in a header cell and searches 2 cells in
different columns containing text for the same string (not case sensitive)
amongst the entire content. Provided there is no error it then displays
the figure which appears in either colum G or H.
Well, it should!!

TIA
Chris





All times are GMT +1. The time now is 01:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com