+ Reply to Thread
Results 1 to 5 of 5

Calculating the average gain & loss for numbers in one column?

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    Sydney, Australia
    Posts
    7

    Calculating the average gain & loss for numbers in one column?

    Hi,

    I wanted to know how I can calculate the average gain and average loss for data that is inputted into one column? For example;


    Column A
    $12,000
    -$5,000
    $6,500
    -$1,000
    $8,000
    -$4,000

    Average Gain ??
    Average Loss ??

    Thanks and look forward to hearing from you.

    Regards,

    Vladmir
    Last edited by NBVC; 03-30-2009 at 08:50 AM.

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

    Re: Calculating the average gain & loss for numbers in one column?

    =Average(if(A1:A10>0,A1:A10))

    =Average(if(A1:A10<0,A1:A10))

    adjust ranges to suit.

    Both these formulas must be confirmed with CTRL+SHIFT+ENTER not just ENTER you will see { } brackets appear around the formula when done correctly.
    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.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculating the average gain & loss for numbers in one column?

    Non-Array

    Gain: =SUMIF(A:A,">0")/COUNTIF(A:A,">0")
    Loss: =SUMIF(A:A,"<0")/COUNTIF(A:A,"<0")

    If using XL2007 make use of non-array AVERAGEIF

    Gain: =AVERAGEIF(A:A,">0",A:A)
    Loss: =AVERAGEIF(A:A,"<0",A:A)

  4. #4
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Calculating the average gain & loss for numbers in one column?

    Hello There

    Try this;

    =AVERAGEIF(A2:A8,">0")
    =AVERAGEIF(A2:A8,"<0")

    Just change the range as you require.

    Hope this helps

    Jim

  5. #5
    Registered User
    Join Date
    11-20-2008
    Location
    Sydney, Australia
    Posts
    7

    Re: Calculating the average gain & loss for numbers in one column?

    DonkeyOte, JimmyA, NBVC

    Thank you for your input and swift response, it's even quicker than an amazon.com auto response thanking you for your order(s).

    Much appreciated, be well and take care.

    Regards,

    Vladmir

+ 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