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

New Post: Get Value from function error

$
0
0
e.g.
Worksheet:sheet1
Value:
ColumnA   ColumnB   ColumnC   ColumnD   ColumnE
  A   |   B     |   A    |  A  |   ( =COUNTIF(A1:D1,"A")  )
And I try get the count of the cell value is "A" by ColumnE forluma.

Then will thorw "System.InvalidCastException"

sourceWorkBook.Worksheet("Sheet1").Cell("E1").Value
But the valuecached is ok.
How can i get the value of columeE row 1? Thanks.

And I put the test file on this siete,
http://www.liuzhiyong2012.cn/dl/Z_Test_Microsoft Excel Worksheet.xlsx

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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