count the number of cells with specific texts and also have a value greater than 0 in an adjacent cell

jpeters7635

New Member
Joined
Jul 28, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I've tried a few different formulas but none seem to help when trying to only tally when specific text is found in the adjacent column. I'm trying to count the number of cells that contain a value greater than zero in each month, but have it only count when the roles in the second column are found.

For instance, "Office Manager and Office Assistant" would only count in the "Office Count" # and the "Field Supervisor and Field Tech roles" would be counted in the field count. Thansk for any help!

NameRoleJanFebMar
John DoeOffice Manager140014502000
Jane SmithOffice Assistant120001500
George WashingtonField Supervisor170019000
Bugs BunnyField Tech0800900
Office Count212
Field Count121
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
This should do it
Book1
ABCDE
1NameRoleJanFebMar
2John DoeOffice Manager140014502000
3Jane SmithOffice Assistant120001500
4George WashingtonField Supervisor170019000
5Bugs BunnyField Tech0800900
6
7Office212
8Field121
Sheet2
Cell Formulas
RangeFormula
C7:E8C7=COUNTIFS($B$2:$B$5,$B7&"*",C$2:C$5,">0")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,869
Messages
6,122,015
Members
449,060
Latest member
LinusJE

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