There is an html file with data. It has both input inputs and tables, buttons. New rows and tables are generated using javascript. Those. their count is always different. All have a unique id , which is also generated by type: "a1", "a2", "a3", "b1", "b2" ...
It is also worth noting that there are several divs. In the first, the name is entered, in the second, the data, and in the third, these data are calculated by formulas and inserted into the tables. Accordingly, at each stage two other divs are hidden.
How can this data be exported to excel? For example using phpexcel.