Shawn Milochik 10 years ago
parent
commit
c097228520
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cell.go

+ 2 - 2
cell.go

@@ -194,8 +194,8 @@ func (c *Cell) formatToInt(format string) string {
 // Return the formatted version of the value.
 func (c *Cell) FormattedValue() string {
 	var numberFormat string = c.GetNumberFormat()
-	isText := numberFormat == "general" && numberFormat == "@"
-	if c.Type() == CellTypeString && isText {
+	isText := numberFormat == "general" || numberFormat == "@"
+	if (c.Type() == CellTypeString) && isText {
 		return c.Value
 	}
 	switch numberFormat {