Can't Find Summed Value of 2 Largest Numbers in Vlookup

bencar

Banned user
Joined
Jun 8, 2016
Messages
149
I'm trying to use vlookup to lookup a value that sums up the 2 largest numbers in columns B,C and D. I tried these 2 formulas on my own but thet dont work. I also tried using them as array functions. But still doesnt work. How can I make this work?

=sum(VLOOKUP(E9,A2:D5,{LARGE(B2:D2,{1,2})},0))
=sum(VLOOKUP(E9,A2:D5,(LARGE(B2:D2,{1,2}),0))



ABCD
1ThrowerThrow 1Throw 2Throw 3
2Daniel45.9923.7851.02
3Richard40.2242.3243.69
4Matt37.5534.231.5
5Stevie69.43056.11

<tbody>
</tbody>

 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Re: How Do I Find Summed Values of 2 Largest Numbers in Vlookup

Maybe something like this


A
B
C
D
E
F
G
1
Thrower​
Throw 1​
Throw 2​
Throw 3​
Thrower​
Result​
2
Daniel​
45,99​
23,78​
51,02​
Daniel​
97,01​
3
Richard​
40,22​
42,32​
43,69​
Matt​
71,75​
4
Matt​
37,55​
34,2​
31,5​
5
Stevie​
69,43​
0​
56,11​

<tbody>
</tbody>


Formula in G2 copied down
=SUMPRODUCT(LARGE(INDEX(B$2:D$5,MATCH(F2,A$2:A$5,0),0),{1;2}))

M.

And where is vlookup in your formula?
 
Upvote 0
Re: How Do I Find Summed Values of 2 Largest Numbers in Vlookup

Hi Marcelo Branco,

I am following this thread. I can't get your INDEX and MATCH to work. Could you see below?


Excel 2010
ABCDEFG
1ThrowerThrow 1Throw 2Throw 3ThrowerResult
2Daniel45,9923,7851,02Daniel#NUM!
3Richard40,2242,3243,69Matt#NUM!
4Matt37,5534,231,5
5Stevie69,43056,11
6
Sheet1
Cell Formulas
RangeFormula
G2=SUMPRODUCT(LARGE(INDEX(B$2:D$5,MATCH(F2,A$2:A$5,0),0),{1;2}))
G3=SUMPRODUCT(LARGE(INDEX(B$2:D$5,MATCH(F3,A$2:A$5,0),0),{1;2}))
 
Last edited:
Upvote 0
Try

=SUM(LARGE(INDEX($B$2:$D$5,MATCH(E9,$A$2:$A$5,0),0),{1,2}))


FYI, try not to be locked into what you think the solution should be.
i.e., don't expect a solution to use specific function a or b, there are many different ways to skin the same cat.

Instead, focus on what results you're looking for.
I would have been very helpful if you posted what your expected results where, and including what the contents of E9 is.


Excel 2013/2016
ABCDEF
1ThrowerThrow 1Throw 2Throw 3
2Daniel45.9923.7851.02
3Richard40.2242.3243.69
4Matt37.5534.231.5
5Stevie69.43056.11
6
7
8
9Matt71.75
10Daniel97.01
11Stevie125.54
12Richard86.01
Sheet1
Cell Formulas
RangeFormula
F9=SUM(LARGE(INDEX($B$2:$D$5,MATCH(E9,$A$2:$A$5,0),0),{1,2}))
F10=SUM(LARGE(INDEX($B$2:$D$5,MATCH(E10,$A$2:$A$5,0),0),{1,2}))
F11=SUM(LARGE(INDEX($B$2:$D$5,MATCH(E11,$A$2:$A$5,0),0),{1,2}))
F12=SUM(LARGE(INDEX($B$2:$D$5,MATCH(E12,$A$2:$A$5,0),0),{1,2}))
 
Last edited:
Upvote 0
@Jonmo1 - thank you very much. Upon further review, it seems that my sample data in post #14 was formatted as text so formula returned #NUM !
Sorry about that. Formula in post #9 and #15 returns the required values.
 
Last edited:
Upvote 0
@Jonmo1 - thank you very much. Upon further review, it seems that my sample data in post #14 was formatted as text so formula returned #NUM !
Sorry about that. Formula in post #9 and #15 returns the required values.


DO NOT hijack teh thread! If you need help with your problem create a thread.
 
Upvote 0

Forum statistics

Threads
1,215,868
Messages
6,127,413
Members
449,382
Latest member
DonnaRisso

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