SUMIFS

I am using a SUMIFS (formula is posted below) formula to compile multiple billing amounts for one job into a single billing amount for the month. However, when I get to a blank line it gives me #INVALID DATA TYPE error. Please see attachments...

=SUMIFS({Billing Labor Billed}, {Billing Job #}, [Job #]@row, {Billing Date}, MONTH(@cell) = 1)

Best Answer

  • KT_H
    KT_H ✭✭✭
    Answer ✓

    Because your formula is referencing the Job # on each row, it will show an error when processing on a blank line (or any line where job # is blank). To remove the error use the following formula that is preceded with an IFERROR to clear the predicted issue.

    =IFERROR(SUMIFS({Billing Labor Billed}, {Billing Job #}, [Job #]@row, {Billing Date}, MONTH(@cell) = 1), "")

Answers

  • KT_H
    KT_H ✭✭✭
    Answer ✓

    Because your formula is referencing the Job # on each row, it will show an error when processing on a blank line (or any line where job # is blank). To remove the error use the following formula that is preceded with an IFERROR to clear the predicted issue.

    =IFERROR(SUMIFS({Billing Labor Billed}, {Billing Job #}, [Job #]@row, {Billing Date}, MONTH(@cell) = 1), "")

  • Micah Turner
    Micah Turner ✭✭✭✭

    That did it. Thank you so much! Sometimes that tunnel vision kills me.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!