title: Python, search excel sheet for specific strings in a column and extract those rows to a text file
body: <p>Here's the code I've frankensteined together from other posts,</p>
  
  <pre><code>import xlrd
  import os.path
  wb = xlrd.open_workbook(os.path.join('D:\Data','SPS1 demo data.xlsx'))
  wb.sheet_names()
  sh = #?
  Strings=#variables
  i = 1
  file = open("Output.txt", "w")
  while sh.cell(i,3).value = (Strings):
     file.write(#row)
     i = i + 1
  file.close
  </code></pre>
  
  <p>It's not complete, but what I'm trying to accomplish is a search in column 3(or entire sheet, doesn't matter) for 5 specific strings and output those rows line by line to a text file, if possible csv formatted i.e. commas between each value.  </p>
  
  <p>How can I set a variable to 5 possible strings? Would this need to be an array?<br>
  I think the way that I have it written here will overwrite the text file each time rather than append it, is that correct? And if so what's the correct function, "file.append(#stuff)"?</p>