SORT(UNIQUE issue

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. MacOS
Hi,

Re screenshot below:

Screenshot 2021-11-17 at 01.00.36.png


I have the below formula to give results in column B:

=IFERROR(SORT(UNIQUE(FILTER('All Completed VS'!C4:C2003,'All Completed VS'!E4:E2003<>"")),,-1),"")

In column C I then have:

=IF(B4="","",MAXIFS('All Completed VS'!$AZ$4:$AZ$2003,'All Completed VS'!$C$4:$C$2003,B4))

...which gives me the count for the values in column B.

Is there a way that I can change the sort so that the list shows in descending order of the values in column C? (i.e. Newport [10] at the top, then Riverfront [8], Penallta [4] and so on...) At the moment I can only get it to sort by column B. This just gives an alphabetical sort of column B.

Thanks in advance!
 
Cool, glad I could help and thanks for the mark.
For the figure in the large yeallow box, do you know how it would be possible to automate that, please? I am struggling to do that. Now that the data is there it should be possible
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
What's inside the yellow box? What are you counting and how? Maybe a COUNTIFS does the job?
 
Upvote 0
What's inside the yellow box? What are you counting and how? Maybe a COUNTIFS does the job?
The logic is in the second cell on the page (A2) and I have put a manual calculation in the yellow box and explained it in the text next to it. I just want to be able to do this in a formula. Thanks again.
 
Upvote 0
It's basically the first column C value that is smaller than the value in column A (where they cross-over). If that makes sense.
 
Upvote 0
Hi again. Did you have a chance to have a look at the yellow box figure? Thanks again
 
Upvote 0
Hi, sorry, no I'm without excel for the moment. I don't really get it from the picture dispite your effort to explain it.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,052
Latest member
Fuddy_Duddy

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