public static bool? ReadBoolCell(Row row, int index) { var val = row.GetCell(index); if (val != null) { return val.ToString() == "yes" ? true : false; } return null; }