Follow the steps in the link above. And then on the iPhone, setup iCloud and merge existing 300 contact on iPhone to iCloud. From there using a computer go to icloud.com and export them to a file. From there login to gmail and import file. After that, go back to iCloud.com and delete contacts. Then go back to iPhone and turn iCloud contacts off.