refactoring + generalisation of Excel Export