I get error message when using it. AttributeError: NoneType object has not attribute strip
– JohnseitoJul 14 '17 at 23:25
It gave me that error because the cell value was blank, no content to strip from, but strip() work. Thx
– JohnseitoJul 14 '17 at 23:35
Yes, just wrap the process up in a test - e.g. check the length of the contents of the cell - and run strip if length > 0. Then you won't get NoneType error.
– AlanJul 14 '17 at 23:47