Hi
I am a fairly experienced Excel user but have no experience with VBA but fear that VBA may be the only way I can do what I want to.
I want to be able to cycle/loop thru an interval defined by two cell references and add the sum of each cycle step
For a simple example
Cell A1: 3
Cell B1: 10
Cell C1: sum(5*[Each integer from Cell A1 to B1)
In other words, I want Cell C1 to generate: (5*3) + (5*4) + (5*5) +....+ (5*10)
The range of potential values would be the integers from 1 to 5000
I have read thru some literature (on this great site and others) that suggest various loops in VBA. I am leery of doing this because I need to repeat this formula about 100 times within my spreadsheet and I dont want to get the program bogged down.
Is there an existing formula that I am missing which would do this? Or is a program via VBA the only way to do it?
Many thanks in advance for help and advice
David
Bookmarks