xcellnthefuture
New Member
- Joined
- Nov 17, 2020
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hello! I am trying to do a "Do While" loop to calculate a running total based on criteria. For the below:
What I am trying to do is while the SKU column is the same, add up all the pink quantities together, add up all the purple quantities together (make the purple quantities positive) and then output the lower number between the two on the last line of the purple for that SKU.
Here is what I did manually, that I need the VBA to do.
Here is my code that I am currently working on.
What I am trying to do is while the SKU column is the same, add up all the pink quantities together, add up all the purple quantities together (make the purple quantities positive) and then output the lower number between the two on the last line of the purple for that SKU.
Here is what I did manually, that I need the VBA to do.
Here is my code that I am currently working on.