+ Reply to Thread
Results 1 to 4 of 4

#DIV/0! Sign

  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Toulouse
    MS-Off Ver
    Excel 2010
    Posts
    141

    #DIV/0! Sign

    Hi guys please ,


    I would like some help
    if cell A1 = 0 and A2= 0 and I want to divide A1/A2 it gives me #DIV/0!
    I fact what I want is say , if either A1 or A2= 0 then show me nothing otherwise do the division A1/A2

    THANKS

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: #DIV/0! Sign

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,789

    Re: #DIV/0! Sign

    try
    IF(OR(A1=0,A2=0),"",A1/A2)

    OR

    IFERROR(A1/A2,"")
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    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,946

    Re: #DIV/0! Sign

    IFERROR is the option I would use, as suggested by Wayne
    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. Excel Help - Sign In & Sign Out Form
    By xBadBoi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2016, 03:42 PM
  2. Trying to create Sign in Sign out sheet with time stamp
    By InNeedOfHelp88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2015, 07:11 PM
  3. [SOLVED] Employee sign-in userform - Multiple sign ins?
    By Battletoads in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2014, 10:57 AM
  4. Replies: 7
    Last Post: 06-17-2014, 02:15 PM
  5. Replies: 3
    Last Post: 03-13-2013, 01:20 AM
  6. Decimal Sign Replaced with ; Sign
    By lopiner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2009, 08:47 AM
  7. [SOLVED] XL invoice replace the dollar sign with euro sign
    By Pamela casares in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-16-2005, 04:25 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