SORT function with exclusions?

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,014
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Is it possible to use the following formula:

=LET(u,UNIQUE(VSTACK(SORT(Input!$Q$4:$Q$503),SORT(Input!$V$4:$V$503),SORT(Input!$X$4:$X$503),SORT(Input!$Z$4:$Z$503),SORT(Input!$AB$4:$AB$503),SORT(Input!$AD$4:$AD$503),SORT(Input!$AF$4:$AF$503),SORT(Input!$AH$4:$AH$503),SORT(Input!$AK$4:$AK$503),SORT('Recycle (BOM)'!B43:B46))),FILTER(u,u<>""))

and exclude the following criteria:

where Input!Q:Q="EMA Remove", "EMA Locked", EMA No Measure"

Many thanks in advance!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Don't know if this is what you need:

Excel Formula:
=LET(
input_d, HSTACK(Input!$Q$4:$Q$503,Input!$V$4:$V$503,Input!$X$4:$X$503,Input!$Z$4:$Z$503,Input!$AB$4:$AB$503,Input!$AD$4:$AD$503,Input!$AF$4:$AF$503,Input!$AH$4:$AH$503,Input!$AK$4:$AK$503),
recycle_d,'Recycle (BOM)'!B43:B46,
i_res, TOCOL(FILTER(input_d, ISNUMBER(MATCH(Input!$Q$4:$Q$503, {"EMA Remove";"EMA Locked";"EMA No Measure"},0)))),
r_res, FILTER(recycle_d, recycle_d<>""),
VSTACK(i_res, r_res)
)
 
Upvote 0
Or maybe
Excel Formula:
=LET(u,UNIQUE(VSTACK(SORT(FILTER(Input!$Q$4:$Q$503,ISNA(XMATCH(Input!$Q$4:$Q$503,{"EMA Remove","EMA Locked","EMA No Measure"})))),SORT(Input!$V$4:$V$503),SORT(Input!$X$4:$X$503),SORT(Input!$Z$4:$Z$503),SORT(Input!$AB$4:$AB$503),SORT(Input!$AD$4:$AD$503),SORT(Input!$AF$4:$AF$503),SORT(Input!$AH$4:$AH$503),SORT(Input!$AK$4:$AK$503),SORT('Recycle (BOM)'!B43:B46))),FILTER(u,u<>""))
 
Upvote 0
That would surprise me as they basically do the opposite of each other.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,326
Members
451,637
Latest member
hvp2262

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