+ Reply to Thread
Results 1 to 4 of 4

IF cell value >0, enter that value, if cell value is #DIV/0!????

  1. #1
    Registered User
    Join Date
    06-18-2008
    Posts
    9

    Question IF cell value >0, enter that value, if cell value is #DIV/0!????

    Hello. I want to use IF forumla to say: IF D16>0, then enter the value in D16. If there is no value in D16, I want to enter the value from another cell, D20.

    But my problem is that when there is no value in D16, it reads #DIV/0!, because D16 itself is the result of another calculation (D3/D14). Is there any way that I can tell Excel not to worry if it finds #DIV/0!, just go ahead and enter the value from D20 instead?

    Thanks!
    Last edited by Sorcha; 12-10-2008 at 11:07 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =If(ISERR(D16),D20,if(D16>0,D16,D20))

    You can also try getting rid of the #DIV/0 error by revising formula in D16 to : =IF(D14=0,0,D3/D14) then you can use formula; =If(D16>0,D16,D20) for your original question here and have a tidier looking sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-18-2008
    Posts
    9
    Thanks! That worked a treat!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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