MEDIAN formula picking up an extra row?

I have a sheet with a MEDIAN formula pointed to a column with a column formula to calculate the difference between two dates. Today the sheet happens to have only one row, but the result of the MEDIAN formula is that single value / 2.

It looks like the median is picking up an extra, blank row. Any thoughts on how to prevent or get around this? I don't believe there is a MEDIANIF function.

Thank you,

Dave

Tags:

Best Answer

  • Carson Penticuff
    Carson Penticuff ✭✭✭✭✭✭
    Answer ✓

    You can try throwing in a COLLECT function to only include cells that are evaluated as numbers:

    =MEDIAN(COLLECT([Column1]:[Column1], [Column1]:[Column1], ISNUMBER(@cell)))

    You will have to update the column name.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!