+ Reply to Thread
Results 1 to 3 of 3

#DIV/0! display in spreadsheet

  1. #1
    Registered User
    Join Date
    11-05-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    27

    #DIV/0! display in spreadsheet

    #DIV/0! shows up in cells S2, S5 & S8 when calculating an average. The formula works correctly, but I would like these cells to be blank unless calculations are entered in their appropriate places. Please see attached example.
    Attached Files Attached Files
    Last edited by LAWitcher; 01-04-2022 at 11:47 PM. Reason: Typo

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: #DIV/0! display in spreadsheet

    Quote Originally Posted by LAWitcher View Post
    The formula works correctly
    I wouldnt know, there is no formula.

    However, you can probably use IFERROR for this...

    -IFERROR(your-formula,"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: #DIV/0! display in spreadsheet

    It is exactly the same principle as your previous thread - why are you effectively asking the same question again?

    I gave you this:

    =IF(OR(A2="",E2="",F2=""),"",E2/F2)

    Just adapt the bit in red for the new situation.

    Or you can trap the error like this:

    =IFERROR(your_formula,"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Display spreadsheet in the userform
    By jimpatel1993 in forum Excel General
    Replies: 4
    Last Post: 06-23-2021, 09:54 AM
  2. display spreadsheet
    By jpjs425 in forum Excel General
    Replies: 1
    Last Post: 08-21-2015, 10:02 AM
  3. Display a form but not the spreadsheet
    By ewan1979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2011, 10:03 AM
  4. Replies: 2
    Last Post: 05-19-2010, 09:25 AM
  5. cannot display colors in spreadsheet
    By bluegrass_dakine in forum Excel General
    Replies: 0
    Last Post: 02-17-2009, 06:35 AM
  6. Message display outside spreadsheet?
    By Les in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2008, 05:23 AM
  7. Display Program Then Spreadsheet
    By lvlister2005 in forum Excel General
    Replies: 1
    Last Post: 04-07-2007, 11:21 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