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

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

问题描述

我正在尝试计算一个公式,该公式将为我提供列中第一个空单元格的行号.目前我正在使用:

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?

推荐答案

另一种方法

=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天全站免登陆