Hi Friends,
I have the below requirement. The table below has the prices of a certain item for 9 days. I have to calculate the average number of days the prices went up continuously, and the average number of days the prices went down continuously. For eg, the answer is 3 for the increase as it increased continuously for the first three days and the last three days.
Could anyone help me with the formula required to do this task? Thanks a ton for your help.
Day Price 1 10 2 20 3 30 4 20 5 18 6 16 7 25 8 28 9 35
Bookmarks