Question

I am working on .xlsx using python & I am using openpyxl for the same.

I have the column name and row number. Can I find the value of that box from xlsx?

for example :

column - P   
row - 369

Can I find the value from Pth column & 369th row of xlsx ?

Was it helpful?

Solution

How about:

d = ws.cell(row = 4, column = 2)
print d.value

See the documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top