EPPlus - 操作Excel

本文介绍Excel编程技巧,强调了使用英文函数名如SUM、IF、VLOOKUP的重要性,避免半角逗号和等号滥用,以及正确使用Calculate()方法。还区分了Value与Text属性的应用,助你写出更标准、高效的公式。

look at me

Some common mistakes

  • Don't use localized function names. Only english names (such as SUM, IF, VLOOKUP, etc) are supported.

  • Don't use semicolon as a separator between function arguments. Only comma is supported.

  • Don't add the leading = sign in your formula. "=SUM(A1:A2)" is wrong, "SUM(A1:A2)" is correct.

  • The .Calculate() methods are available on Workbook, Worksheet and Range level only after a using OfficeOpenXml;. Alternatively, you might call method OfficeOpenXml.CalculationExtension.Calculate()

Value与Text

// 摘要:
        //     Set the range to a specific value
        public object Value { get; set; }
        //
        // 摘要:
        //     Returns the formatted value.
        public string Text { get; }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值