Count Function

Mbishop

New Member
Joined
Feb 24, 2016
Messages
9
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Trying to count number of times a certain word shows in a range but don't want to count the word if another cell in the same row says a certain word. Example below of what i'm trying to explain.

AreaTaskWho
PR1AElectrician
PR3bHVAC
PR2cPlumbing
PR2dElectrician
WBeElectrician

I only want to count the amount of times "Electrician" shows up but ignore when it shows up in Area "WB"
Electrician
2

any help is much appreciated
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
Excel Formula:
=countifs(c:c,"Electrician",a:a,"<>wb")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
--Count the number of occurances of a value
=COUNTIF(C2:C6,"Electrician")

Kind regards,

Julie Bunavicz
 
Upvote 0
That ignores the 2nd criteria. ;)
 
Upvote 0
Thanks Fluff, worked like a charm, appreciate the help

Thanks Fluff, worked like a charm, appreciate the help
How about
Excel Formula:
=countifs(c:c,"Electrician",a:a,"<>wb")
got another one similar to this as well if you could help too
AreaTaskWhoStatus
PR1XElectriciansPending
PR3bHVACComplete
PR2cPlumingComplete
PR2dElectricians-
PR1eElectriciansCompleted Late
WBfElectriciansPending

So I want to count the number of items pending for crew but also ignore the pending if column A contains WB

Electricians
Pending1
 
Upvote 0
You just need to add the additional criteria like
Excel Formula:
=countifs(c:c,"Electrician",a:a,"<>wb",d:d,"pending")
 
Upvote 0
You just need to add the additional criteria like
Excel Formula:
=countifs(c:c,"Electrician",a:a,"<>wb",d:d,"pending")
This is Awesome, i've been trying to combine formulas for the past hour trying to figure this out. this worked. I really appreciate this help
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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