Multiple Column Count

jlokesh16

New Member
Joined
Jan 22, 2015
Messages
39
Hello,

I have table below which consist of some values.

[TABLE="width: 461"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]20170731-1004452312[/TD]
[TD]0[/TD]
[TD]67[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170412-1004326973[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170712-1004426409[/TD]
[TD]0[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170724-1004453214[/TD]
[TD]0[/TD]
[TD]11[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170731-1004458586[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170801-1004447554[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170801-1004447746[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]20170725-1004451557[/TD]
[TD]0[/TD]
[TD]91[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170801-1004447981[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]20170801-1004453408[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170801-1004457821[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170801-1004461544[/TD]
[TD]17[/TD]
[TD]27[/TD]
[TD]56[/TD]
[/TR]
[TR]
[TD]20170802-1004411805[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170802-1004421295[/TD]
[TD]0[/TD]
[TD]18[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170802-1004440258[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170802-1004459871[/TD]
[TD]0[/TD]
[TD]21[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170727-1004450401[/TD]
[TD]17[/TD]
[TD]273[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170801-1004458819[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170802-1004461693[/TD]
[TD]0[/TD]
[TD]73[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170803-1004445438[/TD]
[TD]0[/TD]
[TD]44[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170803-1004446584[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170803-1004450607[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170803-1004452430[/TD]
[TD]0[/TD]
[TD]6[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170803-1004445948[/TD]
[TD]35[/TD]
[TD]33[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20170803-1004431587[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]286[/TD]
[/TR]
[TR]
[TD]20170808-1004440441[/TD]
[TD]0[/TD]
[TD]1373[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

Here I want to calculate the instances where col b & c values are not equal to 0. eg: there are 3 instances where col B & col C values are not equal to 0.

Thanks.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Give this formula a try (adjust the ranges as needed)...

=COUNTIFS(B1:B26,"<>0",C1:C26,"<>0")
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
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