+ Reply to Thread
Results 1 to 9 of 9

DIVERROR for averageifs on data from 2 sheets

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    12

    DIVERROR for averageifs on data from 2 sheets

    =AVERAGEIFS(Students!$N:$N, Students!$J:$J, 1, Students!$F:$F, A3)

    I get diverror. I have been reading to put code to prevent it but a1/a2 doesn't work. I am not that great at excel. The code is right but I get the error.



    Sincerely,

    Damon
    Attached Files Attached Files
    Last edited by damonjasso; 09-15-2015 at 02:49 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: DIVERROR for averageifs on data from 2 sheets

    the syntax of averageifs is:

    average area, criterium, average area, criterium

    you have to many arguments in your formula.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: DIVERROR for averageifs on data from 2 sheets

    Quote Originally Posted by oeldere View Post
    the syntax of averageifs is:

    average area, criterium, average area, criterium
    Not quite, it's more like
    AVERAGEIFS(NumbersToAverage, CriteriaRange, Criteria, CriteriaRange, Criteria)

    OP's syntax is correct.

    Div/0 errors in an average formula happen when there are no numbers to average.
    Could be caused by none of the rows meeting both criteria
    OR
    The numbers in column N are not really numbers.

    Can you post a sample book?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: DIVERROR for averageifs on data from 2 sheets

    Please Login or Register  to view this content.
    Glad you showed the correct syntax to the OP, (and to me) jonmo1
    Last edited by oeldere; 09-15-2015 at 02:31 PM. Reason: and to me (added)

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: DIVERROR for averageifs on data from 2 sheets

    Quote Originally Posted by damonjasso View Post
    =AVERAGEIFS(Students!$N:$N, Students!$J:$J, 1, Students!$F:$F, A3)
    Quote Originally Posted by oeldere View Post
    the syntax of averageifs is:

    average area, criterium, average area, criterium

    you have to many arguments in your formula.
    No, the formula is syntactically correct.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: DIVERROR for averageifs on data from 2 sheets

    Quote Originally Posted by oeldere View Post
    Glad you showed the correct syntax to the OP, jonmo1
    Actually, I was showing it to you.

    The example you posted is missing the first argument of the numberstoaverage.
    You only included criterias

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: DIVERROR for averageifs on data from 2 sheets

    Ok, I see the attatchment

    So the formula is working as intended, but you want to hide the Errors when the criteria are not met.
    You can use IFERROR for that

    =IFERROR(AVERAGEIFS(Students!$N:$N, Students!$J:$J, 1, Students!$F:$F, A3),"")

  8. #8
    Registered User
    Join Date
    09-26-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: DIVERROR for averageifs on data from 2 sheets

    You are my hero!

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: DIVERROR for averageifs on data from 2 sheets

    Glad to help.

+ 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. AVERAGEIFS array across multiple sheets - omit blank data
    By Webbdruid in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-05-2019, 06:04 AM
  2. [SOLVED] Averageifs and rolling data range
    By Wolfgang17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2014, 07:40 AM
  3. [SOLVED] Problem with AVERAGEIFS formula when data has missing criteria
    By mcfarcry in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-05-2013, 05:00 PM
  4. [SOLVED] AverageIFS (or even SUMIFS/COUNTIFS) on large data set
    By natetheblade in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2013, 01:37 AM
  5. [SOLVED] Modifying AVERAGEIFS function to include certain data
    By Ezomz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2013, 11:35 AM
  6. Replies: 9
    Last Post: 12-18-2012, 04:33 PM
  7. Using AVERAGEIFS function to average a smaller subset of criteria data
    By RJS5062 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-22-2012, 04:19 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