Pleas have a go with this:

=IF(AND(A2="",B2=""),"",VALUE(CONCATENATE(A2,B2)))

SC