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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,224,823
Messages
6,181,177
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