I have a column like the following:
我有一个类似的专栏:
1 red
2 blue
3 red
4
5 blue
6
7
8 white
The blanks refer to the record above it. So #4 would be associated with red and 6 and 7 would be blue.
空格指的是上面的记录。4和红色有关,6和7是蓝色的。
Is there an easy way to fill in the blanks for entire column?
是否有一种简单的方法来填满整栏的空格?
1 个解决方案
#1
14
- Select
A1:A8
. - 选择A1:A8。
- Press
F5
to show the Goto dialog. - 按F5显示后端对话框。
- Click Special ..... Select Blanks and click OK.
- 点击特殊.....选择空格并单击OK。
That will select a noncontiguous range of blank cells.
这将选择一个非连续的空白单元格范围。
- Then, without selecting anything else, type
=A3
and press control+enter. - 然后,在不选择任何其他内容的情况下,键入=A3并按ctrl +enter。
- That will enter an array formula in all the blank cells referring to the cell above it.
- 这将在所有的空白单元格中输入一个数组公式,并引用上面的单元格。
- Reselect
A1:A8
, and Edit - Copy. - 重新选择A1:A8,然后编辑-复制。
- Then Edit - Paste Special - Values. And you're all set.
- 然后编辑-粘贴特殊值。你都准备好了。
Note that the =A3
refers to the cell above the first blank cell.
注意=A3表示第一个空单元格上面的单元格。
#1
14
- Select
A1:A8
. - 选择A1:A8。
- Press
F5
to show the Goto dialog. - 按F5显示后端对话框。
- Click Special ..... Select Blanks and click OK.
- 点击特殊.....选择空格并单击OK。
That will select a noncontiguous range of blank cells.
这将选择一个非连续的空白单元格范围。
- Then, without selecting anything else, type
=A3
and press control+enter. - 然后,在不选择任何其他内容的情况下,键入=A3并按ctrl +enter。
- That will enter an array formula in all the blank cells referring to the cell above it.
- 这将在所有的空白单元格中输入一个数组公式,并引用上面的单元格。
- Reselect
A1:A8
, and Edit - Copy. - 重新选择A1:A8,然后编辑-复制。
- Then Edit - Paste Special - Values. And you're all set.
- 然后编辑-粘贴特殊值。你都准备好了。
Note that the =A3
refers to the cell above the first blank cell.
注意=A3表示第一个空单元格上面的单元格。