Hot’s formulas IF()
has always had this division by 0 problem. It always evaluates both possible results from the IF()
, which is crazy. I reported it several years ago, but cannot find my post. It seems no one addressed it.
The only workaround is that you must nest another “redundant” IF()
into the divisor of all formulas which use IF()
to divide. Something like:
=IF(D3 = 0, 0, C3 / IF(D3 = 0, 1, D3))
I leave you/@rishabhbhs to examine and see why this will actually always produce the correct answer even though it looks like it might not…