Genghis Conn
New Member
- Joined
- Dec 27, 2019
- Messages
- 3
- Office Version
- 365
- Platform
- MacOS
Hey guys, I'm a high school student working on a passion project of mine and need some help. It's my first time posting on this forum so I'm sorry if I'm omitting any information.
I'm dealing with a few large excel sheets of around 250,000 rows and 15 columns. In Row 3 Column R I have the following formula =(SUM(M3:M514)/SUM(K3:K514))*75. This formula updates and repeats each time a value in column E changes, which is usually around every 600 rows but can vary by +/-500 rows. For an example of and update to this formula, the second iteration of this formula is =(SUM(M515:M1259)/SUM(K515:K1259))*75 and appears at Row 515 Column R. What I need is a solution/macro that can input the above formula each time it detects a change in the repeating values in column E and is capable of changing the end of the range to the cell immediately before the next change in Column E. The first part seems relatively easy, the second not so much haha.
Inserted above is an example of the data, so at 1260 the name in Column E changes so my range ends 1 before that at 1259.
I'm running Office 365 for Mac. Thanks for any help you can offer.
I'm dealing with a few large excel sheets of around 250,000 rows and 15 columns. In Row 3 Column R I have the following formula =(SUM(M3:M514)/SUM(K3:K514))*75. This formula updates and repeats each time a value in column E changes, which is usually around every 600 rows but can vary by +/-500 rows. For an example of and update to this formula, the second iteration of this formula is =(SUM(M515:M1259)/SUM(K515:K1259))*75 and appears at Row 515 Column R. What I need is a solution/macro that can input the above formula each time it detects a change in the repeating values in column E and is capable of changing the end of the range to the cell immediately before the next change in Column E. The first part seems relatively easy, the second not so much haha.
Inserted above is an example of the data, so at 1260 the name in Column E changes so my range ends 1 before that at 1259.
I'm running Office 365 for Mac. Thanks for any help you can offer.