+ Reply to Thread
Results 1 to 12 of 12

Getting Error #DIV/0 for empty cells

  1. #1
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Getting Error #DIV/0 for empty cells

    Hello all,

    Getting #DIV/0 error for empty cells and each cell has the below formula:

    Please Login or Register  to view this content.
    Any thoughts?

    Regards,

    John
    Last edited by JJFletcher; 04-30-2020 at 07:37 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Getting Error #DIV/0 for empty cells

    Without seeing data, try the AVERAGEIF function to exclude 0 values

  3. #3
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Getting Error #DIV/0 for empty cells

    Hi Pepe,

    When using AVERAGEIF funtion I get an error that says to many arguments...

    Regards,

    John

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Getting Error #DIV/0 for empty cells

    Have you tried AVERAGEIFS ?

  5. #5
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Getting Error #DIV/0 for empty cells

    Hi Pepe

    Thanks for your reply...

    I will give it a try

    Regards,

    John

  6. #6
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Getting Error #DIV/0 for empty cells

    Hi aLL,

    I tried the AVERAGEIFS and still have the #DIV/0 errors in the cells

    Regards,

    John

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

    Re: Getting Error #DIV/0 for empty cells

    then show the formula you have used, or even better post the excel file, without confidentional information.
    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.

  8. #8
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Getting Error #DIV/0 for empty cells

    Hello Oeldere,

    Here is the formula used:
    Please Login or Register  to view this content.

    I have used the IFERROR and still get an error: "You've entered to many arguments for this function"
    Please Login or Register  to view this content.

    I have used the AVERAGEIF and still get an error - "You've entered to many arguments for this function"
    Please Login or Register  to view this content.

    I have used the AVERAGEIFS and still get an error - "You've entered to few arguments for this function"
    Please Login or Register  to view this content.

    Regards,


    John
    Last edited by JJFletcher; 04-29-2020 at 10:55 PM.

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

    Re: Getting Error #DIV/0 for empty cells

    then show the formula you have used, or even better post the excel file, without confidentional information.


    With average you can use "Maximal 255 extra value", so that won't be the problem


    The syntax of the averageif should be

    "Syntaxis

    GEMIDDELDE.ALS(bereik, criteria, [gemiddelde_bereik])"


    edit

    averageif(range, criteria, [average_range])"
    Last edited by oeldere; 04-30-2020 at 05:17 AM.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Getting Error #DIV/0 for empty cells

    Hi John, try this.

    Please Login or Register  to view this content.
    @ oeldere

    Since this is an English forum i strongly believe that only a few people here will understand "GEMIDDELDE.ALS(bereik, criteria, [gemiddelde_bereik])" .
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  11. #11
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Getting Error #DIV/0 for empty cells

    Hi Bakerman2,

    Outstanding performance as usual.... The code works perfect.



    Regards,

    John
    Last edited by JJFletcher; 04-30-2020 at 07:37 AM.

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Getting Error #DIV/0 for empty cells

    You're welcome and thanks for rep+.

+ 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. Runtime error when autofill of empty cells
    By jkirkham in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-16-2014, 09:57 AM
  2. [SOLVED] Error when averaging empty & non empty cells
    By simonlblea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2013, 09:04 AM
  3. remove error value when formula exists for empty cells
    By Cyrus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2012, 02:49 AM
  4. checking cells are empty and giving error message
    By Nick_in_Dubai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2009, 05:17 AM
  5. #DIV/0! Error when Averaging empty cells
    By Lungfish in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2008, 08:00 AM
  6. #DIV/0! Error when Averaging empty cells
    By Lungfish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2008, 07:43 AM
  7. Error when trying to delete row based on empty cells
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2007, 04:44 PM
  8. [SOLVED] [SOLVED] Drag and Drop Cells (Cannot empty the clipboard error)
    By Neillsm in forum Excel General
    Replies: 0
    Last Post: 02-09-2005, 07:06 AM

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