Do While lrow <= last
Debug.Print (CountNumber(1, 1))
Debug.Print (Cells(lrow, 7) / 1000)
I'M HAVING A BRAIN MELTDOWN, WHY IS THIS IF THEN ELSE NOT WORKING
If lrow = 1 Then
CountNumber(count, 1) = lrow
CountNumber(count, 2) = Cells(count, 7) / 1000
count = 2
Else: For d = 1 To 100
If CountNumber(d, 2) = Cells(lrow, 7) / 1000 Then
CountNumber(d, 1) = CountNumber(d, 1) + 1
CountNumber(d, 2) = Cells(lrow, 7) / 1000
d = 100
End If
lrow = lrow + 1
End If
Next
Debug.Print (CountNumber(1, 1))
Debug.Print (Cells(lrow, 7) / 1000)
I'M HAVING A BRAIN MELTDOWN, WHY IS THIS IF THEN ELSE NOT WORKING
If lrow = 1 Then
CountNumber(count, 1) = lrow
CountNumber(count, 2) = Cells(count, 7) / 1000
count = 2
Else: For d = 1 To 100
If CountNumber(d, 2) = Cells(lrow, 7) / 1000 Then
CountNumber(d, 1) = CountNumber(d, 1) + 1
CountNumber(d, 2) = Cells(lrow, 7) / 1000
d = 100
End If
lrow = lrow + 1
End If
Next