我有一个有几个字段的表单 . 我在表单上有一个字段,我希望进行计算 . 这需要 VLOOKUP
的辅助列函数 .
在常规单元格中,我可以输入以下内容:
=VLOOKUP(B3&C3&D3,Ins_Price_Tbl,5,0)
Ins_Price_Tbl是一个数据表 .
得到我正在寻找的答案 .
我的表单有文本框
txtAdjustmentCountYearA - An integer
txtInsurance - A String
txtAdjustmentYearA - A year like 2018
txtAdjustmentCostYearA - The result field
我需要 txtAdjustmentCostYearA
执行 VLOOKUP
,在这种情况下,C3将等于"Adjustment"或我键入的任何文本并将其乘以 txtAdjustmentCountYearA.Value
所以我可能有类似的东西:
txtAdjustmentCountYearA.Value
等于2
txtAdjustmentYearA.Value
等于2018年
txtAdjustmentCostYearA
等于:
=VLOOKUP(Me.txtInsurance.Value&"Whatever I type in here"&Me.txtAdjustmentYearA,Ins_Price_Tbl,5,0) * txtAdjustmentCountYearA.Value