Selecting from a table to enter a max value in another table

vvp214

New Member
Joined
Sep 10, 2014
Messages
4
I have two tables and would like to look at values assigned to categories in one table and in another table, only populate the largest value to the same category. For example:

Table1 has the following categories:
1 2
A Apple
B Boy
C Cat
D Dog

Table2 has the same categories with values assigned to them:
1 2
A Apple 15
B Boy 8
C Cat 23
D Dog 4

Is there formula that could look at Table2 and see that Cat has the highest value and then in Table1, only populate cell C2 with 23 (or even an "x"), while leaving the other cells blank? I'm not sure if this is too complex for a formula to achieve.
 
Code:
=IFERROR(IF(INDEX($F$1:$F$4,MATCH(A1,$E$1:$E$4,0))=MAX($F$1:$F$4),MAX($F$1:$F$4),""),"")

E1:F4 is table 2
A1:A4 is table 1
 
Upvote 0
Thank you NeonRedSharpie!! Formula worked perfectly. I just added another @if function within the formula to return a value of "" in Table1 if no values were yet populated in Table2 (otherwise, the formula as is was returning "0" values). Thanks again!!
 
Upvote 0

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