Excel匹配如果大于零 [英] Excel Match If Greater than Zero

查看:209
本文介绍了Excel匹配如果大于零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在excel工作,我想使用公式MATCH来检索列中每个数字大于零的行。例如,下一列

 号码
0
0
6
1
0
8
0
0
0
0
10
pre>

我想在其他列中获取以下内容:

 
3
4
6
11

¿使用MATCH公式可以做到这一点吗?
如果没有,那么¿怎么可以实现呢?

解决方案

假设您的数据在A2:A12范围内,请尝试使用数组公式确认使用 Ctrl + Shift + Enter 而不是单独输入。



在B2

  = IFERROR(SMALL(IF($ A $ 2:$ A $ 12所取代; 0,ROW($ A $ 2:$ A $ 12)-ROW($ A $ 2)+1),ROWS (B $ 2:B2)),)

使用 Ctrl + Shift + Enter确认,然后将其复制,直到获得空白单元格。



根据需求调整范围,但不要引用整个列参考,如A:A在公式中。


I'm working in excel and i want to use the formula MATCH to retrieve the row of each number greater than zero in a column. For example, having the next column

Number 
  0
  0
  6
  1
  0
  8
  0 
  0
  0
  0
  10

I want to obtain in other column the following:

Rows
  3
  4
  6
 11

¿Is it posible to do this with the MATCH formula? If not, then ¿How can achieve this?

解决方案

Assuming your data is in the range A2:A12, then try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.

In B2

=IFERROR(SMALL(IF($A$2:$A$12>0,ROW($A$2:$A$12)-ROW($A$2)+1),ROWS(B$2:B2)),"")

Confirm with Ctrl+Shift+Enter and then copy it down until you get blank cells.

Adjust the ranges as per requirement, but don't refer the whole column reference like A:A in the formula.

这篇关于Excel匹配如果大于零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆