• Average of values that meet a condition

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Average of values that meet a condition

    Author
    Topic
    #356641

    I want to calculate the average values in a column that meet a certain condition (i.e. >1).

    What is the function or array that I should use to calculate the average (or any other statistical parameter)?

    Thank you

    Guillermo

    Viewing 1 reply thread
    Author
    Replies
    • #528189

      If the values are in A1:A100, then use:

      =SUMIF(A1:A100,">1",A1:A100)/COUNTIF(A1:A100,">1")
      
    • #528312

      Or, alternatively

      =AVERAGE(IF(A1:A10>1,A1:A10)) entered as an array formula

      + Shorter
      + Allows multiple/nested conditions
      – If used a lot, slows down recalculation
      – Array entry i.e. Ctrl+Shift+Enter needs get used to

      See also http://www.cpearson.com/excel/array.htm

      • #528315

        Excellent help!!!

        My question was more oriented towards the use of arrays.

        Thank you

        Guillermo

        cool

    Viewing 1 reply thread
    Reply To: Average of values that meet a condition

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: