Before getting into the VBA perhaps best to elaborate regards the above ?
If you're looking to avoid #DIV/0! issues elsewhere (ie these are divisor precedents) then validate the value prior to conducting the division, eg:
=IF(SUM(A1),B1/A1,0)
where A1 is the entry cell and B1 stores some other numeric value ... if A1 is 0 the result will be 0 rather than #DIV/0!
(you can adjust the logic as desired)
Bookmarks