+ Reply to Thread
Results 1 to 4 of 4

Removing Div#/0 from with Function check

  1. #1
    Registered User
    Join Date
    09-28-2008
    Location
    Sydney
    Posts
    2

    Removing Div#/0 from with Function check

    Hello,

    I have a Spreadsheet that is doing daily treatment event calculations with each sheet being a separate month. However I have set it so that on weekends where there is no treatment there is no costing added but the calculation of number to treat is still present but end up with a Div#/0 error on a function [=AS29/AVERAGE(AS6:AS23)]. If there is no treatments then Average(AS6:AS23) = 0 and then there is a Div#/0 error.

    I have tried the IF function suggested by the error tracker:

    =IF(AVERAGE(AS6:A23)=0,"",AS29/AVERAGE(AS6:AS23))

    But this still gives a Div#/0 error. ANy ideas to get rid of the Div#/0 error as it subsequently buggers up a SUM formula for the month afterwards.

    Cheers Hawkeye

    Using Excel 2008 on a Mac (ie no VBA macros possible)

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day and welcome to the forum,

    Try this


    Please Login or Register  to view this content.


    HTH
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    =if(count(as6:as23),as29/average(as6:as23),"")

  4. #4
    Registered User
    Join Date
    09-28-2008
    Location
    Sydney
    Posts
    2
    Quote Originally Posted by ratcat View Post
    G'day and welcome to the forum,

    Try this


    Please Login or Register  to view this content.


    HTH
    Worked like a charm!

    Thanks RATCAT....going to look up "ISERR" function now.

    Cheers Hawkeye

+ 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. How to display help text in the Insert function wizard (Excel)
    By sudhakard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2009, 11:01 AM
  2. VBA; find string and copy
    By Bill Rudd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-06-2008, 10:41 PM
  3. What function do I use to check chars/numbers?
    By infinite_zero00 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-27-2007, 12:46 AM
  4. User Defined Function (UDF) in a shared workbook
    By arizenn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2007, 11:19 AM
  5. BRILLIANT EXCEL ADD-IN IDEA - Requires Calling a DLL Function Written In C
    By studaq in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2006, 05:29 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