简体   繁体   中英

How to format data which is in single cell of excel in to proper column and rows?

I am using an API to get data in excel in office.js by creating a function in Javascript. I am able to see all the data of the API but I want that to be in proper format of rows and columns like: Id, name, symbol so on.. 现在正在查看结果的屏幕截图

Have you considered exporting using a .csv file? You can use array evaluation to append each column item to each row, followed by a comma, and end each line with the newline character. Your very first row would be your headers. .csv files can be opened directly by Excel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM