Try to find a function

Mecheltheka

New Member
Joined
Aug 15, 2020
Messages
21
Office Version
  1. 2007
Platform
  1. Windows
Good morning,

Let's say that there are 10 rows and 1 column in a table and i want to find a word in this table. So, i would like to find a function, in order to scan the whole table and finally to return "true" if this word exist or to return "false" if the word doesn't exist. I don't care about the name of this cell.

Postscript: I tried something, like this: ISNUMBER(SEARCH("Text",B21:B31)), but it doesn't work!
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,766
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows
How about
Excel Formula:
=IF(COUNTIF(B21:B31,"Text"),"True","False")
 

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,172
Office Version
  1. 2010
Like
Excel Formula:
=IF(COUNTIF(B21:B31,"*George*"),"True","False")
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,766
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows

ADVERTISEMENT

You didn't say it was a partial match in your 1st post...
Excel Formula:
=IF(COUNTIF(B21:B31,"*George*"),"True","False")
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,766
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows

ADVERTISEMENT

Glad we could help... (y) (y)
 

Mecheltheka

New Member
Joined
Aug 15, 2020
Messages
21
Office Version
  1. 2007
Platform
  1. Windows
Is there any case that the excel does not recognize the character "*" ???

For example: My function is: =COUNTIF(B1020:B1023,"*George*"
If the content of the cell B1020 is "My name is George", then the function countif does not return "1" . But, if the content of the cell B1020 is "My name is *George*, then the function countif return "1". It doesn' t recognize the "*"
 

Mecheltheka

New Member
Joined
Aug 15, 2020
Messages
21
Office Version
  1. 2007
Platform
  1. Windows
I just found the solution. The wildcards were off!
 

Watch MrExcel Video

Forum statistics

Threads
1,123,259
Messages
5,600,575
Members
414,390
Latest member
plimbu

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
Top