How to filter submission data and export to excel?