Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sheets, Sort table based on unique values in a single column

I am currently trying to use google sheets to sort a table based on the unique values found in only two of the columns.

What I want to happen is that columns A (Brand) and B (Dimensions) are both checked for unique values, removing any duplicate data.

The problem is using these two columns to filter and show the rest of table. I can't managed to achieve it.

Original Data

enter image description here

What is should look like after being culled

enter image description here

.

like image 461
AnAccountName Avatar asked Apr 27 '26 18:04

AnAccountName


1 Answers

You can use Query function:

=query(A1:D8,"select A, B, min(C), min(D)  group by A, B",1)

Example Example spreadsheet

like image 135
pkowalczyk Avatar answered May 01 '26 08:05

pkowalczyk