+ Reply to Thread
Results 1 to 2 of 2

Error in Formula

  1. #1
    Nigel
    Guest

    Error in Formula

    I am trying to add this formula in a cell to get rid of a div/0 error but it
    won't let me add it

    =IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

    it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
    easily get rid of div/0 error

    thanks

  2. #2
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    Try this

    =IF(L4=0,0,IF(L20=0,0,IF(AND(L4=0,L20=0),0,(L4-L20)/L4)))

    Paul

+ 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