Retrieve Data From List With Duplicate Information

bjrich9

New Member
Joined
Sep 19, 2014
Messages
3
Hello everyone!

So heres my question...i have not been able to figure it out!

I have a list of data, one column has service offerings, the others has customers served. I need to pull the top jobs and the bottom jobs. For the bottom, i sorted the list by customers served and used an HLOOKUP to retrieve the bottom three. The top three jobs are at the bottom and im currently using Large to find top three Customers Served fields, then a Match and finally an Index to pull the Service name.

My problem is this. If there are multiple jobs, at the top, with the same Customers Served number, it is pulling duplicates and not the desired data.

ServiceCustomers
Pets1
Building1
Bylaw1
Development2
Business Change3
Business Development4
Alterations5
Encroachment5
Compliance6
Accessory Building6
Permits8

<tbody>
</tbody>


I'd like it to pull: Permits, Accessory Building and Compliance...however it is returning: Permits, Compliance, Compliance


Any help will be much obliged!!!

cheers
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,080
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Maybe something like


A
B
C
D
E
F
1
Service​
Customers​
Top​
Service​
Customers​
2
Pets​
1​
1​
Permits​
8​
3
Building​
1​
2​
Accessory Building​
6​
4
Bylaw​
1​
3​
Compliance​
6​
5
Development​
2​
6
Business Change​
3​
7
Business Development​
4​
8
Alterations​
5​
9
Encroachment​
5​
10
Compliance​
6​
11
Accessory Building​
6​
12
Permits​
8​

Formula in E2 copied down
=INDEX($A$2:$A$12,COUNTA($A$2:$A$12)-D2+1)

Formula in F2 copied down
=VLOOKUP(E2,A:B,2,0)

Hope this helps

M.
 
Master Excel Bundle

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.

Forum statistics

Threads
1,168,087
Messages
5,857,285
Members
431,868
Latest member
servox

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
Top