+ Reply to Thread
Results 1 to 6 of 6

"Average" questions

  1. #1
    Registered User
    Join Date
    07-06-2006
    Posts
    5

    "Average" questions

    I need help. (Obviously)

    How can I find simple (and weighted) averages of a column of numbers... but not the entire column. Example, I have a column of 50 data points and want to average the last 8 numbers only. The trick here is that my data set is 50 columns wide as well, but each successive column gets one number less. So Column A has 50, from row 1 to 50, Column b has row 1 to 49 etc. all the way to one row only out at column 50. I want to average the last 8 numbers only and then drag my formula across all columns and not have to go into the formula bar and change my array by one row for each column.

    Does this make sense? If anyone is an actuary I am working on insurance loss development triangles if that helps. I am trying to make getting my LDF picks easier.

    Thanks,

    Jason

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by Bootroots
    I need help. (Obviously)

    How can I find simple (and weighted) averages of a column of numbers... but not the entire column. Example, I have a column of 50 data points and want to average the last 8 numbers only. The trick here is that my data set is 50 columns wide as well, but each successive column gets one number less. So Column A has 50, from row 1 to 50, Column b has row 1 to 49 etc. all the way to one row only out at column 50. I want to average the last 8 numbers only and then drag my formula across all columns and not have to go into the formula bar and change my array by one row for each column.

    Does this make sense? If anyone is an actuary I am working on insurance loss development triangles if that helps. I am trying to make getting my LDF picks easier.

    Thanks,

    Jason
    Try this and see if it helps you.

    =average(offset($A$1,count(A1:A50)-8,0,8))
    BenjieLop
    Houston, TX

  3. #3
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by Bootroots
    I need help. (Obviously)

    How can I find simple (and weighted) averages of a column of numbers... but not the entire column. Example, I have a column of 50 data points and want to average the last 8 numbers only. The trick here is that my data set is 50 columns wide as well, but each successive column gets one number less. So Column A has 50, from row 1 to 50, Column b has row 1 to 49 etc. all the way to one row only out at column 50. I want to average the last 8 numbers only and then drag my formula across all columns and not have to go into the formula bar and change my array by one row for each column.

    Does this make sense? If anyone is an actuary I am working on insurance loss development triangles if that helps. I am trying to make getting my LDF picks easier.

    Thanks,

    Jason
    Try this and see if it helps you.

    =average(offset($A$1,count(A1:A50)-8,0,8))

  4. #4
    Roger Govier
    Guest

    Re: "Average" questions

    Hi

    One way, place the following formula in say cell A52
    =SUM(INDEX(A1:A50,COUNT(A1:A50)-MIN((COUNT(A1:A50)-1),7)):INDEX(A1:A50,COUNTA(A1:A50)))/8

    Copy across for all of your columns


    --
    Regards

    Roger Govier


    "Bootroots" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I need help. (Obviously)
    >
    > How can I find simple (and weighted) averages of a column of
    > numbers...
    > but not the entire column. Example, I have a column of 50 data points
    > and want to average the last 8 numbers only. The trick here is that my
    > data set is 50 columns wide as well, but each successive column gets
    > one number less. So Column A has 50, from row 1 to 50, Column b has
    > row
    > 1 to 49 etc. all the way to one row only out at column 50. I want to
    > average the last 8 numbers only and then drag my formula across all
    > columns and not have to go into the formula bar and change my array by
    > one row for each column.
    >
    > Does this make sense? If anyone is an actuary I am working on
    > insurance
    > loss development triangles if that helps. I am trying to make getting
    > my
    > LDF picks easier.
    >
    > Thanks,
    >
    > Jason
    >
    >
    > --
    > Bootroots
    > ------------------------------------------------------------------------
    > Bootroots's Profile:
    > http://www.excelforum.com/member.php...o&userid=36126
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=558989
    >




  5. #5
    Bob Phillips
    Guest

    Re: "Average" questions

    =AVERAGE(LARGE(IF(A1:A50<>"",ROW(A1:A50)),ROW(INDIRECT("1:"&MIN(8,COUNT(A1:A
    50))))))

    which is an array formula, it should be committed with Ctrl-Shift-Enter, not
    just Enter.

    Copy across


    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Bootroots" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I need help. (Obviously)
    >
    > How can I find simple (and weighted) averages of a column of numbers...
    > but not the entire column. Example, I have a column of 50 data points
    > and want to average the last 8 numbers only. The trick here is that my
    > data set is 50 columns wide as well, but each successive column gets
    > one number less. So Column A has 50, from row 1 to 50, Column b has row
    > 1 to 49 etc. all the way to one row only out at column 50. I want to
    > average the last 8 numbers only and then drag my formula across all
    > columns and not have to go into the formula bar and change my array by
    > one row for each column.
    >
    > Does this make sense? If anyone is an actuary I am working on insurance
    > loss development triangles if that helps. I am trying to make getting my
    > LDF picks easier.
    >
    > Thanks,
    >
    > Jason
    >
    >
    > --
    > Bootroots
    > ------------------------------------------------------------------------
    > Bootroots's Profile:

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




  6. #6
    Registered User
    Join Date
    07-06-2006
    Posts
    5
    Thanks everyone! I will try all and see what works for me.

+ 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