Forum Discussion

Michael Barry's avatar
Michael Barry
Copper Contributor
Nov 24, 2017

Formula Cell Formating

I have a spread sheet cell with the following example formula, [=sum(X4/X15]. Since there is no data entered in either X4 or X15, the cell looks like this "####". How can I change the cell appearance to at least have it have a Zero in the cell, Thanks,

4 Replies

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        Hi Michael,

         

        If you increase your columns width you'll see what cells with #### actually contains division on zero errors (#DIV/0!). To avoid instead of your formula

        =SUM(O4/P4)

        you may check first if you divide on zero or not like

        =IF(P4,O4/P4,0)

        or, as Willy suggested, if any error appears to return zero instead

        =IFERROR(O4/P4,0)