I have an Excel sheet like this
Listener_name Listener IP Listener Service
server1 12.xx.xx.xx java
server2 12.xx.xx.xx java
server3 127.0.0.1 oracle
and I want to print all values for Listener IP
column.
My current Python code looks like this:
book = openpyxl.load_workbook('report-201808March0709AM522986.xlsx')
sheet = book.active
a1 = sheet['J1']
a2 = sheet['J2']
a3 = sheet['J3']
print(a1.value)
print(a2.value)
print(a3.value)
but it's only 3 columns of values and I have more than 200 values. Is there any way we can print all values using a loop?