Macbook SSD Formatting Problem
You have to format the SSD without using it as your primary disk. 

If you're able to run Mac with the old disk, connect the SSD via external enclosure and format it (or make a clone of the running HDD). 
After this swap the disks, boot form installer and install OS on SSD.