In Google Sheets, I need to extract the unique values in column B, for every unique value in column A, such that I can construct the following table:
Possible?
In Google Sheets, I need to extract the unique values in column B, for every unique value in column A, such that I can construct the following table:
Possible?
=Unique(A:B)
should be enough to return non-duplicate rows
https://support.google.com/docs/answer/3093198?hl=en
You can also use Sortn:
=sortn(A:B,9E+99,2,1,true,2,true)
Unique(B:B)
. It didn't occur to me that I could expand the unique to the combination of both columns. Thank you!
– fdmsaraiva
Feb 21 at 22:53
=QUERY(QUERY(A1:B,
"select A, B, count(A)
group by A, B", 1),
"select Col1, Col2
where Col1 is not null", 1)
You can also install my add-on called Flookup and use the function below:
ULIST(colArray, [indexNum], [threshold])
So for your case you would simply type:
=ULIST(A1:B6, 2)
Find out more details at the official website.