Bamacoatie
New Member
- Joined
- Jun 21, 2021
- Messages
- 6
- Office Version
- 2016
- Platform
- Windows
Good morning,
I am trying to figure out a VBA to sum a column up to an approximate target value. And have that value put in another cell.
Target number ~90 +\- 4
I.e. VBA sums P16:P25 and it equals 88. It then places that number in column R on the same row as the last number summed.
then it goes to the next set of numbers that sums closest to 90 and places that number in column R on the same row as the last number in that set that was summed. And so on.
Thanks for any help anyone can give.
I am trying to figure out a VBA to sum a column up to an approximate target value. And have that value put in another cell.
Target number ~90 +\- 4
I.e. VBA sums P16:P25 and it equals 88. It then places that number in column R on the same row as the last number summed.
then it goes to the next set of numbers that sums closest to 90 and places that number in column R on the same row as the last number in that set that was summed. And so on.
Thanks for any help anyone can give.