c# - 使用 VLOOKUP 公式的 ClosedXML 读取行

标签 c# excel closedxml

我目前正在从事一个使用 closedXML 从 excel 读取数据的项目,但我的代码有错误,因为 excel 单元格中有 vlookup 公式。有没有办法让 closedxml 使用 vlookup 公式读取行值?谢谢!

这是我收到“语法错误”错误的地方:

if (rowValue.Cell(colnum).HasFormula)
{
    ((IDictionary<String, Object>)item)[field] = rowValue.Cell(colnum).Value.ToString();
}

最佳答案

http://github.com/ClosedXML/ClosedXMLdevelop 分支|现在支持 VLOOKUPHLOOKUP

关于c# - 使用 VLOOKUP 公式的 ClosedXML 读取行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31875448/

相关文章:

c# - 有没有办法区分 .NET 中的 SQL Money 和 Decimal 类型?

c# - 如何在 closedXml c# 中禁用自动过滤器?

c# - 我有哪种设计模式

c# - 在 Onion 架构中抛出异常 vs 返回操作结果对象

performance - 导入与链接到 Excel 电子表格

excel - MS Excel 在单元格中显示额外的连字符

vba - 在 UserForm 中声明变量并在类模块中使用它们

.net - DocumentFormat.OpenXml 中的程序集加载错误

c# - 如何将强名称公钥 (snk) 转换为 <RSAKeyValue>?

c# - .NET 中的 "US Eastern Standard Time"与 "Eastern Standard Time"