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

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

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!

Screen Shot 2016-12-25 at 8.25.50 pm.png

2. ## Re: Create a unique list of values that match a criteria, sorted in order of another crite

if i am understanding this correctly. try and click on the cell A1, the go to sort and filter, the click sort A-Z. excel should expand everything for you and it should be in numerical order.

3. ## Re: Create a unique list of values that match a criteria, sorted in order of another crite

Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

There are currently 1 users browsing this thread. (0 members and 1 guests)