Conditional median in MS Excel

前端 未结 4 656
深忆病人
深忆病人 2021-01-04 06:26

I\'m trying to calculate the conditional median of a chart that looks like this:

A  |  B
-------
x  |  1
x  |  1
x  |  3
x  |  
y  |  4
z  |  5
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 07:17

    Use the Googled formula, but instead of hitting Enter after you type it into the formula bar, hit Ctrl+Shift+Enter simultaneously (instead of Enter). This places brackets around the formula and will treat it as an array.

    Be warned, if you edit it, you cannot hit Enter again or the formula will not be valid. If editing, you must do the same thing when done (Ctrl+Shift+Enter).

提交回复
热议问题