+ Reply to Thread
Results 1 to 6 of 6

Return a blank instead of #DIV/0

  1. #1
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Return a blank instead of #DIV/0

    =IF(COUNTIF(H45:H46,FALSE)>=1,"",E46/E45*24)
    I have a formula that is giving me a #DIV/0!. Which I know is because column E is 0. But, I need this formula return blank instead of #DIV/0. How can I rewrite this formula to return a blank if it is 0?

    A B C D E F G H
    R45 mb76A_FIMS-12 01-Jan-14 00:00:00 mb76A_FI4500-2/A-PV Sanned 0 NA NA True

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Return a blank instead of #DIV/0

    Try
    =IF(COUNTIF(H45:H46,FALSE)>=1,"",IFERROR(E46/E45*24,""))

    Assuming you are using Excel >03
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Return a blank instead of #DIV/0

    Which version of Excel are you using?

    XL2007+ you can use IFERROR
    =IFERROR(IF(COUNTIF(H45:H46,FALSE)>=1,"",E46/E45*24),"")


    XL2003-, try
    =IF(COUNTIF(H45:H46,FALSE)>=1,"",IF(E45=0,"",E46/E45*24))

  4. #4
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Re: Return a blank instead of #DIV/0

    Work beutifully. Thank you so much.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Return a blank instead of #DIV/0

    You're welcome.

  6. #6
    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: Return a blank instead of #DIV/0

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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

+ 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. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  2. [SOLVED] Adjust this formula to return blank when a cell is blank?
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2013, 10:26 PM
  3. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  4. Replies: 4
    Last Post: 07-23-2012, 04:54 PM
  5. Replies: 3
    Last Post: 11-22-2007, 07:53 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