Openpyxl setting number format
Could please someone show an example of applying the number format to the cell. For example, I need scientific format, form would be like '2.45E+05' but I couldn't figure a way how to do that in openpyxl. I tried in several ways but they are all reporting errors when saving the workbook. for example: import openpyxl as oxl wb = oxl.Workbook() ws = wb.create_sheet(title='testSheet') _cell = ws.cell('A1') _cell.style.number_format = '0.00E+00' or this (here I'm trying to use some of the predefined number formats, I have also seen there is engineering format in builtins but don't know how to