Excel #REF!将工作公式应用于外部文件时出错

时间:2018-07-10 08:22:21

标签: excel-formula

因此下面的公式正确应用于下面的图像:

=ABS(INDEX(B:B, AGGREGATE(15, 7, ROW(INDEX(A:A, MATCH("new york",A:A, 0)):INDEX(A:A, MATCH(1E+99,B:B )))/(LEFT(INDEX(A:A, MATCH("new york",A:A, 0)):INDEX(A:A, MATCH(1E+99,B:B )), LEN("laura"))="laura"), 1))-(RIGHT(INDEX(A:A, AGGREGATE(15, 7, ROW(INDEX(A:A, MATCH("new york",A:A, 0)):INDEX(A:A, MATCH(1E+99,B:B )))/(LEFT(INDEX(A:A, MATCH("new york",A:A, 0)):INDEX(A:A, MATCH(1E+99,B:B )), LEN("laura"))="laura"), 1)), LEN("(base)")) = "(base)")*100)

但是,当我尝试将其应用于外部文件时,会得到#REF!错误,尽管数据完全相同。

=ABS(INDEX(‘C:\Path\[File]Sheet1’!B:B, AGGREGATE(15, 7, ROW(INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH("new york",’C:\Path\[File]Sheet1’!A:A, 0)):INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH(1E+99,’C:\Path\[File]Sheet1’!B:B )))/(LEFT(INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH("new york",’C:\Path\[File]Sheet1’!A:A, 0)):INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH(1E+99,’C:\Path\[File]Sheet1’!B:B )), LEN("laura"))="laura"), 1))-(RIGHT(INDEX(‘C:\Path\[File]Sheet1’!A:A, AGGREGATE(15, 7, ROW(INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH("new york",’C:\Path\[File]Sheet1’!A:A, 0)):INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH(1E+99,’C:\Path\[File]Sheet1’!B:B )))/(LEFT(INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH("new york",’C:\Path\[File]Sheet1’!A:A, 0)):INDEX(‘C:\Path\[File]Sheet1’!A:A, MATCH(1E+99,’C:\Path\[File]Sheet1’!B:B )), LEN("laura"))="laura"), 1)), LEN("(base)")) = "(base)")*100)

有人知道导致该错误的原因以及如何解决该问题吗?

Simplified data

1 个答案:

答案 0 :(得分:1)

您将必须尝试以下操作,

使用‘C:\Path\[File]Sheet1’代替使用[Book1]Sheet2

例如:[您的文件名] _表的名称

=ABS(INDEX([Book1]Sheet2!B:B, AGGREGATE(15, 7, ROW(INDEX([Book1]Sheet2!A:A, MATCH("new york",[Book1]Sheet2!A:A, 0)):INDEX([Book1]Sheet2!A:A, MATCH(1E+99,[Book1]Sheet2!B:B )))/(LEFT(INDEX([Book1]Sheet2!A:A, MATCH("new york",[Book1]Sheet2!A:A, 0)):INDEX([Book1]Sheet2!A:A, MATCH(1E+99,[Book1]Sheet2!B:B )), LEN("laura"))="laura"), 1))-(RIGHT(INDEX([Book1]Sheet2!A:A, AGGREGATE(15, 7, ROW(INDEX([Book1]Sheet2!A:A, MATCH("new york",[Book1]Sheet2!A:A, 0)):INDEX([Book1]Sheet2!A:A, MATCH(1E+99, [Book1]Sheet2!B:B )))/(LEFT(INDEX([Book1]Sheet2!A:A, MATCH("new york",[Book1]Sheet2!A:A, 0)):INDEX([Book1]Sheet2!A:A, MATCH(1E+99, [Book1]Sheet2!B:B )), LEN("laura"))="laura"), 1)), LEN("(base)")) = "(base)")*100)