+ Reply to Thread
Results 1 to 4 of 4

IF statement checking #DIV/0!

  1. #1
    Registered User
    Join Date
    06-27-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2008 MAC
    Posts
    27

    IF statement checking #DIV/0!

    Trying to do:

    IF(Cell=#DIV/0!, "Foo", "Bar")


    doesn't seem to work

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF statement checking #DIV/0!

    Possibly =if(iserror(cell)... which will exclude all errors. Better to search why you have a DIV/0 and correct it

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: IF statement checking #DIV/0!

    why just not to use
    =IF(ISERROR(A1),"Foo","Bar")
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Registered User
    Join Date
    04-03-2010
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF statement checking #DIV/0!

    I was trying to do the same thing as the original OP. I couldn't correct the #DIV/0! because I was working on a data download I could not control. The responses helped me fix it easily. Thanks! You'd think #DIV/0! would return some sort of referenceable value though. Just curious at this point. Thanks again! You guys rock!

+ 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