Search
 
SCRIPT & CODE EXAMPLE
 

EXCEL

google sheets concatenate non blank cells from two columns

# Basic syntax:
=FILTER({A3:A12; B5:B7}, LEN({A3:A12; B5:B7}))
# Where:
#	- this stacks the non-empty cells from the ranges defined in columns
#		A and B
#	- {range_A; range_B} stacks the defined ranges
#	- FILTER with LEN is used to exclude any empty cells. This works
#		because LEN returns a number other than 0 for each cell that
#		contains content. This non-zero number is then treated as "True"
#		by FILTER, causing only those cells to be kept
# Note:
#	- if you don't mind including blank cells (or you don't have any),
#		you can just use {} without FILTER to stack columns
Comment

PREVIOUS NEXT
Code Example
Excel :: excel use offset in conditional formatting 
Excel :: google sheets select item from split 
Excel :: google sheets sort column by element frequency 
Excel :: google sheets if 
Excel :: how to reference data from another sheet in excel 
Excel :: excel and formula 
Perl :: perl foreach loop 
Perl :: perl print array 
Perl :: mean data frame columns by group R 
Perl :: perl download images files 
Pascal :: pascal error handling 
Pascal :: case of pascal 
Powershell :: start-process pwsh 
Gdscript :: godot ignore function 
Clojure :: how to make a directory in clojure 
Cobol :: python pygments install 
Assembly :: havong space between lines of richtext in flutter 
Assembly :: Z language latex 
Assembly :: discord.py change status to invisible 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: vue current year 
Javascript :: shopify comment code 
Javascript :: Basic JavaScript: Use Recursion to Create a Countdown 
Javascript :: jquery get screen height 
Javascript :: colors in node js console 
Javascript :: change src of iframe jquery 
Javascript :: remove spaces in a string js 
Javascript :: jquery datepicker no weekends 
Javascript :: jQuery and changing the input field type 
Javascript :: add site url validation regex 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =