{"text_format":"1","workbook":"xlsx","n_sheets":2,"sheets":["Лист3","Sales"],"not_rendered":{"charts":0,"images":0,"macros":1,"external_links":0,"defined_names":1,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Лист3","index":0,"n_rows":21,"n_cols":5,"rows_kept":21,"cut":false,"hidden":false,"merged":[]}
[null,null,null,null,"Значения"]
["Товар1",null,null,"Всего:",15]
["Товар2",null,null,"Всего:",20]
["Товар3",null,null,"Всего:",30]
["Товар4",null,null,"Всего:",20]
["Товар1"]
["Товар2"]
["Товар3"]
["Товар4"]
["Товар1","Отдел2","Склад1",0.291275281970449,5]
["Товар2","Отдел2","Склад1",0.291275281970449,5]
["Товар3","Отдел2","Склад1",0.291275281970449,5]
["Товар4","Отдел2","Склад1",0.291275281970449,10]
["Товар1","Отдел3","Склад1","3,74095132662876E-02",5]
["Товар2","Отдел3","Склад1","3,74095132662876E-02",10]
["Товар3","Отдел3","Склад1","3,74095132662876E-02",5]
["Товар4","Отдел3","Склад1","3,74095132662876E-02",5]
["Товар1","Отдел1","Склад2","3,68723133629836E-02",5]
["Товар2","Отдел1","Склад2","3,68723133629836E-02",5]
["Товар3","Отдел1","Склад2","3,68723133629836E-02",20]
["Товар4","Отдел1","Склад2","3,68723133629836E-02",5]

{"sheet":"Sales","index":1,"n_rows":14,"n_cols":7,"rows_kept":14,"cut":false,"hidden":false,"merged":[[7,2,8,6]]}
[null,null,null,"Товар1","Товар2","Товар3","Товар4"]
[null,null,"Всего:",15,20,30,20]
[]
["Отдел2","Склад1",0.29127528197044933,5,5,5,10]
["Отдел3","Склад1",3.7409513266287622E-2,5,10,5,5]
["Отдел1","Склад2",3.6872313362983605E-2,5,5,20,5]
[]
[null,null,"Добрый день! Помогите пожалуйста прописать макрос переворота данных. Например как выглядела бы первая строчка при перевороте, траспортировать строчку с товаром и кол-во и для них оттобразить какой это отдел и склад (повторение) и все перенести на лист перемещение. При этом кол-во столбцов с товаром нужно определить, также как и кол-во строк с отделами."]
[]
[]
["Отдел2","Склад1","Товар1",5]
["Отдел2","Склад1","Товар2",5]
["Отдел2","Склад1","Товар3",5]
["Отдел2","Склад1","Товар4",10]