Is there a function in openoffice-calc like AVERAGEIFS for the median?
If not, is there a function that gives the list of all the cells satisfaying a condition, so that I can apply the median to that list?
I need to convert this formula:
=AVERAGEIFS(J$22:J$720,D$22:D$720,">=0",D$22:D$720,"<2")
into something like:
=MEDIANIFS(J$22:J$720,D$22:D$720,">=0",D$22:D$720,"<2")
Enter the following as an array formula by pressing CtrlShiftEnter.
This will find the median for an odd number of values, or the mean if there is an even number.
Adapted from https://ask.libreoffice.org/t/median-with-condition-in-calc/38522.