I have some data set up with the the days of the month on the left (aka the rows), and customer names across the columns. Each customer has different values for the days of the month. I would like to count the number of zeroes each customer has and then display that information in a message box once a certain criteria is met. I can do this for one column with the code below:
Dim Count as Integer
Count = 0
Dim c As Range
For Each c in Range("C12:AG42")
If c.Value = "0" Then Count = Count + 1
Next
Cells(2,1).Value = Count
I do not understand how I would write this to move to the next column and also record the result? Is this a nested for loop task? Any advice is greatly appreciated. I learned vba a few years ago and haven't touched it so my skills have deteriorated considerably.
