Count the number of values having zero and below zero according the drop list text

fmoiduf

New Member
Joined
Nov 27, 2018
Messages
6
Sir,

I have table containing Observation and Score.

i made a drop down list according the text of observation column. I like to count number of scores comes zero and below zero according the text (observation) [TABLE="width: 500"]
<tbody>[TR]
[TD]Observation[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD]Health_Safety-Electrical<strike></strike>
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Health_Safety-Confined Space<strike></strike>
[/TD]
[TD]-2[/TD]
[/TR]
[TR]
[TD]Health_Safety-Access & Egress<strike></strike>
[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Health_Safety-Electrical<strike></strike>
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Health_Safety-Access & Egress<strike></strike>
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Health_Safety-Confined Space<strike></strike>
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Health_Safety-Access & Egress<strike></strike>
[/TD]
[TD]-1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I made a drop list ( observation column text ) in excel sheet, so once I changing the text in drop down list . Score need to count according to observation which is below zero.


Thanks in advance
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

Try

=COUNTIFS(A2:A8,D2,B2:B8,"<="&0)

A2:A8 is the range of "Observations"
D2 is the drop down list text
B2:B8 is the range of "Score"

Gaz
 
Upvote 0
Something like
=COUNTIFS(A2:A8,E2,B2:B8,"<=0")
Change E2 to the cell that has the dropdown
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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