找到同一列/行中的第一个空单元格 [英] Find the first empty cell in the same column/row

查看:143
本文介绍了找到同一列/行中的第一个空单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个公式,将给出列中第一个空单元格的行号。目前我正在使用:

I am trying to work out a formula that will give me the row number of the first empty cell in a column. Currently I am using:

=MATCH(TRUE, INDEX(ISBLANK(A:A), 0, 0), 0)

这样做很好,除非公式放在与我正在搜索的列相同的列中,在这种情况下,它做某种循环引用或某事。有没有一个可以使用的公式,它可以在搜索时放在同一列中时起作用?

This works fine, unless the formula is put in the same column as the column I am searching in, in which case it does some sort of circular reference or something. Is there a formula I can use instead which will work when placed in the same column as it searches in?

推荐答案

另一种方法(如果(A2:A6 =,ROW(A2:A6)))


Another way to do it

=MIN(IF(A2:A6="",ROW(A2:A6)))

您必须按 CTRL + SHIFT + ENTER

区别在于这将给你第一个空单元格的行号
上一个答案将给出位置(起始行的行数)第一个空单元格...两种方式都有效,具体取决于您的需要

The difference is that this will give you the Row number of the first empty cell The previous answer will give the position (how many rows from the starting row) of the first empty cell... Both ways are valid depending on your needs

这篇关于找到同一列/行中的第一个空单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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