A formula I've found to work for this basic case is as follows, but must be entered as an array (ctrl+shift+enter):

=MEDIAN(IF(A:A=1, B:B))

Thanks All!