使用公式从列生成一个连续的列(没有VBA) [英] Generate a continous column from column with blanks using formulas only (no VBA)

查看:102
本文介绍了使用公式从列生成一个连续的列(没有VBA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一列A:

1Q14
2Q14
3Q14
4Q14
''
''
''
''
h4
j4
k4
m4

我想在列B中有这个:

1Q14
2Q14
3Q14
4Q14
h4
j4
k4
m4

我应该在列B中填写什么?

What am I supposed to put into column B to get it?

推荐答案

在这些情况下,使用 SMALL 通常比 MATCH 更好。例如,尝试这样:

Using SMALL is usually better than MATCH in those situations. For instance, try this:

=IFERROR(INDEX($A$15:$A$150,SMALL(IF($A$15:$A$150<>"",ROW($A$15:$A$150)-ROW($A$15)+1),ROWS($A$15:A15))),"")

在列B的第15行输入数组公式(即按 Ctrl + Shift + 输入

In row 15 of column B. Enter it as an array formula (i.e. Press Ctrl+Shift+Enter)

相应更改范围。

这篇关于使用公式从列生成一个连续的列(没有VBA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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