By default, to use openpyxl, you can read the file, specify the sheet, and then read or specify the value in Sheet["A1"].
excel = openpyxl.Workbook()
sheet = excel['Sheet']
a = "hello"
sheet["A1"] = f"{a} world"
print(sheet["A1"].value)
If you find the coordinate value of the cell with the value of hello world, I am not sure how to find it as a double for statement.
excel = openpyxl.Workbook()
sheet = excel['Sheet']
a = "hello world"
for i in range(1, 100):
For j in range('A'-'ZZ'): # Col value is alphabets, so I think you need to implement this part.
if sheet[f'{i}{j}'].value == a:
return [i, j]
609 GDB gets version error when attempting to debug with the Presense SDK (IDE)
581 PHP ssh2_scp_send fails to send files as intended
578 Understanding How to Configure Google API Key
572 Who developed the "avformat-59.dll" that comes with FFmpeg?
571 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.