Forum Discussion
luna155
Aug 19, 2020Copper Contributor
Excel
Hi. I have two columns A and B. I would like to calculate the median of the data in A only if it in B says "Yes". Can anybody help my with the command for this? Thanks
SergeiBaklan
Aug 19, 2020Diamond Contributor
As variant
=MEDIAN(IF(B:B="Yes",A:A))
using as it is on Excel with dynamic arrays or entered as array formula by Ctrl+Shift+Enter in other case.
luna155
Aug 21, 2020Copper Contributor
Thank you very much - was a great help!
SergeiBaklan