1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

What is the most elegant way of returning 0 when Div/0 without masking all other errors too?

I have a sheet which has some data from the future already prefilled, but not everything, so some inputs are 0 for now. This leads to div0 on a bunch of fields calculations further down.

Ordinarily IFERROR would be fine, but I want to be able to see #N/A, #REF and so on still. Unfortunately there's no IFDIV0 like there is for IFNA.

Is there an elegant way to do this?

submitted by /u/I_P_L
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article