How do I do fill down with formula in reverse order in Google Sheet

Viewed 624

When I fill down with formula starting with, say, =A9, it will auto fill with =A10, =A11, A=12, in incrementing order. But I want it to fill down in reverse order as =A8, =A7, =A6, how do I do that? In Excel, I can select 2 cells, =A10 and =A9, Excel will know to fill in reverse order.

2 Answers

try like this:

=SORT(ROW(A:A), 1, 0)

enter image description here


or if you want from 10 to 5

=SORT(ROW(A5:A10), 1, 0)

or to flip the column values:

=SORT(A9:A15, ROW(A9:A15)*N(A9:A15<>""), 0)

You could use the SEQUENCE function within the formula

=SEQUENCE(7,1,11,-1)

or even as

=SEQUENCE(7,1,11,-1) 

enter image description here


EDIT

If you need to reverse the order of already existing values in cells you can use:

=SORT(A1:A9,ROW(A1:A9),0)

or even the following to exclude empty rows

=SORT(A1:A9,ROW(A1:A9)*N(A1:A9<>""),0)

enter image description here

Related