Excel 2010 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | name | number | beth | ||||
2 | Rick | 1 | 99 | largest | |||
3 | Bob | 2 | 8 | second largest | |||
4 | Beth | 99 | 6 | thrid | |||
5 | Bart | 4 | 1 | forth | |||
6 | Jim | 5 | |||||
7 | Beth | 6 | |||||
8 | Rick | 7 | |||||
9 | Beth | 8 | |||||
10 | Beth | 1 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2 | {=LARGE(IF($D$1=$A$2:$A$10,$B$2:$B$10),1)} | |
D3 | {=LARGE(IF($D$1=$A$2:$A$10,$B$2:$B$10),2)} | |
D4 | {=LARGE(IF($D$1=$A$2:$A$10,$B$2:$B$10),3)} | |
D5 | {=LARGE(IF($D$1=$A$2:$A$10,$B$2:$B$10),4)} | |
Press CTRL+SHIFT+ENTER to enter array formulas. |
I want to find the second highest value in colume L when colume J not contains 100,101,102,103,104,105,106,107,108,109,110,197,200,202,297.
Excel 2013/2016 | |||||||
---|---|---|---|---|---|---|---|
J | K | L | M | N | |||
1 | Sort.Nr | Navn | Volum | ||||
2 | 140 | 0 | 301 | 150 | |||
3 | 240 | 0 | 150 | ||||
4 | 102 | 0 | 200 | ||||
5 | 200 | 0 | 50 | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
N2 | =AGGREGATE(14,6,(L2:L5)/(1-ISNUMBER(MATCH(J2:J5,{100,101,102,103,104,105,106,107,108,109,110,197,200,202,297},0))),2) |
=IFERROR(AGGREGATE(14,6,($L$2:$L$5)/(1-ISNUMBER(MATCH($J$2:$J$5,$Q$2:$Q$16,0))),ROWS(H$2:H2)),"")
Had to make a list with the numbers since the {} syntax didnt work in Norwegian Excel.
Great, glad it worked
It's arguably better to list the numbers on the sheet anyway but if you really wanted to use the array constant you could try one of these instead.
{100;101;102;103;104;105;106;107;108;109;110;197;200;202;297}
Or
{100\101\102\103\104\105\106\107\108\109\110\197\200\202\297}