By performing this action, will my phone contacts be replaced with my google contacts?
No, it will sync them.
How can I take all the contacts I have from both, sort them into an excel sheet, and then upload them back to my phone and google both?
You don't need to. Edit them in Google. The changes will be sync'd.