excel formula for search

ronie85

Board Regular
Joined
Jan 25, 2014
Messages
89
Office Version
  1. 365
Platform
  1. Windows
I need a formula. Cell A19 contains 'JR', note that it will not always contain JR so I need the formula to use the contents of the cell no matter what it changes to. I am inserting a formula into cell E19 that is to search cells B3, B4, D6, D7, D8, D9, D10, D11, D12 & D13 for the text that is in A19 (on this instance JR). If the search comes back with a 'true' result then I want cell E19 (the cell with the formula) to show the word 'unavailable'. Alternatavely if the result comes back 'false' I want it to show the contents 'free')
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
There is likely a more efficient solution, but this should work:

=IF(OR(ISNUMBER(MATCH("*"&$A$19&"*",$B$3:$B$4,0)),ISNUMBER(MATCH("*"&$A$19&"*",$D$6:$D$13,0))),"unavailable","free")

This formula assumes you are looking for the letters "JR" (or whatever it changes to) anywhere in the cells within the range. So, an AJRH, JRTU, or LOJR value in the range would return "unavailable".
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,269
Messages
6,123,976
Members
449,138
Latest member
abdahsankhan

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