Sku*_*uta 1 excel excel-formula
在Excel中,我一直看着hlookup,vlookup,match和index,但没有这些功能做到以下几点:
我需要找到一个文本值A1:Z1并获取它的列.例如,我找到了值F1,然后我想要一个结果F:F.
编辑:这是我希望它添加到的功能:
=COUNTIFS(Source!B:B;Result!C3;Source!AT:AT;Result!$D$2)
Run Code Online (Sandbox Code Playgroud)
我需要Source!B:B,或者Source!AT:AT是一个搜索函数,在我的表行和列中查找不同表单(源)中的特定值.
INDEX函数可以返回整列,例如假设您要在A1中搜索"x":Z1尝试
=INDEX(A:Z;0;MATCH("x";A1:Z1;0))
Note: this doesn't return a text string like F:F, it returns a reference to the column in question which you would normally use within a function that expects a whole column reference, e.g. SUM, SUMIF, LOOKUP etc.
Edited: You can use the above in COUNTIFS function like this:
=COUNTIFS(INDEX(Source!A:Z;0;MATCH("x";Source!A1:Z1;0));Result!C3;Source!AT:AT;Result!$D$2)
That makes the first range dynamic (between columns A and Z - extend as required) based on where "x" is first found in Source!A1:Z1, e.g. if "x" is first found in J1 then COUNTIFS uses Source!J:J for the first range - you can do that for any of the ranges in COUNTIFS
| 归档时间: |
|
| 查看次数: |
52642 次 |
| 最近记录: |