using COUNTIF and referencing outside cell.

rgt27

New Member
Joined
Aug 25, 2017
Messages
3
I've been trying to use the COUNTIF function to extract the number of occurrences of a particular word CONTAINED in a bunch of cells by referencing an outside cell. It works fine if I enter the search parameters manually like this: =COUNTIF(B2:B443,"*wabigoon*") but instead of entering 'Wabigoon' or something else, I want to reference a cell that contains the word Wabigoon or whatever other word I wish to search. Any thoughts?
 

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.
Considering your data is in C8, try this:

[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=COUNTIF(B2:B443,"*"&C8&"*")[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thanks - I figured that out shortly after I sent. Also wanted to integrate dates and came up with =COUNTIFS(B2:B443,"*"&F2&"*",Table2[Circulation Date],">="&G3,Table2[Circulation Date],"<="&H3) which seems to work.
Problem solved!
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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