+ Reply to Thread
Results 1 to 2 of 2

Average every four lines

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41

    Average every four lines

    I have a column with numbers in it, and I would like to programatically average every four rows in the column.
    What is the easiest way to do this?

    Thanks in advance
    Macro-wave

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Try this array formula

    =AVERAGE(IF(MOD(ROW(A2:A200),4)=0,A2:A200))

+ 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