How do I create the formula I need? Dummy version

Options

I used the formula =sum(qty1 * cost1) to get my total cost. I copied that formula down my total cost column and have a bunch of blank rows showing $0.00. How do I adjust my formula to leave empty rows blank?

Answers

  • John Jonassen
    John Jonassen ✭✭✭✭
    Options

    Try the following, which looks to see if Quantity is either blank or equal to 0, if so, then the result will be blank, otherwise it will multiple the valid quantity entry by it's unit cost.

    =IF(OR(ISBLANK(Qty1), (Qty1 = 0)), "", (Qty1 * Cost1))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!