如何通过从数据验证下拉列表中选择不同的值来创建动态数据范围?

时间:2017-01-17 06:45:55

标签: excel

我有一张如下表:

Col A | Col B | Col C | Metric 1 | Metric 2 | Metric 3 P A X 145 234 324 P A Y 453 324 898 P A Z 329 684 325 P B X 563 349 438 P B Y 237 398 679 P B Z 314 722 227 P C X 636 828 889 P C Y 181 818 338 P C Z 145 234 324 Q A X 145 234 324 Q A Y 123 456 789 Q A Z 329 684 325 Q B X 563 349 438 Q B Y 237 398 679 Q B Z 314 722 227 Q C X 636 828 889 Q C Y 181 818 338 Q C Z 145 234 324 指标下的值是虚拟的。这张表被称为" Raw"。

我正在打电话给另一张表"查看#34;我使用Col B和Col C的数据验证创建了两个下拉选项。

我需要帮助的是根据下拉列表中的选定值获取具有数据范围的输出。在下面的示例中:

Col B A Col C Y

如果Col B中的选定值是' A'对于Col C是' Y',我们需要输出范围如下所示:

Col A | Col B | Col C | Metric 1 | Metric 2 | Metric 3 P A Y 453 324 898 Q A Y 123 456 789

如果更改下拉列表中的值,我希望能够更改此输出范围。

我希望这个要求是可以理解的。如果您需要更多详细信息,请与我们联系。 一种方法是使用查找,但这需要花费大量时间,因为我有15列指标和数千行。我特别需要帮助找到更快的解决方案。

1 个答案:

答案 0 :(得分:1)

在结果表格中,在指标1下,使用此公式

A:A

此处colAB:BcolBC:CMetric1为colC,D:D为H2的数据。

colAI2的验证单元格,colBJ2的验证单元格,colCTungs-MacBook-Pro:~ tungvu$ npm install -g --no-optional path_cli_file npm ERR! Darwin 15.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--no-optional" "path_cli_file" npm ERR! node v7.2.0 npm ERR! npm v3.10.9 npm ERR! code E404 npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/path_cli_file npm ERR! 404 npm ERR! 404 'path_cli_file' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! Please include the following file with any support request: npm ERR! /Users/tungvu/npm-debug.log 的验证单元格}

将其拖到所有指标中。

Screenshot