How can I count the cells that contain a specific word?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
Hello!

How can I count all the cells in a specific range that contain in their text a specific word? If it is easier, we can choose the cells that 'start' with a specific word (that would also be applicable).

Can I use COUNTIF with wildcards?

Thanks!
 
Last edited:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Thanks!

Could you tell me please where the typo is in this:

Code:
=IF($B$47>0,IF(AND(C24>=0,C24<$C$6),"UNDERCAPACITY WITH BOTTLENECK "+"C$24-$C$6","OVERCAPACITY "+"$B$47/COUNTIF($C$47:$DR$47,"OVERCAPACITY*")"),IF(AND(C24>=0,C24<$C$6),"UNDERCAPACITY WITHOUT BOTTLENECK "+"C$24-$C$6",0))

it highlights the region of COUNTIF($C$47:$DR$47,"OVERCAPACITY*")"),
 
Last edited:
Upvote 0
Hi,

Without seeing your data and a description of what you're trying to accomplish, this is just an attempt to "fix" your existing formula, can probably be shortened a bit if we know what exactly you're trying to do:

=IF($B$47>0,IF(AND(C24>=0,C24<$C$6),"UNDERCAPACITY WITH BOTTLENECK "&C$24-$C$6,"OVERCAPACITY "&$B$47/COUNTIF($C$47:$DR$47,"OVERCAPACITY*")),IF(AND(C24>=0,C24<$C$6),"UNDERCAPACITY WITHOUT BOTTLENECK "&C$24-$C$6,0))
 
Upvote 0

Forum statistics

Threads
1,225,739
Messages
6,186,746
Members
453,370
Latest member
juliewar

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