简体   繁体   English

索引和匹配查找 - 查找范围中的公式

[英]Index and Match Lookup- Formulae in lookup range

I have two workbooks - Master work book as below 我有两本工作簿 - 主要工作簿如下

Code  Plan(KG)
2004  23
2009  67
3005  89
2003  36
4409  37
7809  25

The first column Code has formula(Ex: 2004 is extracted using formula from same sheet) 第一列代码有公式(Ex:2004使用同一张表中的公式提取)

I have another sheet as below where i have to enter the plan every month. 我有另一张表,如下所示我必须每月进入计划。 The code is fixed. 代码是固定的。 But to extract plan i use INDEX and Match combination. 但要提取计划我使用INDEX和Match组合。

Code  Plan(kG)
2004
2009
3005
2003
4409
7809

The problem here is that since the lookup range has formula the plan column is returned as #NA in second column. 这里的问题是,由于查找范围具有公式,因此计划列在第二列中作为#NA返回。 But when i convert the master range of code from formulae to values the plan is extracted. 但是当我将主代码范围从公式转换为值时,计划被提取出来。 Now i cannot change the data in master file every time. 现在我不能每次都更改主文件中的数据。

Is there anyway around this without converting range from formulae to values? 在没有将范围从公式转换为值的情况下,是否存在此问题?

=INDEX([Book5]Sheet1!$B:$B,MATCH(A2,[Book5]Sheet1!$A:$A,0))应该这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM