+ Reply to Thread
Results 1 to 3 of 3

how can I get the average without #DIV/0

  1. #1
    Registered User
    Join Date
    03-21-2005
    Posts
    31

    how can I get the average without #DIV/0

    How do I get an average in I have #DIV/0!
    ex:

    A
    5
    #DIV/0!
    6
    4.5
    = Average, with out copunting that number....

    #DIV/0! is a result of a formula taht is =IF(WEEKDAYS(Calculation!$B10)=6;AVERAGE(Calculation!C4:C10);"")

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Here's one way:

    =SUMIF(A1:A4,"<>#DIV/0!",A1:A4)/COUNT(A1:A4)

    Regards,
    Ron

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Another way would be to avoid the error in the first place by replacing your formula with the following...

    =IF(WEEKDAYS(Calculation!$B10)=6;IF(COUNT(Calculation!C4:C10);AVERAGE(Calculation!C4:C10);"");"")

    Hope this helps!

+ 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