excelaron,

That just means you entered the phone number as a number without formatting in the cell, and then formatted the cell to display the desired format. You'll have to do the same in the formula using the Text() function:
=A1&"= """&TEXT(B1,"(###) ###-###0")&""""