Help need with Countif formula

pkohli

Board Regular
Joined
Aug 2, 2005
Messages
71
Hi

I have the data in excel as follows

Column A B
Row 1 x x
Row 2 x
Row 3 x x
Row 4 x
Row 5 x
Row 6 x x

I want to count total number of rows that have x in both column. for eg in above eg 3 rows have x in both column.

Could anyone please help with the formula? I have to count this for 20 sheets with over 100 rows in each sheet.

Thanks
Pooja
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

SSJSatch

New Member
Joined
Sep 27, 2006
Messages
4
Try this

=COUNTIF(A1:A9,"xx")

You would of course want to include your range.
 

Forum statistics

Threads
1,141,057
Messages
5,704,029
Members
421,323
Latest member
Exidous

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
Top