I am trying to do calculations with rows in a column: I have the following data for one product:
Day Price
1 3$
2 12$
3 4$
4 2$
5 4$
I want to divide the price change of a day by the day before so, for example for Day 2:
12$/3$ = 4
Results should be:
Day Price Calculation
1 3$ NA
2 12$ 4
3 4$ 0,33
4 2$ 0,5
5 4$ 2
I have a list of 5000 prices. I am also concerned how to get the NA in Day 1 were no calculation is possible.
Thank you!