Count how many times you buy something, without selling it
The difficult part is that there are also zero values between it
So you buy at A2, A7 and A11. And then at B11 you sell something.
So you count at C2 is1 at A7 is 2 and A 11 is 3
Every time you buy something you have to count how many times you bought something without selling it.
If you sold something you are going to start all over. So at A12 you start over with counting, this one you sell so is only 1
At A14 you are going to start all over with counting till A24
The right asnwers are in column C but I have to automate it for a really large sheet
Can someone please help me!
Bookmarks