VLOOKUP ignoring duplicate values

Skipmeok

New Member
Joined
Feb 22, 2017
Messages
2
Hello -- This is my first post and I'm having trouble with this formula. Whats going on is there are 10 values in column "A" and 10 values in column "B". I'm using VLOOKUP and LARGE to find the largest 5 values in column "A" then add the corresponding 5 values from column "B". However, if column "A" has duplicate values, it only uses the first one it finds and thus throws off the total for column "B".

"A" "B"
257 3
250 4
227 5
231 3
249 6
250 1
219 4
264 3
233 2
197 1

So my 5 highest values in "A" are: 264, 257, 250, 250, 249 and column "B" are: 3, 3, 4, 1, 6 so the total for "B" should be: 17, but because it reads the first 250 twice, I get 20.... Can someone please help?

Skipmeok
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I can't thank you enough... I need to take some Excel classes and get up tp speed with these formulas. Again, thank you so much!!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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