all three lines of code use the same type of syntax. if i am not mistaken, the each of the code should return number of rows from header until just before a blank cell.
Expected result from the image: cntr2 : 1 cntr3 : 1 cntr : 3
Actual result: cntr2 : 8 cntr3 : 2 cntr : 3
here are the codes:
Sub mengelear()
cntr2 = Range("K10", Range("K10").End(xlDown)).Count
cntr3 = Range("AC10", Range("AC10").End(xlDown)).Count
cntr = Range("U10", Range("U10").End(xlDown)).Count
MsgBox (cntr)
End Sub
how do i solve this. tried the syntax "Clear" and "Clearcontent" but the result is still the same.
Your help and advices are really much needed and appreciated. Thanks in advance

Application.CountA(Range("K10", Range("K10").End(xlDown)))should do it.