Excel Excel Excel 大侠进:空白单元格的个数,如何计算

旭日阳刚

新手上路
VIP
注册
2011-02-15
消息
3,129
荣誉分数
129
声望点数
0
如下图所示,

1. Tom行上的“前置”空白单元格个数是2 (the number of blank cells until the first non-blank cell),尽管在F,G列上还有两个空白单元格。

2. John行上的前置空白单元格个数是3,经管在H列上有一个空白格。

我把这些结果列在了第 i 列上。

我的问题是:如何在 i 列上,用公式来计算前置空白单元格的个数?

感谢!
 

附件

  • xxxxx.jpg
    xxxxx.jpg
    16 KB · 查看: 215
Using macro to create your own function. In the fuction, yuo have to use a loop (i= 1 to 7) because you save the result in column I
 
if the values of cells are NOT text, the easy way would be (example):

Total numner of column - count(A2:G2)

Note counta works for text.
 
后退
顶部