+ Reply to Thread
Results 1 to 7 of 7

Average of Results

  1. #1
    Registered User
    Join Date
    11-04-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Average of Results

    Is it possible to average the results of a given formula? What I'm trying to avoid is the creation of an extra column to perform the math function.

    Example: Average of C-A for all columns. I tried =Average((C-A)C-A)) but of course excel didn't like that....

    Also tried =Average((C2-A2)C200-A200)) but that didn't work either.

    Thanks!

  2. #2
    Registered User
    Join Date
    11-04-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Average of Results

    Ha.. Those smilies should be part of the formula, let me try that again:

    =Average((C-A) : (C-A))
    AND
    =Average((C2-A2) : (C200-A200))

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Average of Results

    It's not clear to me exactly what you are saying...

    You want to average all the differences between each row of columns C and A?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    11-04-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Average of Results

    Exactly, but I'd like to do so without creating a column for the differences.

    Example:
    Cell D2 = C2-A2
    ...
    Cell D200 = C200-A200
    Cell D201 = Average(D2:D200)

    If I could get away without column D, I could display the results of D201 in a single cell.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Average of Results

    TRy

    =AVERAGE(C2:C200-A2:A200)

    and confirm it with CTRL+SHIFT+ENTER not just ENTER. You will see { } brackets appear around the formula.

  6. #6
    Registered User
    Join Date
    11-04-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Average of Results

    Thanks, that's exactly it. To add some more complexity to it...

    The values I'm subracting are times. HH:MM:SS. I need to somehow ignore rows when one or both of the enteries are missing.

    Right now any time that excel computes a negative time, the whole thing goes caput.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Average of Results

    I expect there's a simple way, but this works:

    =AVERAGE(IF( (A2:A20<>"")*(C2:C20<>""), C2:C20-A2:A20))

    ... confirmed with Ctrl+Shift+Enter.
    Entia non sunt multiplicanda sine necessitate

+ 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