Forum Discussion
gty1992
Nov 07, 2020Copper Contributor
How to autofill a column with multiple values
Hi, I have a spreadsheet with 5000 rows. Each group with a value and I need to fill down each cell with the name of the same family group. How can I do that? Thanks
Riny_van_Eekelen
Nov 07, 2020Platinum Contributor
gty1992 This could be done as follows:
1) Select the range B2:B5000 (or whatever your exact range may be)
2) Press F5 (Go to, Special, Blanks)
3) This should select all blank cells in the range with the active cell in B3
4) Now, in =B2 and press Ctrl-Enter
Edit: 4) Now, enter =B2 and press Ctrl-Enter
5) All blank cells will now contain a formula pointing to the cell directly above it.
6) Copy column B and paste as values on top of itself if you don't want to keep the formulae.
Alternatively, use "Get & Transform Data" (a.k.a. Power Query "PQ") if this is recurring process on a data set that might be a bit more complex than what you described above. PQ has a standard function for "Fill Down"
Marra93
Mar 10, 2021Copper Contributor
Riny_van_Eekelen Can you please clarify step 4?
"4) Now, in =B2 and press Ctrl-Enter"
My B2 is highlighted, but when I press Ctrl with the Enter, nothing happens?
Help! 🙂
- Riny_van_EekelenMar 10, 2021Platinum Contributor
Marra93 I think it contains a typo. It should have read:
"4) Now, enter =B2 and press Ctrl-Enter"
What I meant to write is that when you have selected all the blank cells (step 3) and the active cell is B3, enter the formula =B2 and then Ctrl-Enter.
Sorry about that.
- Marra93Mar 10, 2021Copper ContributorRiny_van_Eekelen You wonderful man...I could just kiss you right now! XOXOXO