+ Reply to Thread
Results 1 to 4 of 4

Averaging values in different rows

  1. #1
    Registered User
    Join Date
    03-21-2007
    Posts
    18

    Averaging values in different rows

    Hello!

    Am wondering if there is a quick way to average different rows. I'll try to make myself clear: I have a column (say column A) with 100 values to average.

    in B1 I write: =AVERAGE(A1:A100)
    in B2 I write: =AVERAGE(A2:A100)
    in B3 I write: =AVERAGE(A3:A100)

    ... and so on till I reach =AVERAGE(A100:A100)

    I tried with copy/paste, but it takes too long as I have more than 500 rows!!!!!!! Any suggestion please?

    Many Thanks
    pitto

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721
    If you put this formula in B1

    =AVERAGE(A1:A$100)

    you can copy it down to B100 and it will automatically adjust as you want.

    To "fill down" put the formula in B1 and place cursor on the bottom right corner of B1 until you see a black +, this is the "fill handle". Double click the fill handle and the formula should automatically fill down column B as far as you have values in column A

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    If you make a small change in your formula, it should work so that you can simply fill your formula down 500 rows or more..

    Instead of =AVERAGE(A1:A500)

    Use =AVERAGE(A1:$A$500)

    Once you have entered this into B1, click on the "fill handle" in the lower right corner of the cell and drag down to row 500. Your formula will update, but the $A$500 part will not change. It will end up like:

    =AVERAGE(A2:$A$500)
    =AVERAGE(A3:$A$500)
    =AVERAGE(A4:$A$500)...etc, down to
    =AVERAGE(A500:$A$500)

  4. #4
    Registered User
    Join Date
    03-21-2007
    Posts
    18

    Thank You!

    Wow it worked like I wanted!!! It saves me lots of time!! Thank you so much!

    So... the character $ before the column letter and/or row number simply makes these parameters fixed????

    How interesting.....

    Cheerio

    Pitto

+ 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