Countif Macro

Davg

Board Regular
Joined
Jul 19, 2011
Messages
62
I have 1000 sports games, each with about 500 rows of data.

I need to tabulate the data for each game.

I have inserted two empty rows at the bottom of each game.

I need a macro (I think) which allows me to do a countif function and then inserts the result at the bottom of each game. The range for the countif function needs to be one game i.e. from one empty row to another. There are also three criteria which need to be satisfied for it to be counted.

For example, I would like:

To count all the times column C has "Manchester United" and column D has "shot" and column E has "missed". But count this for each game (i.e. between empty rows).

Thanks for any help

David
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,222,095
Messages
6,163,898
Members
451,865
Latest member
dunworthc

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