How to count if cell contains text from a range

jparry6

New Member
Joined
Jan 26, 2017
Messages
7
Hi,

I have this formula:

=COUNTIFS('RAW DATA'!$H:$H,"="&$A$1, 'RAW DATA'!$E:$E, $A7, 'RAW DATA'!$G:$G, "*U6:U28*")

In the last criteria I am trying to count if the cell contains text from a range but the result it is giving me is 0, when I know the output should be 12. And I need it to be a formula as I need to apply this formula to 30 odd people in the worksheet.

Could someone help me out?

Thanks in advance
JP
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
So count number of cells where column H contains cell A1 and column E contains A7
and...

Column G contains what looks like an embedded range "U6:U28" in a cell ?
Thats what you want to check for, ie you have cells in column G that are text and the value of them are ranges, ie
column G could contain

ABCU6:U28
U6:U28
Fred BloggsU6:U29Charlie Smith

and would return 2 since the third does not contain U6:U28 (I changed the range to U6:U29 deliberately)

Are you sure this is what you really have in column G?
 
Last edited:
Upvote 0
Try...

=SUMPTODUCT(COUNTIFS('RAW DATA'!$H:$H,"="&$A$1, 'RAW DATA'!$E:$E, $A7, 'RAW DATA'!$G:$G, "*"&U6:U28&"*")
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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