简体   繁体   中英

Count rows in a dynamic range

Consider a very simple example of a dynamic range: 在此处输入图像描述

Cell C10 (arbitrary cell):

=FILTER(Table1[List1],NOT(ISNUMBER(XMATCH(Table1[List1],Table1[List2]))))

I would like to now know how many rows are in the dynamic range starting at C10. I tried simply:

=ROWS(C10)

but it returns '1' even when there are more than one rows returned. Is this possible?

Use COUNTA and the spilled range operator # :

In C10 :

=FILTER(Table1[List1],NOT(ISNUMBER(XMATCH(Table1[List1],Table1[List2]))))

In D10 :

=COUNTA(C10#)

在此处输入图像描述

Or like your original approach, you can use ROWS with the spilled range operator:

=ROWS(C10#)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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