Forum Discussion
seb334
Sep 01, 2023Copper Contributor
#DIV/0! error
can some one advise how I can get this error corrected? Please see formula below =(H13*D70/D78)/D70
HansVogelaar
Sep 01, 2023MVP
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, "")
- seb334Feb 09, 2024Copper 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?
- HansVogelaarFeb 10, 2024MVP
- seb334Feb 10, 2024Copper Contributor
HansVogelaar Please see attached. Please note DIV/0 errors at bottom of page.
Thank you any advice would be greatly appreciated!
- seb334Sep 01, 2023Copper 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.- HansVogelaarSep 01, 2023MVP
I gave you two ways to avoid #DIV/0! in my previous reply.