OK, sxorry, misunderstood. Try this...
=A1&IF(OR(B1="",A1=""),"",": ")&B1