Question posted 2010 · +5 upvotes
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.
Is there an easy way to fill in the blanks for entire column?
Accepted answer +9 upvotes
- Select
A1:A8. - Press
F5to show the Goto dialog. - Click Special ….. Select Blanks and click OK.
That will select a noncontiguous range of blank cells.
- Then, without selecting anything else, type
=A3and press control+enter. - That will enter an array formula in all the blank cells referring to the cell above it.
- Reselect
A1:A8, and Edit – Copy. - Then Edit – Paste Special – Values. And you’re all set.
Note that the =A3 refers to the cell above the first blank cell.
Top excel Q&A (6)
- Shortcut to Apply a Formula to an Entire Column in Excel +335 (2011)
- How should I escape commas and speech marks in CSV files so they work in Excel? +136 (2012)
- Convert xlsx to csv in linux command line +96 (2012)
- How to create a link inside a cell using EPPlus +50 (2011)
- IF statement: how to leave cell blank if condition is false ("" does not work) +44 (2013)
- T-SQL: Export to new Excel file +44 (2012)
excel solutions on this site
.