Or, if your columns are contiguous, as your formula suggest...

=IF(COUNTIF(A:D,3),3,"")

Hope this helps!