openpyxl read cell value 1

openpyxl read cell value

from openpyxl import load_workbook

wb = load_workbook("file.xlsx", data_only=True)
sh = wb["Sheet_name"]
print(sh["x10"].value)

Here is what the above code is Doing:
1. Load the workbook
2. Load the sheet
3. Print the value of the cell

Similar Posts