I need Excel vba code to divide Column G by Column H and store the values in Column I.
The data looks like this
Column g Column h Column i
10,000.00 23
24,750.00 25
10,200.00 26
-3,127.04 28
I am not thorough with VBA and have made an attempt to write this code after gathering pieces from here and there. But this isn’t working at all.
I would really appreciate if some one can suggest the correction needed or suggest any other alternate code.
Thanks for the help.
The data looks like this
Column g Column h Column i
10,000.00 23
24,750.00 25
10,200.00 26
-3,127.04 28
I am not thorough with VBA and have made an attempt to write this code after gathering pieces from here and there. But this isn’t working at all.
Code:
x = Selection.Rows.count
Worksheets("Settled Wire").Range("A" & x + 4).Value = "END NOW"
countx = 1
count = 0
Do Until Range("A" & countx).Value = "END NOW"
Range("I" & countx).Formula = "=Range("G" & countx)/Range("H" & countx)"
countx = countx + 1
Loop
I would really appreciate if some one can suggest the correction needed or suggest any other alternate code.
Thanks for the help.