A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The OR is forcing the comparison of A1 with 0, not just checking for the error. Try
=IF(ISERROR(A1),"",IF(A1=0,"",A1))
But you can do your Median, mode, etc on the column A range without column B by using array-enter (entered using Ctrl-Shift-Enter) formulas like
=MODE(IF(NOT(ISERROR(A1:A100)),IF(A1:A100<>0,A1:A100)))