To export the fields, just modify the template you're using for export and name those custom fields using the $ prefix.
To import the fields, they just need to be in the import spreadsheet with the column name corresponding to a custom field that's defined in the project you're importing into.
There's more info on importing available by choosing File / Import-Export / Import Excel and clicking the Help button on the import dialog box.