Forum Discussion

UsefulDragon's avatar
UsefulDragon
Copper Contributor
Nov 26, 2021
Solved

Median and mode with criteria

Hi

 

Can anyone tell me how to find the median and the mode of values with criteria?

 

Here is an example of what I mean:

 

On the left is a list of products, their colors and prices. On the table on the right I want to get the median and mode of the price of the products that are a specific color (in this case blue). But the catch is that I want it to do it automatically, so every time I add a product I dont have to select it myself, but instead the function checks the list of colors and then looks up the prices next to the specific color and returns the media/mode of those prices.

 

 

I´ve attached a file if it helps.

 

Thank you very much!

3 Replies

Resources