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
 

Some videos you may like

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,407
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,576
Messages
5,596,992
Members
414,115
Latest member
SFUser

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