Search a column for a phrase and return a number

Jazzzola324

New Member
Joined
Jun 1, 2019
Messages
7
Hello,
I am trying to figure out a formula which will search a column for a phrase and if that phrase is present then display a number.
any help would be appreciated
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
This formula will search Column(A) for the phrase "Alpha" and give you how many times it found "Alpha" in Column(A)

=COUNTIFS(A:A,"Alpha")
 
Upvote 0
Hi,
Thanks for responding. That’s not exactly what I mean. I need to search a column for a word or phrase, if that word or phrase is present then display a number.
For example, I need it to search a column for ‘Somewhat’, if that word is in the column then I need it to display the number 2.
 
Upvote 0
Give me a exact example. I had my formula search Column (A) for Alpha

Your saying you want to search some column for "
Somewhat"

and if found display 2

so if found display 2

In your example how many times did the formula find
Somewhat

Please give me the exact Column

Say Column A or column B do not say some column

My example used column A can you not change A to P or G or what.


<strike>



</strike>
 
Upvote 0
Hi,
somewhat will not appear multiple time just once or not at all.if it does appear I’d like the formula to display the number 2. A formula using column A would be fine.
Thanks
 
Upvote 0
That didn’t seem to work. Weirdly, once I entered the formula it browsed documents on my computer and in the cell it displayed “ref#”
 
Upvote 0
I'm sorry try this:

Change "Cake" to what you want.

=IF(COUNTIF(A:A,"Cake"),"2","")
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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