+ Reply to Thread
Results 1 to 12 of 12

Formula for automatically adding rows to range

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    Formula for automatically adding rows to range

    Hi

    I have a range of data from C3 to C292 and I want to find the average of this data. I also want the average to update when new data is added to the rows below.

    Eg

    Date... Value
    1/1/13...10
    2/1/13...14
    3/1/13...12
    4/1/13....15

    Average =

    Then when data for the 5th, 6th and onwards are added, I want the average to change.

    What is the formula?

    Thanks,

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula for automatically adding rows to range

    Have you tried:

    =AVERAGE(C:C)

  3. #3
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Formula for automatically adding rows to range

    Quote Originally Posted by Andrew-R View Post
    Have you tried:

    =AVERAGE(C:C)
    Yeah I have, that just produces an average of 0... It's because I have headings in C1 and C2 which mucks up simply doing it =Average(C:C)

    How do I get it just to go from cell C3 where the data starts down to the last cell of filled data in column C?

    Thanks,

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula for automatically adding rows to range

    Quote Originally Posted by no.18shirt View Post
    Yeah I have, that just produces an average of 0... It's because I have headings in C1 and C2
    Really? When I test with text values in C1 and C2 it still produces a sensible result for me.

    I suppose that if every cell in column C contained a value then you could use:

    =AVERAGE(C3:OFFSET(C1,COUNTA(C:C)-1,0))

    Seems a bit of a roundabout way, though.
    Attached Files Attached Files
    Last edited by Andrew-R; 07-23-2013 at 07:35 AM.

  5. #5
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Formula for automatically adding rows to range

    Still the same problem for me

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula for automatically adding rows to range

    Maybe it's a difference between Excel 2007 and 2010. Anyway, my formula from the post above should work.

  7. #7
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Formula for automatically adding rows to range

    It worked for you because you included numbers after each of the headings which was counted into the average. If you get red of them then you have the same problem I'm getting. And I'm on Excel 2013 at work at the moment.

  8. #8
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula for automatically adding rows to range

    The rough sheet I was using just used "Test" (with no numerics) as the headings and the formula still worked fine, and deleting the numerics from the headings in the example sheet I posted doesn't stop it working.

    Strange.

    Anyway - the formula I posted in post #4 will work whatever.

  9. #9
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Formula for automatically adding rows to range

    The formula didn't work either, it still produces 0

  10. #10
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula for automatically adding rows to range

    Then we have another problem. Can you post an example workbook?

  11. #11
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Formula for automatically adding rows to range

    Here's a modified version of it. It's slightly different but the same problem still appears.

    How do you reckon I could solve it so the more lines added at the bottom will be added to the average total?

    Thanks,
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula for automatically adding rows to range

    Both the straightforward =AVERAGE(B:B) and the more complex formula work fine if you don't put them in column B!

    If you do then you're trying to have the average include the average itself, which obviously causes problems.

    If what you're after is to be able to enter more rows of data and then have an average appear at the bottom then you need a macro, not a formula.

+ 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. Can't automatically add checkboxes when adding rows
    By bcurry3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-04-2011, 03:31 PM
  2. Adding rows Automatically in Excell
    By TranceCo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2009, 02:27 PM
  3. adding rows automatically
    By saintr in forum Excel General
    Replies: 2
    Last Post: 05-12-2007, 09:30 PM
  4. [SOLVED] Adding or Deleteing Rows in a Range with an Array formula
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2005, 04:05 PM
  5. [SOLVED] Automatically adding new rows with formula
    By Brian in forum Excel General
    Replies: 2
    Last Post: 01-16-2005, 11:06 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