That depends upon how you identify the required columns. Excel spreadsheet doesn't have concept of dataIndx of fields.
You can persist the spreadsheet data by either exporting it to js workbook or exporting it to Excel xlsx file.
It has the benefit of preserving the formulas, merge cells which are lost if converted into another format like json, csv.