True/False if cell contains any text in cell in entire column

moby

Board Regular
Joined
Apr 17, 2002
Messages
67
I use the following formula to show TRUE or FALSE if cell B2 is found anywhere in column A.

=IF(COUNTIF(A:A,B2),TRUE,FALSE)

This only shows TRUE if a cell in column A matches cell B2 exactly. How can I get this to show TRUE or FALSE if the cell in column A only CONTAINS the text in cell B2?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I use the following formula to show TRUE or FALSE if cell B2 is found anywhere in column A.

=IF(COUNTIF(A:A,B2),TRUE,FALSE)

This only shows TRUE if a cell in column A matches cell B2 exactly. How can I get this to show TRUE or FALSE if the cell in column A only CONTAINS the text in cell B2?
Try this array formula but use a smaller more specific range.

=AND(A1:A10=B2)

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Try this array formula but use a smaller more specific range.

=AND(A1:A10=B2)

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Hmmm...

After seeing the other reply I may have misunderstood what you want.

My interpretation was you wanted to test to see if EVERY (used) cell in column A = B2.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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