Hi,
This is driving me crazy - please help !!!!
I want to execute a Countif in VBA based on multiple criteria then paste the information into a summary table in another sheet.
for example: - in my workbook I have two tabs "Sheet 1" is called Import, "Sheet 2" is called Summary.
Ideally I want to paste a mass data set into the Import tab (columns A:Q) row 1 is the header. The data set can vary in number of rows for example, one day it could be 600 rows another day it could be 300 and so on. Basically its not a fixed range however, the data I am counting will always be in column A - if that makes sense?
Executing the VBA will count down column A to the last row in the Import Sheet based on the criteria I set and then paste the results into a table in the Summary sheet. The table has headings corresponding to what the Countif is counting which is always static.
The process is repeated everyday - so the criteria being counted needs to paste in the next available row in the table located in the summary sheet.
I have created a mock up workbook using countries as the imported data set to kind help with what i am trying to achieve.
Any help or pointers will be a massive help
I've tried google and managed to find this but its too static, I am unsure how to manipulate this to achieve my goal?
![]()
Countif2() Range("F2").Value = Application.WorksheetFunction.CountIf(Range("a2:a800"), "USA") End Sub
Best wishes
Slosh
Bookmarks