+ Reply to Thread
Results 1 to 9 of 9

Average using results of Sumproduct

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Average using results of Sumproduct

    I have this Formula:
    =SUMPRODUCT(--(OUTBOUND!$A$8:$A$99>=SUMMARY!$C$3),--(OUTBOUND!$A$8:$A$99<=SUMMARY!$D$3),--(OUTBOUND!$B$8:$B$99))
    I need the result to be an average
    Where would I be able to insert AVERAGE?
    Last edited by norm01; 02-08-2011 at 05:39 PM.

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

    Re: Average in a VLOOKUP range

    Try:

    Please Login or Register  to view this content.
    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 Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Average using results of Sumproduct

    You can use AVERAGE function like this

    =AVERAGE(IF(OUTBOUND!$A$8:$A$99>=SUMMARY!$C$3,IF(OUTBOUND!$A$8:$A$99<=SUMMARY!$D$3,OUTBOUND!$B$8:$B$99)))

    That's an "array formula" which needs to be confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  4. #4
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Average using results of Sumproduct

    Thanks for the Formula but it returns a DIV/0!
    Cheers!!!

  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 using results of Sumproduct

    Did your original SUMPRODUCT return a value other than 0?

    if it did, then the formula should not give you that error.

    Also if you already have that result for your original, and assuming it is in, say X1, then you can shorten it with:

    =X1/SUMPRODUCT(--(OUTBOUND!$A$8:$A$99>=SUMMARY!$C$3),--(OUTBOUND!$A$8:$A$99<=SUMMARY!$D$3))

  6. #6
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Average using results of Sumproduct

    Yes, it is pulling up data from OUTBOUND B8:B99 there are also some blanks

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

    Re: Average using results of Sumproduct

    So, you are saying you do get 0 with your original, because the all the values in column B that would match are blank?...

    If you want 0 result... even if all values sum to 0, then...

    Please Login or Register  to view this content.
    If you still have issues, post the workbook if it is not confidential.

  8. #8
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Average using results of Sumproduct

    Here is the workbook
    Attached Files Attached Files

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

    Re: Average using results of Sumproduct

    See attached.

    The formula I gave did work. It may have given wrong results, not errors, due to the fact that you have blanks in column B.. so I added an ISNUMBER() check.

    The formula in C8 is:

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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