How to removed #DIVIDE BY ZERO

Options

Hi

I have create a formula to calculate the % of margin but when i apply this to the column and there is current data, I get #DIVIDE BY ZERO.

my formula is =[Margin $]@row / [Forecast Amount $]@row


appreciate any help, thanks

Best Answer

  • Nick Korna
    Nick Korna ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @pmolloy,

    Add an IFERROR round your current formula.

    For example, if you want the cells that currently have the error to be blank instead:

    =IFERROR([Margin $]@row / [Forecast Amount $]@row, "")

    If you want another outcome, amend the final "" portion.

    Hope this helps, but if you've any problems/questions then just ask.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!