Forum Discussion

sanggu_'s avatar
sanggu_
Copper Contributor
Oct 11, 2024

Need help with this error #DIV/0!

Hi, 

I am using AVERAGEIF to get a specific average in a particular group but I kept getting the error #DIV/0! using the excel application. But each time I use the excel browser, I get the outcome with no issue.  Can anyone help me with this?


This photo is from browser. 




This is from the excel application. 

 



 

  • sanggu_ 

    In column S you have texts like "$100", not numbers formatted as currency. Select column S, Ctrl+H and replace $ on nothing. It works. After that you may apply currency format to that column.

  • sanggu_ 

    The DIV/0# error is simply telling you that there are no matches to your criterion.  That may simply be a fact or there may be something wrong in your criterion range such as additional blanks or non-printing characters.

    • sanggu_'s avatar
      sanggu_
      Copper Contributor
      Appreciate your response Peter. Thank you!
  • chjenssxu's avatar
    chjenssxu
    Copper Contributor
    Change your formula into the following one:
    =AVERAGEIF(S2:S89,G2:G89,"Youth (<25)")

    Have a try.
    • sanggu_'s avatar
      sanggu_
      Copper Contributor
      Thank you! It didn't work for me but it's fine. I think the file it self has a problem. Since the same functions works using different data files except that one file.
  • sanggu_ 

    Quite strange. This formula shall work exactly the same way in Excel for Web and in Desktop, practically for any version of Excel Desktop. Why the latest doesn't recognize "Youth (<25)" in column G, assuming you did no changes in the file includes any copy/paste, is not clear.

     

    Perhaps you may share the file to check, removing from it all sensitive information, actually keeping only columns G and S plus cell with the formula.

    • sanggu_'s avatar
      sanggu_
      Copper Contributor

      SergeiBaklan That's what I thought too. I have a feeling that the problem is just within the file cos I just reinstalled my 365 and it's still the same. I tried using the same function with different data files, and it works fine. 

      I would appreciate it If you could look at it too to see the possible issue. Thank you!

      • sanggu_ 

        In column S you have texts like "$100", not numbers formatted as currency. Select column S, Ctrl+H and replace $ on nothing. It works. After that you may apply currency format to that column.

Resources