Sorry I can not help, because I do not understand your issue.
Maybe you could use my very first version:
Maybe you could use my very first version:
#!/usr/bin/python3 import openpyxl as xls #todo: read file 12.txt tm = [0]*6 tm[0] = 0.99999982e-01 tm[1] = 9.84491405e-08 tm[2] = 2.08444947e-16 tm[3] = 6.91223128e-24 tm[4] = 8.09480403e-31 tm[5] = 0.00000000e+00 print(tm) #xls wb = xls.load_workbook(filename="sample.xlsx") ws = wb.active ws["G2"] = tm[0] ws["H2"] = tm[1] ws["I2"] = tm[2] wb.save("sample2.xlsx")