Hi Folks,
I have a range of cells that I would like to populate using a macro in the following way for example.
If A1 < 50 Then
E1 = A1 + 40
F1 = B1 + 20
G1 = C1 + 20
H1 = D1 - E1
Else If A1 >= 50 And A1 < 100 Then
E1 = A1 + 80
F1 = B1 + 40
G1 = C1 + 40
H1 = D1 - E1
.....
I apologize about the syntax. Anyway for some reason I can not wrap my head around the best way to do this for 30 rows of data. I suppose a loop of some variety but I couldn't find in my searches how to do that, something I figured would look something like this; Range("A[LoopCount]")
I imagine this is probably something basic but then so am I. Any suggestions are more than welcome.
I have a range of cells that I would like to populate using a macro in the following way for example.
If A1 < 50 Then
E1 = A1 + 40
F1 = B1 + 20
G1 = C1 + 20
H1 = D1 - E1
Else If A1 >= 50 And A1 < 100 Then
E1 = A1 + 80
F1 = B1 + 40
G1 = C1 + 40
H1 = D1 - E1
.....
I apologize about the syntax. Anyway for some reason I can not wrap my head around the best way to do this for 30 rows of data. I suppose a loop of some variety but I couldn't find in my searches how to do that, something I figured would look something like this; Range("A[LoopCount]")
I imagine this is probably something basic but then so am I. Any suggestions are more than welcome.