Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from openpyxl import Workbook
  2. import openpyxl
  3.  
  4. file = "areas.xlsx"
  5. wb = openpyxl.load_workbook(file, read_only=True)
  6. ws = wb.active
  7.  
  8. for row in ws.iter_rows("A"):
  9. for cell in row:
  10. if cell.value == 0.345:
  11. print(ws.cell(row=cell.row, column=2).value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement