Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from openpyxl import Workbook
- import openpyxl
- file = "areas.xlsx"
- wb = openpyxl.load_workbook(file, read_only=True)
- ws = wb.active
- for row in ws.iter_rows("A"):
- for cell in row:
- if cell.value == 0.345:
- print(ws.cell(row=cell.row, column=2).value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement