I want to make a filter or exception in my code for the excel file. I have this table in excel
But in my result I only want the Machine 'S9401-1', how can I Get this.
This is my code
import xlrd
#First open the workbook
wb = xlrd.open_workbook('Book1.xlsx')
#Then select the sheet. Replace the sheet1 with name of your sheet
sheet = wb.sheet_by_name('connx 94')
#Then get values of each column. Excuse first item which is header
machine = sheet.cell_value(1,0)
alid = sheet.cell_value(1,1)
descripcion = sheet.cell_value(1,3)
result=[machine,alid,descripcion]
print (result)

win32comwhich exposes the full Excel object model (or nearly so) to apply a filter, or you could return the full dataset to a list object in python and remove the elements that don't match your criteria.