Question: I am trying to make python find a specific word in an excel sheet. Nonetheless, despite searching literally everywhere how to do this, I can't find an answer. 

```
import re

with open('ptry.xlsx') as aa:
    for line in aa:
        match = re.search(r'abc', line)
        if match:
            print("yes")
        else:
            print ("no")

```

This code gives me the following result:

```
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no

```

***Repl Closed***

Nonetheless, I am expecting a simple "yes" as the word "abc" is on my excel sheet.

Answer: 
If you are using Excel, can I suggest using Openpyxl?

```
import os
#Change to the dir of your spreadsheet

from openpyxl import load_workbook

wb = load_workbook(filename='Insert your file here', data_only=True)
#data_only=False by default
#If you want to see data instead of formulas, set data_only=True

ws = wb['Sheet1'] #Or whatever your sheet name is

for num_row in range (1, ws.max_row):
    if ws['A{}'.format(num_row)].value=='abc':
        print ('yes')
    else:
        print ('no')
#You can also use ws.max_column

```

This should give you a general idea of using openpyxl. Let me know if you have any other questions.
```
import openpyxl

excel_var = openpyxl.load_workbook('excelname.xlsx')

sheet = excel_name.get_sheet_by_name('sheetname')

for row in sheet.iter_rows(min_row=minr, min_col=5, max_col=11, max_row=maxr):
    match = re.search(r'abc', line)
    if match:
        print("yes")
    else:
        print("no")

```

Take a note you should limit the rows and cols in the for loop there is a vars minr and maxr