Forum Discussion
#DIV/0! error
can some one advise how I can get this error corrected? Please see formula below
=(H13*D70/D78)/D70
13 Replies
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, "")
- seb334Copper 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?
- seb334Copper ContributorHey 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.I gave you two ways to avoid #DIV/0! in my previous reply.
- Riny_van_EekelenPlatinum Contributor
seb334 Make sure that both D70 and D78 are not zero!
- seb334Copper 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