-2

After running the code i'm only getting the formula and not the value

Vega
  • 27,856
  • 27
  • 95
  • 103

1 Answers1

0

When you load the workbook, set the flag data_only to True

wb = openpyxl.load_workbook(filename, data_only=True)
Joe Thor
  • 1,164
  • 1
  • 11
  • 19
  • I believe that is possible, but I would recommend researching it before opening a question. It also is beyond the scope of this specific question. Here is an article that goes into writing using openpyxl: https://www.tutorialspoint.com/read-and-write-to-an-excel-file-using-python-openpyxl-module – Joe Thor Jun 04 '21 at 10:56
  • thanks, You've made things easier for me – MOSES NOKNAN JOHN Jun 04 '21 at 11:04