List unique values in alphabetical order

KBFrench

New Member
Joined
Jan 2, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I have a form that needs to pull a list of unique values from a specified row on a data sheet that gets updated daily, exclude some based on criteria from another row, and list it in alphabetical order. I found this formula that seems to do the trick:

Excel Formula:
=IFERROR(INDEX(HubSLAM!$D$2:$D$10000,MATCH(AGGREGATE(15,6,$U$3/(COUNTIF($L$2:L2,HubSLAM!$D$2:$D$10000)=0)/(HubSLAM!$D$2:$D$10000<>""),1),
$U$3/(COUNTIF($L$2:L2,HubSLAM!$D$2:$D$10000)=0)/(HubSLAM!$D$2:$D$10000<>"")/(HubSLAM!$C$2:$C$10000="OB Ground"),0)),"")



but it's insanely slow, and frankly I don't understand why it's dividing so many arrays by each other. Is there any way to do this that calculates faster? Are the divides an array function, or an actual calculation?

Would that I could use "unique"! But I can't. Our site is all on Excel 2019.

The data when I pull it usually has about 8-10k lines, but it varies, so my solution has to accommodate blanks
 

Attachments

  • Alphabetical list.png
    Alphabetical list.png
    50.2 KB · Views: 7

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Maybe this link using Power Query will help. Power Query is in Excel in the DATA ribbon and then Get and Transform.

This link has a different formula than what you are using, but not sure it would be faster. However COUNTIF function you are using can be slow
with large rows of data.

 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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