Jan-31-2021, 07:57 PM
Hi guys,
from the documentation, I already know how to merge cells in Excel, but I need your help because I can't create a kind of table. below an example:
if I have to add four columns, the result has to be like shown in the image (the merge of the cells depends by the result of the 2**n).
I wrote only the body of the code, but the main part it's difficult to implement. can you help me to write it?
from the documentation, I already know how to merge cells in Excel, but I need your help because I can't create a kind of table. below an example:
![[Image: d1a04b1368591287.jpg]](https://thumbs2.imagebam.com/62/1b/a5/d1a04b1368591287.jpg)
if I have to add four columns, the result has to be like shown in the image (the merge of the cells depends by the result of the 2**n).
I wrote only the body of the code, but the main part it's difficult to implement. can you help me to write it?
import openpyxl wb=openpyxl.Workbook() ws=wb.active ws.title="TEST" .. .. wb.save(test.xlsx)