+ Reply to Thread
Results 1 to 2 of 2

Creating a colum consisting of interval averages of an input column

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    inverness
    MS-Off Ver
    Excel 2007
    Posts
    26

    Creating a colum consisting of interval averages of an input column

    Hi,

    I am new to this forum and new to vba coding.

    I hope i am posting this in the correct part of the forum, if not please inform me.

    My problem is the following:

    I have a column of data of 40 values long. I wish to create a new column of data where the first value in the new column consists of the average value from the first 5 values in the original column. The second value in the new column is the average of the next 5 values in the original column. The third value in the new column is the average of the next 5 values in the original column, and so on. Therefore my new column will consist of 8 values. (40/5= 8)

    I will then look to expand on this work by allowing a user to input a "whole number" value, where this value will dictate how many values will be used to calculate the average. For example if the user input 2, the new column would be 20 values long, and each value will consist of the average between 2 values in the original column.


    Any help would be greatly apreciated.

    Cheers,

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Creating a colum consisting of interval averages of an input column

    Given that you have posted exactly the same thread in this forum 6 minutes later, I would suggest that you close this thread and refer other posters to your later thread with a link to it from here.

    Pete

+ 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