Eraengineer
Board Regular
- Joined
- Jun 12, 2011
- Messages
- 226
Looking for a macro that takes a range of numbers lets say A1 to A20 and goes down the list adding up the values to the point the sum becomes equal to 6. If the sum is greater than 6 then it backs off one. The sum should be entered in the cell next to where the 6 appeared or where it backed off. Exmaple if A1+A2+A3= 5.3 then the answer 5.3 is entered into cell B3. The trick to this is that I want this formula to loop until A20 is hit.