Hi,
I am trying to make a sampling iterative macro, however it appears that it is not working properly (or at all really).
Basically, I have some rows with revenue and cumulative revenue. Then based on some generated rows, I would want to output the first cumulative sum number after the generated numbers which should iterate (hopefully). Iterations should stop when the iteration reaches the last row, currently it is just a hardcoded number, but I would like it dynamic - havent figured out how to do that yet either.
I guess the main issue here is that im not able to pass the data from the generated rows over to the filter tool which currently is a mess.
I have provided a minimum viable program to illustrate this.
Hope some of you can push me in the right direction or point out what I have misunderstood.
(I have solved this without macros, but im trying to do it with macro)
Thanks in advance!