Return to a specific value in a column, associated with the maximum value in a row - excel

i'm working with excel, and i'm trying to Fill a column (Column E), with the associated value, where the maximum value of a row exists. as an illustration, Within Row 2(B2, C2, and D2), the maximum value is 7. 7 is exists in Column D, and associated with number 3, thus, the result should be 3.
ABCDE
1 1230
2 0173
3 0532
4 4710
what function should I use and how's the syntax looks like ?
Thank you in advance

Related

Index Minif excel

I need a formula that looks for a value in column A, finds the smallest value of that row and displays the corresponding value of a row on the top of the sheet (row 3 in my case) where the smallest value has been found.
also would like to find the second and third smallest value and display the value of row 3.
For example: I need to lookup X in the first column, find the smallest value in that row (1) and display the value on the row on top of that column (D)
and second smallest value for X to display C, third smallest for X to display E.
enter code here
A B C D E F
Z 6 8 9 5 2
X 7 2 1 3 7
Y 9 2 6 1 6
This codes should work:
=INDEX($B$2:$F$2,MATCH(MIN(IF($B$1=$A$3:$A$5,$B$3:$F$5)),INDEX($B$3:$F$5,MATCH($B$1,$A$3:$A$5,0),),0))
!https://imgur.com/2YFu39E
Suppose your data are in range A1:F4 as shown below:
You can use the following formula to find the 1st, 2nd and 3rd smallest value in the row starting "X". Put it in Cell I2 and drag it down.
=SMALL(INDEX($B$2:$F$4,MATCH("X",$A$2:$A$4,0),),H2)
Then you can use the following formula to find the corresponding value in the row starting "Z":
=INDEX(INDEX($B$2:$F$4,MATCH("X",$A$2:$A$4,0)-1,),,MATCH(I2,INDEX($B$2:$F$4,MATCH("X",$A$2:$A$4,0),),0))
It is basic INDEX+MATCH approach. If you have problem understanding the solution, I suggest you to google some online tutorials on the use of INDEX+MATCH. SMALL function is used to find the nth smallest value as requested.
Cheers :)

How do I make a cell value represent a number in Excel?

I have
Year 1 2 3 4 5 6
I'm trying to make it so that each year number 1-6 is equal to another number value i.e. Year 1 is equal to 5. Year 2 is equal to 6.
You will not be able to store one value in a cell and use a different value for calculation. However you may do this calculation with the help of a lookup from another table,
Assuming you have the years in Column A and the corresponding mappings are in Column E and F, you can use the below formula in Column B,
=INDEX(E:F,MATCH(A1,E:E,0),2) * 2
This formula lookups the value in A1 in the table E:F and returns the corresponding Column F element. That is finally multiplied with the 2 to show your result. Instead of just using just A1 for multiplying by 2, you should be using INDEX(E:F,MATCH(A1,E:E,0),2). Hope this helps.

Formula to Find Next Value in a Column that Contains a Certain Value in another Column

Current Next 1 Apple
2 5 2 Boy
3 Cat
4 Apple
5 Boy
6 Cat
7 Apple
I have cell 1 that contains the value "2". I need a formula that would return the next value in a column that contains the value "oy" in another column. But it cant return the same value, has to return a value greater than the current. So next value greater than 2 that contains "OY" in another column.
Example should return the number 5.
Can anyone help?
Use INDEX/MATCH to set the RANGE and another INDEX/MATCH to return the value:
=INDEX(INDEX(C:C,MATCH(A2,C:C,0)+1):C1040000,MATCH("*oy*",INDEX(D:D,MATCH(A2,C:C,0)+1):D1040000,0))
Avoid using OFFSET or INDIRECT as they are volatile functions.

Look up for highest value from another column if values are equal excel

***1 2 3***
a 2 3
b 3 4
c 4 3
d 5 2
so I know to get the highest value I do
=INDEX(column1, MATCH(MAX(column3), column3, 0))
... which would give me 'b'
now I want to get the second highest value based on the column 3 but because there are two cells with 3 (which is the second highest value) I want to use the one that has the lowest value in column 2 based on those two rows. Is this possible?
Use a 'helper' column that adds column C + (column B ÷ 10) and use a modification of your original formula on that column.
        
The standard formula in F5 is,
=INDEX(A$2:A$5, MATCH(AGGREGATE(14, 6, D$2:D$5, ROW(1:1)), D$2:D$5, 0))
Fill down as necessary.

Find the maximum value associated with a specific value in a different column

I need to find the largest value in column B associated with a specific value in column A.
Here's an example of what I mean:
A B
2 1
2 14
2 22
5 6
5 8
5 99
I.e. I want to find the the largest value, 22, in column B on the same row as a 2 in column A.
I'm currently using this to try find the value, however it only finds the first value:
=VLOOKUP(A2, A1:B20, 2, FALSE)
Please try:
=MAX(IF(A:A=2,B:B))
entered with Ctrl+Shift+Enter.

Resources