[英]How do I keep a running count in Google Sheets with skipped lines?
I have a Google Sheet that looks like this:我有一个看起来像这样的谷歌表:
A |
Group 1 |
Lorem |
Ipsum |
Dolor |
null |
Group 2 |
Sit |
Amet |
Consectetur |
I would like to create a new column (preferably in column A) that keeps a running count of entries, skipping the blank rows ("null"), and skipping the Group headers.我想创建一个新列(最好在 A 列中),以保持条目的运行计数,跳过空白行(“null”)并跳过组标题。
A | B
null | Group 1
1 | Lorem
2 | Ipsum
3 | Dolor
null | null
null | Group 2
4 | Sit
5 | Amet
6 | Consectetur
If an entry is added or deleted, then the desired output would automatically update the numbering.如果添加或删除条目,则所需的输出将自动更新编号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.