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, "")
seb334
Feb 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!
- Riny_van_EekelenFeb 10, 2024Platinum Contributor
seb334 I believe your intention is to split total freight costs over the quantities per row. Enter the formula I have included below in F50 and copy it down.
=$H$17*(D50/$D$92)