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
 10.7K Get Help
 63 Global Discussions
 69 Industry Talk
 385 Announcements
 3.5K Ideas & Feature Requests
 55 Brandfolder
 125 Just for fun
 50 Community Job Board
 464 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!