+ Reply to Thread
Results 1 to 20 of 20

averageIF function not working, please help

  1. #1
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    averageIF function not working, please help

    please help with the following #DIV/0! error..thank you

    simple averageif function not working...what am i doing wrong?
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    error1.jpg


    here is error 1

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: averageIF function not working, please help

    On my PC and on my phone... I can't see your jpg. In any event it is easier with an Excel sheet. Can you attach a sheet (no confidential data) so that we can see what's going on?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    er1.jpger2.gif

    can you see this at all?

  5. #5
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    here is the other one:

    er1.jpg

  6. #6
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    error1.jpg

    can ya see this one?

  7. #7
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    can ya see this one?
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    well, im trying to get an average salary using all the names, assuming column D is equal to five

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: averageIF function not working, please help

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    ok, thanks for your help again...ill try this again..
    Attached Images Attached Images

  11. #11
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    still not working....
    Attached Images Attached Images

  12. #12
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    error1.jpg

    this is another attempt

  13. #13
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    error1.jpg

    again................

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: averageIF function not working, please help

    You have been asked a few times to upload a WORKBOOK, not a picture of it. Even IF the pics come through, pictures are pretty much impossible to edit, and no-one wants to re-type your data for you

  15. #15
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: averageIF function not working, please help

    Which formula are you using? I'm assuming something like

    =AVERAGEIF(D:D,5,F:F)

    If that gives #DIV/0! error that means there is nothing to average. As you clearly have 5s in column D that might mean your column F is formatted as text. You could test that by using this formula which counts numbers

    =COUNT(F:F)

    What result do you get with that?
    Audere est facere

  16. #16
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    Ok, here is a workbook...sorry for the confusion.

    on the HR tab or worksheet, how would i use the AVERAGEIF function to find the average salary (cell B21) of employees with a rating of 5? Right now, im using the AVERAGEIFS function to find the average.

    In addition, how would i use the SUMIF function to find the salaries of employees with a rating of 5 (cell B22)?
    Right now, im using the SUMIFS function to find the salaries.

    Remember for both function, the criteria is employees with a rating of 5...

    please let me know if u do not understand the question...thank you

    again thanks for your help
    Attached Files Attached Files

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: averageIF function not working, please help

    I dont see anything wrong with B21 or B22, what answer were you expecting?

    Edit:
    you could reference the "5" so you dont need to edit the forumla, and wrap it in IFERROR to error-trap...
    =IFERROR(AVERAGEIFS(F6:F14,D6:D14,B20),"")
    Last edited by FDibbins; 11-30-2014 at 05:12 PM.

  18. #18
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    heh....theres nothing wrong because im using the AVERAGEIS and SUMIFS functions.....my question...is how do i use the AVERAGEIF and SUMIF function to find the same answer to the questions .... are ya still confused ?? let me know

  19. #19
    Registered User
    Join Date
    11-29-2014
    Location
    united states
    MS-Off Ver
    2013
    Posts
    14

    Re: averageIF function not working, please help

    Averageis = averageifs

  20. #20
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: averageIF function not working, please help

    To use xxxIF() version, instead of xxxIFs(), remove the "s", put the range to be averaged/summed as the last argument, instead if the 1st, and make sure you only have 1 criteria range and 1 criteria.

    However, why would you want to change them? They are working fine, and there will be no difference to the calc or calc time, so I see np practical reason to change them

+ 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. [SOLVED] AverageIf function not working correctly
    By Spicey_888 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-12-2014, 02:08 AM
  2. [SOLVED] Averageif Function in VBA
    By benzacac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2013, 11:59 AM
  3. Need help with averageif Function
    By irfanparbatani in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2012, 09:52 PM
  4. AverageIF across sheet range not working
    By cmac7872 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-09-2012, 12:42 PM
  5. [SOLVED] Mock AVERAGEIF statement not working
    By SMac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2005, 08: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