How to return unique values from column, if source have duplicate values

Manojlo

New Member
Joined
Sep 4, 2020
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hello,
Can someone help me with formula.

I have first table with some values, in column B are unique values (example: cities), but in column C it is possible to have duplicate values.

In second table, I put LARGE formulas in column F to find me and put in descending order values from column C.

Now I need in column E formula to look for values in column F and match with values from column B (cities) but not to duplicate values (cities). Formula need to take account duplicate cities with same values and list them all
problem.jpg
.

Thank you in advance
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
ABCDEFG
1
2
3
4WardNoWardNo
5Corbar6Limestone Peak13
6Limestone Peak13Greater Exmoor13
7Queensbury2Ullswater13
8Cote Heath2Tideswell12
9Barms6St James'11
10Temple2Manifold10
11Manifold10Bingley Rural7
12Tideswell12Corbar6
13Sutton6Barms6
14Greetland and Stainland4Sutton6
15St James'11Greetland and Stainland4
16Ryburn2Cleobury Mortimer4
17Bingley Rural7Queensbury2
18Illingworth and Mixenden1Cote Heath2
19Churnet2Temple2
20Greater Exmoor13Ryburn2
21Ullswater13Churnet2
22Cleobury Mortimer4Illingworth and Mixenden1
23
Main
Cell Formulas
RangeFormula
E5:E22E5=INDEX($B$5:$B$22,AGGREGATE(15,6,(ROW($B$5:$B$22)-ROW($B$5)+1)/($C$5:$C$22=F5),COUNTIFS(F$5:F5,F5)))
F5:F22F5=LARGE($C$5:$C$22,ROWS(F$5:FF5))
 
Upvote 0
If the result you want is as shown in cols E & F, why not copy the first table to E4 then sort on col F descending?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,617
Members
449,039
Latest member
Mbone Mathonsi

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