简体   繁体   English

excel 公式返回范围包含值

[英]excel formula returning range containing value

Is there an excel formula of chain of formulas that could return me either an array with values (or string with CSVs) or a range address of cells corresponding to a given type/category value?是否有一个公式链的 excel 公式可以返回一个带有值的数组(或带有 CSV 的字符串)或与给定类型/类别值对应的单元格范围地址?

Example例子

在此处输入图像描述

If you have office365 you can use =FILTER(A:A,B:B="cat2")如果你有 office365 你可以使用=FILTER(A:A,B:B="cat2")

Else you need to use =IFERROR(INDEX($A$5:$A$10,SMALL(IF($B$5:$B$10="cat2",ROW($B$5:$B$10)),ROWS($1:1))),"") enter with ctrl + shift + enter and copy down.否则,您需要使用=IFERROR(INDEX($A$5:$A$10,SMALL(IF($B$5:$B$10="cat2",ROW($B$5:$B$10)),ROWS($1:1))),"")使用ctrl + shift + enter并向下复制。

For the cell address, assuming you max have 2 times the same value:对于单元格地址,假设您最大具有相同值的 2 倍:

=CELL("address",INDEX(A:A,MATCH("cat2",B:B,0),1))& ":" & CELL("address",INDEX(A:A,MATCH("cat2",INDIRECT("B"&MATCH("cat2",B:B,0)+1 &":B100"),0),1))

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

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