+ Reply to Thread
Results 1 to 5 of 5

Stopping return #DIV/0!

  1. #1
    Registered User
    Join Date
    02-19-2011
    Location
    Hong Kong
    MS-Off Ver
    Microsoft 365 subscription
    Posts
    17

    Stopping return #DIV/0!

    I have the following formula in BB20 =IF(BB19=0,"0",BB19/BB14)
    I have dragged this formula along row 20 but where the data is yet to be filled in along row 14, BB14 I get the return of #DIV/0!
    There is a formula in BB19 so when BB14 is blank there is a 0 in BB19

    I dont want the message #DIV/0! until information is entered in row 14. Please advise

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Stopping return #DIV/0!

    =iferror(YourFormulaHere,0)

  3. #3
    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,917

    Re: Stopping return #DIV/0!

    1st, remove the "" around the zero - that makes it text instead of a value

    Then try this...
    =IF(OR(BB19=0,BB14=""),0,BB19/BB14)
    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

  4. #4
    Registered User
    Join Date
    02-19-2011
    Location
    Hong Kong
    MS-Off Ver
    Microsoft 365 subscription
    Posts
    17

    Re: Stopping return #DIV/0!

    Badlyspelled and FDibbins - both have done it. Really appreciate the help, have a great day.

  5. #5
    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,917

    Re: Stopping return #DIV/0!

    Happy to help

+ 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. SUM row starting at marker, stopping at threshold, return corresponding date
    By dukeofperl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-19-2012, 02:07 PM
  2. code not stopping when it should
    By Zygoid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2007, 04:44 PM
  3. Stopping After 1st If
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2007, 02:28 PM
  4. [SOLVED] Stopping a Macro
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2005, 10:15 AM
  5. Macro Stopping Before End :mad:
    By Nigel_hough in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2005, 08:13 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