Set Openpyxl Cell Format to Currency
I'm Creating an Excel Sheet Using Openpyxl. Some Cells Represent Monetary Values. How Can I Change the Format of a Cell to Be of Type "Currency", I. E. I Want...
I'm creating an excel sheet using openpyxl. Some cells represent monetary values. How can I change the format of a cell to be of type "currency", i.e. I want a "€" symbol to be displayed after the number.
1 Answer
Try setting the format code with your desired format code
_cell.number_format = '#,##0.00€'