SORT formula Alphabetically based on order of ARRAY?

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,015
Office Version
  1. 365
Platform
  1. Windows
Hello all. Here is my current formula:

=SORT(UNIQUE(VSTACK(Input!$R$4:$R$503,Input!$W$4:$W$503,Input!$Y$4:$Y$503,Input!$AA$4:$AA$503,Input!$AC$4:$AC$503,Input!$AE$4:$AE$503,Input!$AG$4:$AG$503,Input!$AI$4:$AI$503)))

I am hoping to find a way to populate the data, by order of the array in which they are being selected from. so in this case:

column R
column W
column Y
column AA
column AC
column AE
column AG
column AI
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Sounds like you just want to remove the sort function.
 
Upvote 0
You would need to sort each range individually inside the vstack.
 
Upvote 0
That's right. :)

I had to change the formula to this:

=LET(u,UNIQUE(VSTACK(Input!$R$4:$R$503,Input!$W$4:$W$503,Input!$Y$4:$Y$503,Input!$AA$4:$AA$503,Input!$AC$4:$AC$503,Input!$AE$4:$AE$503,Input!$AG$4:$AG$503,Input!$AI$4:$AI$503)),FILTER(u,u<>""))

can you show me how to include the SORT function?
 
Upvote 0
Like
Excel Formula:
=LET(u,UNIQUE(VSTACK(SORT(Input!$R$4:$R$503),SORT(Input!$W$4:$W$503),Input!$Y$4:$Y$503,Input!$AA$4:$AA$503,Input!$AC$4:$AC$503,Input!$AE$4:$AE$503,Input!$AG$4:$AG$503,Input!$AI$4:$AI$503)),FILTER(u,u<>""))
 
Upvote 0
Solution
Like
Excel Formula:
=LET(u,UNIQUE(VSTACK(SORT(Input!$R$4:$R$503),SORT(Input!$W$4:$W$503),Input!$Y$4:$Y$503,Input!$AA$4:$AA$503,Input!$AC$4:$AC$503,Input!$AE$4:$AE$503,Input!$AG$4:$AG$503,Input!$AI$4:$AI$503)),FILTER(u,u<>""))

THANK YOU!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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