Hi,
I have faced with a problem with Excel when I wanted to find the average for a stock price.
I have 2 columns:
1st Column: Dates from 1st May 2007 till 23th December 2008 (Rows:A3:A403)
2nd Column: Stock prices from 1st May 2007 till 23th December 2008 (Rows:B3:B403)
So far, what I have researched is coming to the conclusion of using:
SUMIF(range,criteria,sum_range)
May I ask how would I modify this code so that I can input it into a macro whereby the SUMIF function can automatically sort if A3:A403 belongs to which months and then calculate the average of the stock price?
Bookmarks