alanlambden
Board Regular
- Joined
- Nov 20, 2014
- Messages
- 73
Hi there,
I'm trying to run a small calculation that I can't seem to crack. I guess it would be best with a macro, but if it can be done using a formula, then that would be even better. Here's what I want to do:
Step one: Count down column B until cell value is no longer larger than the previous.
Step two: Sum all column A until column B is no longer larger than previous.
Step Three: Divide the cumulative sum of column A by total sum of column A until column B restarts at cell value of "1".
The answer I want is in Column C in the image below. I did this manually but I have many more records. In summary, calculate the cumulative weight of column A as a percentage of the total weight while column B counts upwards.
Apologies for the image, cant seem to install XL2BB. I'll keep trying.
I'm trying to run a small calculation that I can't seem to crack. I guess it would be best with a macro, but if it can be done using a formula, then that would be even better. Here's what I want to do:
Step one: Count down column B until cell value is no longer larger than the previous.
Step two: Sum all column A until column B is no longer larger than previous.
Step Three: Divide the cumulative sum of column A by total sum of column A until column B restarts at cell value of "1".
The answer I want is in Column C in the image below. I did this manually but I have many more records. In summary, calculate the cumulative weight of column A as a percentage of the total weight while column B counts upwards.
Apologies for the image, cant seem to install XL2BB. I'll keep trying.