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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!