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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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