I am having an issue finding the right formula to calculate the median/average correctly. I have a number of sales that I filter and need to calculate the median and average for each month, which also changes. As of now, I have tried numerous nested formulas and the Median IF Array formula is the closest one that works with the blank cells, the #NA cells, and/or the #VALUE cells in the filtered list, but it still is not correct.
Here is what I am trying to accomplish:
1. count the number of sales in month 0 (in this case, there is only 1, not 3 - see attached photo)
2. count the number of sales in months 1 thru 24 (aka months back)
3. count the rest of the sales in months 25+
4. get the median and averages for those sales (i.e. if 5 sales sold last month, what is the median of those 5 sales)
The green column in the photo is known to be correct, which is how I know my computations are not.
I have tried AGGREGATE, MEDIANIF, etc.
Any help is greatly appreciated!
Here is what I am trying to accomplish:
1. count the number of sales in month 0 (in this case, there is only 1, not 3 - see attached photo)
2. count the number of sales in months 1 thru 24 (aka months back)
3. count the rest of the sales in months 25+
4. get the median and averages for those sales (i.e. if 5 sales sold last month, what is the median of those 5 sales)
The green column in the photo is known to be correct, which is how I know my computations are not.
I have tried AGGREGATE, MEDIANIF, etc.
Any help is greatly appreciated!