Without the loop for the sheets, it works out fine, and in sheet 3 is shown the results of the CountIf.![]()
Please Login or Register to view this content.
With the loop, all the results are 0.
Any idea what the problem is?
Without the loop for the sheets, it works out fine, and in sheet 3 is shown the results of the CountIf.![]()
Please Login or Register to view this content.
With the loop, all the results are 0.
Any idea what the problem is?
You're giving us the minimum information possible. What are you trying to do? What are the variables? Is this line a typo?
![]()
Please Login or Register to view this content.
typo indeed.![]()
Please Login or Register to view this content.
Well, not a lot more of information is required.
for example, I'm counting all the people named JEF in sheet 1 and 2.
In sheet 3 you can see the results.
So, I tried this For Next, to loop through the two sheets, but the results are 0.
But, if I do it without the loop for worksheets. It works perfectly, the negative point is that my code is twice as long.![]()
Please Login or Register to view this content.
Try referencing the sheet directly
and remove the Select line. I still can't follow your code - you should define your variables.![]()
Please Login or Register to view this content.
Also, since you're asking a question here don't you think we should be the judge of how much information is needed?
This works, the right results are showed![]()
Please Login or Register to view this content.
This doesn't work, all the results are 0![]()
Please Login or Register to view this content.
I hope this is enough information
Repeatedly posting the same code is not information. Post a workbook. I don't see why you can't use formulae anyway.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks