+ Reply to Thread
Results 1 to 5 of 5

calculating averages for every 5rows help

  1. #1
    Forum Contributor
    Join Date
    02-12-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    261

    calculating averages for every 5rows help

    Hi All

    i have weekly data in a sheet , after every 5 rows i want to calculate a average for the above 5 rows. The number of rows might increase,so i started with a rows.count code

    any further info you want please let me know

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Never confuse a single defeat to the final defeat.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating averages for every 5rows help

    no VBA needed.

    f6=if(and(C5>0,C6=""),average(C1:C5),"")

    and drag across.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: calculating averages for every 5rows help

    Just so you know how, this works using VBA as long as you keep 2 rows inbetween each set of data.

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Forum Contributor
    Join Date
    02-12-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    261

    Re: calculating averages for every 5rows help

    Thank you guys for your help.

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: calculating averages for every 5rows help

    Glad the options worked for you. Thanks for the rep as well.

+ 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. calculating averages
    By rjc_29 in forum Excel General
    Replies: 2
    Last Post: 08-24-2011, 03:18 PM
  2. Calculating Averages
    By phillim in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-21-2008, 01:43 PM
  3. Calculating averages
    By mr_teacher in forum Excel General
    Replies: 5
    Last Post: 11-09-2007, 02:47 PM
  4. [SOLVED] calculating averages
    By Golf Averages in forum Excel General
    Replies: 1
    Last Post: 08-15-2005, 04:05 PM
  5. Calculating Averages
    By Dani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2005, 12:05 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