Fill Empty Cells With The Same Value as Previous Cell in Google Sheet (Array Formula)

Viewed 152
2 Answers

use:

=INDEX({A:A, IF(A:A="",, VLOOKUP(ROW(B:B), 
 IF(B:B<>"", {ROW(B:B), B:B}), 2))})

enter image description here

For column B, put in C1

=ArrayFormula(lookup(row(B:B),row(B:B)/if(B:B<>"",1,0),B:B))

enter image description here

Related