Forum Discussion

seb334's avatar
seb334
Copper Contributor
Sep 01, 2023

#DIV/0! error

can some one advise how I can get this error corrected? Please see formula below

 

=(H13*D70/D78)/D70

13 Replies

  • seb334 

    Why do you multiply with D70 then divide by it? You can shorten the formula to

     

    =H13/D78

     

    This will return #DIV/0! if D78 = 0. So you could use

     

    =IF(D78=0, "", H13/D78)

     

    or

     

    =IFERROR(H13/D78, "")

    • seb334's avatar
      seb334
      Copper Contributor

      It is D70 that is causing the error as D70 is 0. I require the formula mentioned for cost calculating and it takes into account different data inputs. Can you advise? thanks for the assistance. 🙂

       

      Shall I attach a copy of the sheet for you to see?

       

    • seb334's avatar
      seb334
      Copper Contributor
      Hey this is how the formula is set up. i was doing some research and i found out below info but the thing is i do not know how to incorporate this into my formula. Can you assist?

      For example, if the formula that returns the error is =A2/A3, use =IF(A3,A2/A3,0) to return 0 or =IF(A3,A2/A3,””) to return an empty string.
    • seb334's avatar
      seb334
      Copper Contributor

      yes this is an obvious solution but some times the table is not completly full and we will have 0's there. So some times te table is full some times it is not

      Riny_van_Eekelen