I wish to count the number of " #Div/0" occurrence in excel, where 1/0 results in "#Div/0" value in excel, may I know anyone has experience how to count the number of it?
Thanks.
I wish to count the number of " #Div/0" occurrence in excel, where 1/0 results in "#Div/0" value in excel, may I know anyone has experience how to count the number of it?
Thanks.
You can use the
ERROR.TYPE
function.For example, the following array-formula, will count the number of
#DIV/0!
errors in the rangeD1:D10
.An array formula must be entered by holding down ctrl + shift while hitting enter. If you do this correctly, Excel will place braces
{...}
around the formula seen in the formula bar.Here is an example showing that
#DIV/0
, when entered as text, is not counted. Note the two changes inD9:D10
. One was entered directly and became an error, the other was entered as a text string. Note also the formulas adjacent toD9:D10
indicatingtext
vserror
Use
COUNTIF
. For example, if you wanted a count of#DIV/0!
in the first 10 cells of column A you could use this: