Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Formula on date value not working [9479]

$
0
0
Hi,
I'm trying to import a file containig a formula on a date filed like this:
```
| A | B |
| 25/02/2016 | A1+1 |
```

However when I read the cell B1 the value type is double (I use this code)
```
item.Cell(y).Value.GetType().Name;
```

If I try reading the cell using this code
```
item.Cell(y).TryGetValue(out value)
```
I get this decimal number: 42426.0

Do you have any solution?
Thank you.


Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>