+ Reply to Thread
Results 1 to 9 of 9

AVERAGEIFS with array as result

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    AVERAGEIFS with array as result

    Hello all,

    I am trying to use the AVERAGEIFS formula, averaging figures in column D divided by those in column C when criteria are met, ie

    =AVERAGEIFS($D$8:$D$27/$C$8:$C$27,$A$8:$A$27,"Sub Total",$D$8:$D$27,">0")

    However, this is not working, does anyone know how I might be able to do this?

    I have attached the file. We do not have figures for a report in April or June, so I am trying to get an average for the year (and also trying to learn a bit on the side).

    Many thanks

    Rich
    Attached Files Attached Files
    There must be a quicker way...

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: AVERAGEIFS with array as result

    So do you want the Sum of Values with Figures in Column D to be divided by the number of months?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: AVERAGEIFS with array as result

    Hi,

    I would like each figure in D that meets the criteria to be divided by the corresponding figure in C, then the average of those figures.

    So - AVERAGE(16467/3, 21477/4, ... ..., 46,909/9)

    Hope that is clearer!

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: AVERAGEIFS with array as result

    But what is the Criteria?

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: AVERAGEIFS with array as result

    Criteria are column A being equal to "Sub Total", and column D being greater than zero (ie not blank)

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: AVERAGEIFS with array as result

    SO if both match, then the Average should be calculated?

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: AVERAGEIFS with array as result

    Try this.

    =SUM(IF($A$4:$A$21="Sub Total",$D$4:$D$21/$C$4:$C$21))

    Commit using Ctrl+Shift+Enter

    Deep

  8. #8
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: AVERAGEIFS with array as result

    Thanks Deep!

    I have amended to the below, and it works perfectly.

    =AVERAGE(IF($A$4:$A$21="Sub Total",$D$4:$D$21/$C$4:$C$21))

  9. #9
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: AVERAGEIFS with array as result

    Glad it helped!

    Cheers!


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-02-2011, 07:51 AM
  2. AVERAGEIFS with an array lookup
    By ehmartin in forum Excel General
    Replies: 0
    Last Post: 09-07-2011, 04:33 PM
  3. Replies: 3
    Last Post: 08-06-2009, 04:27 AM
  4. find each of the items in an array and save result in another array
    By lif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2006, 08:54 PM
  5. [SOLVED] Lookup Result in Array
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2005, 07:06 PM

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