Dear Excel Forum,
Could you please tell me how to write a Loop in VBA
to calculate the values of the formula below
I would like to manually input a START NUMBER of say = 150 in the formula
=((( ((3 + (9 + 12*START NUMBER)^0.5)/6)+INCREMENT)*6-3)^2-9)/12
Then recalculate the formula with Increments of
1,2,3,4,5,6,7,8,9,10,11,12, up to >> 24
re-run the loop a second time with the increments of
0.5, 1.5, 2.5, 3.5 ,4.5, 5.5, 6.5 ,7.5, 8.5, 9.5, 10.5, up to >> 23.5
with the results as integers in a two comma separated lists
increment = 0 =((( ((3 + (9 + 12*150)^0.5)/6)+0)*6-3)^2-9)/12 = 150
increment = 1 =((( ((3 + (9 + 12*150)^0.5)/6)+1)*6-3)^2-9)/12 = 196
increment = 2 =((( ((3 + (9 + 12*150)^0.5)/6)+2)*6-3)^2-9)/13 = 247
increment = 3 =((( ((3 + (9 + 12*150)^0.5)/6)+3)*6-3)^2-9)/14 = 305
See attached Excel spreadsheet " HEX Excel Forum "
Thanking you in advance
Best regards
Derek
Bookmarks