Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to stack all non blank cells from a column?

$
0
0

Here is the same question and its answer for Excel. I want this method for Google Sheets.

https://superuser.com/questions/1623756/how-can-i-stack-all-non-blank-cells-from-a-column/1830491#1830491

I am looking for a formula that will take all non-blank values in one column and stack them in another column.

Please see example below. Essentially I am trying to go from column A to B using a formula:

AB
1AppleApple
2Orange
3OrangeLemon
4LemonPear
5Banana
6
7Pear
8
9Banana
I have tried the following formula, but it seems to only replicate column A.

=IFERROR(INDEX($A$1:$A$9,SMALL(IF($A$1:$A$9<>"",ROW($A$1:$A$9)-ROW($A$1)+1),ROWS($A$1:$A1))),"")

Any ideas on how to tackle this?

Thank you.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>