find first value in column that does NOT contain

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
Office Version
  1. 365
In cell A1 I have a word, for example CAT
In cells B1:B10 I have a list of different words

B1 = CAT
B2 = SCAT
B3 = CATH
B4 = SCATHE
B5= CATS
B6 = DOG
B7 = CATHERINE
B8 = NOCATCH
B9 = HORSE
B10 = GIRAFFE

What I need a formula please is to look at what is in Cell A1, and return the first result that does not contain anywhere within the cell "CAT", so in this example, I need A1 to say "DOG"
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Excellent!. A bit annoying it cannot be in a merged box, but I will just put this formula in another cell, and reference it back to my merge cell so it works! Thank you!

Confirm with ctrl+shift+enter:

=INDEX(B1:B10,MATCH(TRUE,ISERROR(SEARCH("CAT",B1:B10)),0))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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