# Create a unique list of values that match a criteria, sorted in order of another criteria

##### New Member
Hi all,

I've been struggling with this question for a week.

In column E I have the following formula to create a distinct list of values in A for which the date in column B matches the date in E1. The formula is:

=INDEX(\$A\$2:\$A\$976,MATCH(0,IF(\$E\$1=\$B\$2:\$B\$976,COUNTIF(\$E\$1:\$E1, \$A\$2:\$A\$976),""),0))

This formula works.

What I want to do is sort the results of this formula based on the corresponding value in column C in ascending order.

In column G is the way it should look.

I also want to display those ascending column C values in column F. Column H is the way F should look.

Any ideas are greatly appreciated!

Moderator note:
Cross-posted here: http://www.msofficeforums.com/excel/33678-create-unique-list-values-match-criteria-sorted.html

Last edited by a moderator:

### Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Replies
4
Views
91
Replies
3
Views
93
Replies
0
Views
355
Replies
10
Views
482
Replies
0
Views
168

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,851
Messages
5,833,971
Members
430,249
Latest member
Muka

### 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.

### Which adblocker are you using?

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

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