Forum Discussion
Chris2215
Jun 19, 2020Copper Contributor
UNIQUE function two columns
I have two columns, A on one sheet, B on another. I want to return a third column which is the unique values that appear in these columns. Something like =UNIQUE(A:A,B:B) doesn't quite work. W...
Shuriki
Dec 08, 2022Copper Contributor
use VSTACK(arr1,[arr2]...) to UNION two or more arrays.
then apply Unique to the result.
=UNIQUE(VSTACK(A1:A100,B1:B100))
then apply Unique to the result.
=UNIQUE(VSTACK(A1:A100,B1:B100))
- klivingoodwrightservicecorpcomDec 13, 2023Copper ContributorPerfect.. can you also show how to get it to skip blanks and Null values?
- David_pdxFeb 14, 2024Copper Contributor
klivingoodwrightservicecorpcom
To skip blanks and 0 values use filter().
- Patrick2788Dec 13, 2023Silver Contributor
- spreadsheet2025Jun 27, 2023Copper ContributorThanks - worked a treat!
Also, the columns don't need to be the same size. - ColinSheridanDec 09, 2022Copper ContributorGenius