Need max values formula

mahesh8498

Active Member
Joined
Oct 4, 2007
Messages
272
Hi All,

I need a help to create a formula for below table. I need a sum 1 max values of each row. In below table i need a formula which will find 2 max values in given 4 values and make sum of it. But i need the header of the same instead of value.

In first example i need formula in E column which will find highest value and second highest value. like as 11 + 9 (Values are in column C and B) and i need result in column E as C&B

A B C D
7 9 11 1
12 50 10 9
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi.

Is it correct?

<table valign="middle" colspan="7" style="font-family:Calibri; color:#000000; background-color:#FFFFFF; font-size:11px; font-weight:normal; font-style:normal; " border="1" cellpadding="2" cellspacing="0"><colgroup><col width="28pt"><col width="31,2pt"><col width="31,2pt"><col width="31,2pt"><col width="31,2pt"><col width="31,2pt"><col width="31,8pt"></colgroup><tbody><tr style="background-color:#cacaca"><td>
</td><td align="center">A</td><td align="center">B</td><td align="center">C</td><td align="center">D</td><td align="center">E</td><td align="center">F</td></tr><tr><td style="background-color:#cacaca" align="center">1</td><td align="right">7</td><td align="right">9</td><td align="right">11</td><td align="right">1</td><td align="right">11</td><td align="right">9</td></tr><tr><td style="background-color:#cacaca" align="center">2</td><td align="right">12</td><td align="right">50</td><td align="right">10</td><td align="right">9</td><td align="right">50</td><td align="right">12</td></tr><tr><td style="background-color:#cacaca" align="center">3</td><td align="right">
</td><td align="right">
</td><td align="right">
</td><td align="right">
</td><td align="right">
</td><td align="right">
</td></tr><tr><td style="background-color:#cacaca" align="center">4</td><td align="right">7</td><td align="right">9</td><td align="right">11</td><td align="right">1</td><td align="right">20</td><td align="right">
</td></tr><tr><td style="background-color:#cacaca" align="center">5</td><td align="right">12</td><td align="right">50</td><td align="right">10</td><td align="right">9</td><td align="right">62</td><td align="right">
</td></tr></tbody></table>
<table valign="middle" colspan="2" style="table-layout:auto; color:#000000; background-color:#FFFFFF; font-family:Calibri; font-size:10px;" border="3" cellpadding="2" cellspacing="0"><colgroup><col width="40pt"><col></colgroup><tbody><tr style="background-color:#eeaaaa"><td>Zelle</td><td>Formel</td></tr><tr><td>E1</td><td>=LARGE(A1:D1,1)</td></tr><tr><td>F1</td><td>=LARGE(A1:D1,2)</td></tr><tr><td>E2</td><td>=LARGE(A2:D2,1)</td></tr><tr><td>F2</td><td>=LARGE(A2:D2,2)</td></tr><tr><td>E4</td><td>=LARGE(A4:D4,1)+LARGE(A4:D4,2)</td></tr><tr><td>E5</td><td>=LARGE(A5:D5,1)+LARGE(A5:D5,2)</td></tr></tbody></table>
 
Last edited:
Upvote 0
I need a formula which will find highest and second highest vallue and will reflect only their header. As in first example it should be in cell E1 written as C&B as value are high in coloumn C and B only
 
Upvote 0
I am trying to get header of MAX values..

So inshort formula needs to do find first 2 highest value and then their headers
 
Upvote 0
If there aren't headers in row 1, could you live with this?

Code:
=ADDRESS(ROWS(E$1:E1),MATCH(LARGE(A1:D1,1),A1:D1,0),4)&"&"&ADDRESS(ROWS(E$1:E1),MATCH(LARGE(A1:D1,2),A1:D1,0),4)
Matty
 
Upvote 0

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

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