Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16030

Can I use =isnumber(search( function on multiple columns at the same time?

$
0
0

I have a table where I have to check row by row that the org name, work country and location refers to the same country.

| Work Location | Work Country | Organization Name | | || ------------------ | ------------ | ----------------- | | --------- || Vienna At Loc 2 | Austria | 4600 AT CORE ABC | | correct || Brussels Be Loc | Belgium | 7420 BE PROD | | correct || Vienna At Loc 1 | Spain | 4600 AT CORE ABC | | incorrect || Barcelona Es Loc 2 | Spain | 5000 ES MANF 54 | | correct || Brussels Be Loc | Spain | 7420 BE PROD | | incorrect |

=IF(OR( AND(   ISNUMBER(SEARCH(" at ",Table2[@[Work Location]])),   ISNUMBER(SEARCH("Austria",Table2[@[Work Country]])),   ISNUMBER(SEARCH(" at ",Table2[@[Organization Name]]))), AND(   ISNUMBER(SEARCH(" be ",Table2[@[Work Location]])),   ISNUMBER(SEARCH("Belgium",Table2[@[Work Country]])),   ISNUMBER(SEARCH(" be ",Table2[@[Organization Name]]))), AND(   ISNUMBER(SEARCH(" es ",Table2[@[Work Location]])),   ISNUMBER(SEARCH("Spain",Table2[@[Work Country]])),   ISNUMBER(SEARCH(" es ",Table2[@[Organization Name]])))),"correct","incorrect")

I have created the above formula that checks this successfully; however, since this formula goes for 60 countries, I have reached the cell character limit, so I'm wondering whether there is a way to merge the search function into one, so I could save some space.


Viewing all articles
Browse latest Browse all 16030

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>