Home » excel » php – Reformat Excel layout to suit JSON

php – Reformat Excel layout to suit JSON

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have an Excel file containing 120,000 lines of employee data in the following format:

SO21169646 question first example

and for JSON input would like the results laid out so:

SO21169646 question second example

The language doesn’t matter (PHP, JavaScript, VBA, Python…) but how might I achieve such conversion?

How to&Answers:
=IF(NOT(ISBLANK(A5)),C6&", "&C7&", "&C8&", "&C9)  

in D4 copied down (120,000 rows), replaced with values and deletion of ColumnC and any row containing - (or blank) in Column A might do it.