简体   繁体   English

(Excel-高级)如何使用条件范围(数组公式)从列表中提取唯一值

[英](Excel - advanced) How to pull unique values from list using range of criteria (array formula)

{=IFERROR(INDEX('Quarterly Changes Summary'!$F$3:$F$1428, MATCH(1, INDEX(('Quarterly Changes Summary'!$A$3:$A$1428=$B$5) * MATCH(0, COUNTIF($E$4:$E7, 'Quarterly Changes Summary'!$F$3:$F$1428), 0),), 0),), "")}

This formula is in cell E8 , with E4:E7 having the same formula. 该公式在单元格E8中 ,其中E4:E7具有相同的公式。 I'm trying to pull unique values from the Quarterly Changes Summary worksheet. 我正在尝试从“ Quarterly Changes Summary工作表中提取唯一值。 I need it to pull values with the criteria of B5 and if they are values distinct from E4:E7 . 我需要它使用B5的标准提取值,如果它们是不同于E4:E7的值。

However, ('Quarterly Changes Summary'!$A$3:$A$1428=$B$5) is giving me an array and MATCH(0,COUNTIF($E$4:$E7,'Quarterly Changes Summary'!$F$3:$F$1428),0) is giving me a value of 1 , and not an array. 但是, ('Quarterly Changes Summary'!$A$3:$A$1428=$B$5)给了我一个数组和MATCH(0,COUNTIF($E$4:$E7,'Quarterly Changes Summary'!$F$3:$F$1428),0)给我一个值1 ,而不是数组。

How do I reformat the match formula so that it gives me an array, and thus an array of what fits my criteria of B5 and values distinct from E4:E7 . 如何重新格式化匹配公式,以便为它提供一个数组,从而得到一个符合我的B5标准和不同于E4:E7的值的数组。

Let me know if further clarification is needed. 让我知道是否需要进一步澄清。

I found a solution through some revisions. 我通过一些修订找到了解决方案。 I took out the match(1) index reference and replaced it with MATCH(0,COUNTIF($E$4:$E5,'Quarterly Changes Summary'!$F$3:$F$1428)+('Quarterly Changes Summary'!$A$3:$A$1428<>$B$5),0). 我取出了match(1)索引引用并用MATCH(0,COUNTIF($ E $ 4:$ E5,'Quarterly Changes Summary'!$ F $ 3:$ F $ 1428)+('Quarterly Changes Summary'!$ A $ 3:$ A $ 1428 <> $ B $ 5),0)。 I was able to select my criteria and add the arrays by adding the ('Quarterly Changes Summary'!$A$3:$A$1428<>$B$5) within the countif. 我能够选择我的条件,并通过在countif中添加('Quarterly Changes Summary'!$ A $ 3:$ A $ 1428 <> $ B $ 5)来添加数组。

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

相关问题 使用Excel中的FREQUENCY公式索引数组中的唯一值 - Indexing unique values in array using the FREQUENCY formula in excel Excel,如何在单个单元格中显示来自一系列单元格的数组公式/值的结果 - Excel, How to display results of an array formula/values from a range of cells in a single cell 需要 excel 中的数组公式以获得唯一的序列值 - Need an array formula in excel for unique sequenced values SUMIFS数组公式中的条件范围 - Criteria range in SUMIFS array formula 如何从PHP的单个数组中提取3个唯一值? - How can I pull 3 unique values from a single array in PHP? 如何从php中的四维数组中提取一系列值? - How to pull a range of values from a four-dimensional array in php? 使用excel公式根据条件按顺序获取数组 - Get Array in order based on criteria using excel formula 我如何编写一个数组公式,仅当它们旁边的列中具有特定值时才从列表中提取唯一值? - How can I write an array formula that extracts unique values from a list only if they have a certain value in the column next to them? 加速Excel数组公式以查找唯一的不同值 - Speed up Excel array formula to find unique distinct values Excel百分比数组公式,用于日期范围内的值 - Excel Percentile Array Formula for Values within Date Range
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM