+ Reply to Thread
Results 1 to 7 of 7

summing averages of paired data

Hybrid View

sesquiup summing averages of paired... 10-23-2007, 02:27 AM
starguy Here is a single cell formula... 10-23-2007, 03:14 AM
lecxe Hi I agree with the... 10-23-2007, 05:14 AM
starguy Thank you for pointing out. 10-23-2007, 06:13 AM
sesquiup Oops, I goofed... it's not... 10-23-2007, 12:57 PM
starguy If you want the averages in... 10-24-2007, 02:12 AM
Ron Coderre summing averages of paired... 10-23-2007, 01:59 PM
  1. #1
    Registered User
    Join Date
    10-23-2007
    Posts
    3

    summing averages of paired data

    I have two sets of data in the same row, say A1:J1 and then K1:U1. These are paired, so that A1 goes with K1, B1 with L1, etc.

    I want to take the average of each pair, and then sum the averages, say like this:

    =average(A1,K1) + average (B1,L1) + average(C1,M1) + ...

    Naturally, this can get tedious.

    Now, a simple solution would be to put the data into two separate rows, but let's just say that I can't do that -- the data in the spreadsheet is going to be imported into another application, and these data MUST be in the same row. I feel like there's a better way.

    sesquiup

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Here is a single cell formula

    =SUM(A1:J1,K1:T1)/2
    Last edited by starguy; 10-23-2007 at 06:11 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373
    Hi

    I agree with the formula but I don't think it's an array formula, SUM() accepts ranges. I think you just have to confirm with Enter.

    Kind regards
    lecxe

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by lecxe
    Hi

    I agree with the formula but I don't think it's an array formula, SUM() accepts ranges. I think you just have to confirm with Enter.

    Kind regards
    lecxe
    Thank you for pointing out.

  5. #5
    Registered User
    Join Date
    10-23-2007
    Posts
    3
    Oops, I goofed... it's not this simple. The second set of data sometimes has blanks. So, if the first set of data is

    10 10 2 8

    and the second set of data is

    blank 4 6 blank

    Then the averages I want are

    10 7 4 8

    Just summing everything and dividing by 2 won't work.

    sesquiup

  6. #6
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by sesquiup
    Oops, I goofed... it's not this simple. The second set of data sometimes has blanks. So, if the first set of data is

    10 10 2 8

    and the second set of data is

    blank 4 6 blank

    Then the averages I want are

    10 7 4 8

    Just summing everything and dividing by 2 won't work.

    sesquiup
    If you want the averages in seperate cells as you mentioned (i-e 10 7 4 8) then simple AVERAGE function will work.

    =AVERAGE(A1,K1) and copy it to right side. Then you can SUM all averages.

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    summing averages of paired data

    First, the 2 ranges must be the same size.
    A1:J1 is 10 cells
    K1:U1 is 11 cells!

    So, I'll use
    A1:J1 and K1:T1

    Try this formula:
    =SUMPRODUCT((A1:J1+K1:T1)/(1+(K1:T1<>"")))
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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