[英]Excel VLookup - Text Key Exact Match Numerical Value Not Exact Match
Trying to solve a problem in Excel without programming in VBA to solve the following example: 尝试在不使用VBA进行编程的情况下解决Excel中的问题以解决以下示例:
I have 2 or 3 Text Values which I am concatenating to use for a multiple constraint Vlookup/Index Match. 我有2或3个文本值,可将其用于多重约束Vlookup /索引匹配。 The Vlookup then needs to reference a numerical field (Term) as a range match (Vlookup True) to return a single value.
然后,Vlookup需要引用一个数字字段(Term)作为范围匹配项(Vlookup True)以返回单个值。 The following matrix has a small sample of the Matrix and "Key" Column used.
下面的矩阵包含矩阵和“键”列的一小部分示例。
Given the following: Grid=201902_CH_C15 and AmortizationType=Fixed and Term=180 给出以下内容:Grid = 201902_CH_C15和AmortizationType = Fixed and Term = 180
I expect a value of 0 我期望值为0
Given the following: Grid=201902_CH_C15 and AmortizationType=Fixed and Term=120 给出以下内容:Grid = 201902_CH_C15和AmortizationType = Fixed and Term = 120
I expect a value of -28.5 我期望值为-28.5
Given the following: Grid=201902_CH_C30 and AmortizationType=Fixed and Term=300 给出以下内容:Grid = 201902_CH_C30和AmortizationType = Fixed and Term = 300
I expect a value of -5. 我期望值为-5。
Thanks to Mistrella - The following works using the Array Formula by doing Control+Shift+Enter at the End 多亏了Mistrella-以下操作通过在最后执行Control + Shift + Enter来使用数组公式
=INDEX(Value,MATCH(1,(Grid=GridArray) (AmortizationType=AmortizationArray) (Term<=TermArray),0),0) = INDEX(Value,MATCH(1,(Grid = GridArray) (AmortizationType = AmortizationArray) (Term <= TermArray),0),0)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.