Hello
I think its the syntax of your IF statement that's wrong, try:

=MEDIAN(IF(B2:B16=C1,A2:A16))
or

=MEDIAN(IF(B2:B16="Single Family",A2:A16))
Entered as an Array - Ctrl+Shift+Enter.

Hope this helps.
DBY