Export custom fields

I have a datagrid with calculated values (using template tag).

how can I get those values into my excel export?

You can't export templates. Exporting is done in the ExportController which doesn't have access to templates.

so just have to code it from scratch?

Probably not from scratch - you can use the generated code as a start.