Criteria in Countifs to exclude cells that contain any words in a list

Forlanman

New Member
Joined
Aug 17, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I've hit a bit of a brick wall with this one, so would be grateful for any input.

As the title says, I'm looking to create a criteria in a COUNTIFS formula that looks at a list of words in a column within one separate sheet and then in the total returned does not count any cells in a column in a third sheet that include any of these words/values.

This would need to be set up as a partial match so for example "apple" in the exclude sheet would stop the formula from counting a cell with "an apple tree".

I thought Index could maybe be used to accomplish this. Maybe INDEX and MATCH but I'm a bit lost on where I'm going with this.

INDEX("*"&INDIRECT("'"&E$16&"'!"&"$A:$A")&"*",0),"<>"&'Exclusion List'!C1:C2)

I have seen some suggestions for other methods outside of the count if to achieve this but as I have other criteria, I'm hoping there is a way to do this within the COUNTIFS function. I've included an image showing the full formula to give some context.

Any suggestions would be very welcome!

Thanks in advance.. David
 

Attachments

  • Capture 17-08.JPG
    Capture 17-08.JPG
    58.1 KB · Views: 25

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
MrExcelPlayground11.xlsx
ABC
1appleJohn is silly3
2pearJamie ate an apple
3treeHe is one foot tall
4footSally is smart
5What is thy bidding my master?
6I fell out of a tree
Sheet13
Cell Formulas
RangeFormula
C1C1=SUM(--(MMULT(SEQUENCE(1,COUNTA(A1:A4),1,0),TRANSPOSE(IFERROR(SEARCH(TRANSPOSE(A1:A4),B1:B6),0)))=0))
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Criteria in Countifs to exclude cells that contain any words in a list
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
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