Hello,
I need some help in writing a while loop for my excel spreadsheet. I have never used VBA/Macros before and cannot find any specific help online for what I want to do. I hope someone can advise the best way of doing this in excel.
I am trying to do a simple while loop as follows and for the answer to display in cell D58 in my spreadsheet:
m1=D55;
t=D15;
L=C46
A=D17;
i=1;
while i<=t
m2=m1+(L/A);
m1=m2;
i=i+1;
end
disp(m1)
where D55, D15,C46 and D17 are the cell reference in the excel spreadsheet and are integers inputted by the user.
Any question, just ask!
Thanks
Bookmarks