Formula with LET/UNIQUE/SORTBY/FILTER

UT_Princess

New Member
Joined
Nov 6, 2019
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have a formula where I am trying to pull unique data from columns r/s where s does not equal exclude. I then want to sort it by column r then column s. This formula is the closest I have come and it does everything except apply the filter. Any thoughts?


LET(u,SORTBY('Sheet2'!R:S,'Sheet2'!R:R,,'Sheet2'!S:S,1),UNIQUE((FILTER(u,'Sheet2'S:S<>"EXCLUDE"))))


Here's sample data:


Babc
Cdef
Adef
Bghi
Aabc
BEXCLUDE
Cghi
AEXCLUDE
Cabc




Result Expected:


Aabc
Adef
Babc
Bghi
Cabc
Cdef
Cghi
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try:
Book1
RSTUV
1BabcAabc
2CdefAdef
3AdefBabc
4BghiBghi
5AabcCabc
6BEXCLUDECdef
7CghiCghi
8AEXCLUDE
9Cabc
Sheet5
Cell Formulas
RangeFormula
U1:V7U1=SORT(UNIQUE(FILTER(R1:S9,S1:S9<>"EXCLUDE")),{1,2})
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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