+ Reply to Thread
Results 1 to 3 of 3

calculate averages of prices

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    London, UK
    MS-Off Ver
    2007
    Posts
    2

    calculate averages of prices

    hello,

    I have a spreadsheet which contains share prices that go years back and also gets updated with new ones. I would like to get a function that calculates the average share price per month whenever I update my spreadsheet. I was thinking of an average function whose arguments are cell addresses but I cannot make it work.

    The spreadsheet has columnds like this and the every time a new row appears with an updated share price

    14/10/2014 $60
    ....
    5/3/2010 $50
    ...
    1/1/2004 $55

    Can anyone advise?

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: calculate averages of prices

    You need to give a manually calculated example, your info is far too little.

  3. #3
    Registered User
    Join Date
    10-14-2014
    Location
    London, UK
    MS-Off Ver
    2007
    Posts
    2

    Re: calculate averages of prices

    Apologies for not making it clear. Column B gives the date of the stock price and column C the closing price. There are multiple stocks that go a few years back so this is an example for one stock. Every time I update the spreadsheet (Using a Bloomberg built in code) the older prices move to the rows below and the new ones appear on top. For this reason, I will need to use some sort of lookup function in order to calculate the average price every month.

    Column B Column C
    10/10/2014 254.02
    09/10/2014 251.66
    08/10/2014 255.09
    07/10/2014 258.23
    06/10/2014 259.63
    03/10/2014 261.88
    02/10/2014 264.55
    01/10/2014 265.81
    30/09/2014 265.17

    So in order to calculate say the June 2014 average price, I thought of doing: =Average(CELL("address",vlookup(02/06/2014,$B$1:$c$10000,2,false)):CELL("address",vlookup(30/06/2014,$B$1:$c$10000,2,false)) but it does not work. My reasoning was, using the look up function, to find the cells of beg and end days of each month and then put then in the average formula to find the average price. Hope this is clear, can anyone advise?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 11-11-2013, 08:18 AM
  2. how to calculate fuel prices
    By k b in forum Excel General
    Replies: 1
    Last Post: 04-15-2012, 09:56 AM
  3. Replies: 1
    Last Post: 05-02-2008, 10:41 AM
  4. How do I calculate two different prices based on a given quantity?
    By jstnvndn in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-04-2007, 02:24 PM
  5. CALCULATE SALES PRICES ON OLD INVOICES
    By DAVE in forum Excel General
    Replies: 1
    Last Post: 12-06-2005, 06:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1