How to filter for a unique value.

helpneeded2

Board Regular
Joined
Jun 25, 2021
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I have Excel 365 and I just can't figure out how to use the UNIQUE / FILTER / SORT functions to get my desired result.

I have a table with 8 columns of data (A - H). the same value in Column B will appear multiple times. The reason Column B appears multiple times, is because data in Column C may contain different spellings of the same name.

I want a function that will allow me to sort the table so that all the columns of the table will appear, however it will be sorted on Column B, and will only show the values in Column B once, and it doesn't matter which value is matched in Column C.

Could someone please help me with this.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi,

sorry, my suggestion didn't work on more testing.. so I deleted it.

cheers
Rob
 
Upvote 0
How about
Excel Formula:
=LET(d,B2:B55,r,ROWS(d),SORT(FILTER(A2:H55,MMULT((SEQUENCE(r)>=SEQUENCE(,r))*(d=TOROW(d)),SEQUENCE(r,,,0))=1),2))
 
Upvote 0
my test data is in (a2:H11) - and the rows you pull look good - however, for me its not sorting them for some reason on Col B ?

Rob
every_hour.xlsm
ABCDEFGHI
1
2abcdefgh
3eb
4dqa
5caq
6fb
7gw
8hsw
9jsw
10kx
11ly
12
13caq000000
14abcdefgh
15dqa000000
16hsw000000
17gw000000
18kx000000
19ly000000
Sheet2
Cell Formulas
RangeFormula
A13:H19A13=LET(d,B2:B11,r,ROWS(d),SORT(FILTER(A2:H11,MMULT((SEQUENCE(r)>=SEQUENCE(,r))*(d=TOROW(d)),SEQUENCE(r,,,0))=1),2))
Dynamic array formulas.
 
Upvote 0
That looks sorted to me.
 
Upvote 0
haha,,,. sorry.. my eyes not working today .. apologies.

Rob
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top