+ Reply to Thread
Results 1 to 4 of 4

Averaging

  1. #1
    Registered User
    Join Date
    06-28-2005
    Posts
    3

    Talking Averaging

    I have a column with monthly volumes, but occasionally there will be a day or two were no volume is entered. I need to find the average of the last 4 volumes entered. Please see attachment.


    The volume for June-05 should be the average of 1692.6, 1532.9, 1761.5 and 1787.9. Is there a formula that will find the most recent 4 volumes and average them.

    Thanks for any help you can give.
    Attached Files Attached Files
    Last edited by Ninjafer; 06-28-2005 at 08:50 AM.

  2. #2
    Don Guillett
    Guest

    Re: Averaging

    one way
    =AVERAGE(TRANSPOSE(INDIRECT(ADDRESS(LARGE(ISNUMBER(H2:H65536)*ROW(H2:H65536)
    ,ROW(INDIRECT("1:5"))),COLUMN(H2:H65536)))))
    OR shorter
    =AVERAGE(OFFSET($H$1,COUNTA(H:H)-1,0,5))
    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "Ninjafer" <Ninjafer.1rc85u_1119964103.6495@excelforum-nospam.com> wrote in
    message news:Ninjafer.1rc85u_1119964103.6495@excelforum-nospam.com...
    >
    > I have a column with monthly volumes, but occasionally there will be a
    > day or two were no volume is entered. I need to find the average of
    > the last 4 volumes entered. Please see attachment.
    >
    >
    > The volume for June-05 should be the average of 1692.6, 1532.9, 1761.5
    > and 1787.9. Is there a formula that will find the most recent 4
    > volumes and average them.
    >
    > Thanks for any help you can give.
    >
    >
    > +-------------------------------------------------------------------+
    > |Filename: Question.pdf |
    > |Download: http://www.excelforum.com/attachment.php?postid=3547 |
    > +-------------------------------------------------------------------+
    >
    > --
    > Ninjafer
    > ------------------------------------------------------------------------
    > Ninjafer's Profile:

    http://www.excelforum.com/member.php...o&userid=24711
    > View this thread: http://www.excelforum.com/showthread...hreadid=382770
    >




  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that Column B contains your data...

    C4, copied down:

    =AVERAGE(SUBTOTAL(9,OFFSET($B$1,LARGE(IF($B$1:B4<>"no volume",ROW($B$1:B4)-ROW($B$1)+1),{1,2,3,4})-1,0)))

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    Quote Originally Posted by Ninjafer
    I have a column with monthly volumes, but occasionally there will be a day or two were no volume is entered. I need to find the average of the last 4 volumes entered. Please see attachment.


    The volume for June-05 should be the average of 1692.6, 1532.9, 1761.5 and 1787.9. Is there a formula that will find the most recent 4 volumes and average them.

    Thanks for any help you can give.

  4. #4
    Registered User
    Join Date
    06-28-2005
    Posts
    3

    Talking It Works!

    Thanks for the help! I don't know how it works, but I'm happy it does. I know my team will be thrilled.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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