+ Reply to Thread
Results 1 to 4 of 4

Hiding #DIV/0! when a formula does not have anything yet to calculate?

  1. #1
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    Hiding #DIV/0! when a formula does not have anything yet to calculate?

    I have the following formula in a worksheet that uses data entered into cells found in another worksheet within the same workbook:

    =SUM('1-1'!C4/'1-1'!B4)-1

    Since no one has entered data into the cells in the other worksheet, the formula is returning a result of #DIV/0! instead of remaining blank. How do I make it so these cells are blank until data is entered into the other worksheet calculating a real result?
    Last edited by jonvanwyk; 01-11-2011 at 11:41 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,856

    Re: Hiding #DIV/0! when a formula does not have anything yet to calculate?

    You don't need SUM function, try like this

    =IF(COUNT('1-1'!B4:C4)=2,'1-1'!C4/'1-1'!B4-1,"")
    Audere est facere

  3. #3
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Hiding #DIV/0! when a formula does not have anything yet to calculate?

    =IF(or('1-1'!C4="",1-1'!B4=""),"",SUM('1-1'!C4/'1-1'!B4)-1)

    think that should do it
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  4. #4
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Hiding #DIV/0! when a formula does not have anything yet to calculate?

    @SCOTTY: Your solution worked better. Thank you both.

+ 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