1) I have a column from a20:a27 with numbers from 1-8. I'm trying to find the max of the number using a simple loop. How do I do this? So far I have:
Sub find_max1()
Dim x As Integer
for X = 1 to 7000
cells(x,1).max
next X
End Sub
2) Once I obtain that max value, I want to put it in row 1. After that I want to take the max value - 1 and put it in row 2, etc, until I have put the last number in the last row. How do I do this
Sub find_max1()
Dim x As Integer
for X = 1 to 7000
cells(x,1).max
next X
End Sub
2) Once I obtain that max value, I want to put it in row 1. After that I want to take the max value - 1 and put it in row 2, etc, until I have put the last number in the last row. How do I do this