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
Best 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
-
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.
-
That worked. Thank you very much!
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!