I am looking to find the values under a specific cell attached below. I have many excel files like this and find the filename_pattern cell value (in the FEED row). Here in this ex: its BBB_ALLOC.gz*
Can someone guide me on how to find it using python or any other libraries?
I have tried the following code using openpyxl, but I am unsure how to get the values once in iterate until FEED.
from openpyxl import load_workbook
file = "mysheet.xlsx"
wb_obj = load_workbook(filename=file)
wsheet = wb_obj['sheet1']
print('hello')
dataDict = {}
for key, *values in wsheet.iter_rows():
dataDict[key.value] = [v.value for v in values]
print(dataDict)
for k, v in dataDict.items():
if k == 'FEED':
print(v)
