A resource for users and developers of Microsoft Excel |
|||||||||
| Email us your FAQ suggestion. |
|||||||||
Visit often ! Pages are updated daily. |
|||||||||
This is the Excel "How to" Frequently Asked Questions page |
|||||||||
Answers to Frequently Asked Questions about how to do common tasks in Microsoft Excel. |
|||||||||
Excel "How to" FAQs |
| How to fill empty cells in a column with the value from the above cell? |
| Example |
|
| Manual |
After you press Ctrl+Enter in Step 3, the blank cells in Column A will be filled with the value from the cell immediately above it, as shown in the second photograph in the Example section above. At this point, it would be advisable to copy clumn A, and paste special for values, to make the values static instead of as the resuly of formulas.
|
| VBA |
A macro can do this quickly, assuming the same example of the blank cells being in column A as shown above. Sub FillCellsFromAbove() Note, the reference to Columns(1) refers to column A. If it were column H we were dealing with, we would have written "With Columns(8)".
|