combining INDEX & MATCH with ISNUMBER?

steveh1873

New Member
Joined
Aug 28, 2014
Messages
17
Dear All,

I would like to look in column C and return a value from column B into column D by looking up column A (but, the returned value from column B needs to be the greatest value in the lookup that is relevant to that cell.

i.e.
Column C shows the cell "Steve, John, Callum". Via the lookup of columns A and B you can see the following:


Steve = 23, John = 25, Callum = 12,
therefore 25 is returned.


[TABLE="width: 266"]
<tbody>[TR]
[TD][TABLE="width: 330"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Age[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Names[/TD]
[TD="align: center"]Age[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"][/TD]
[TD="align: center"]John, Samuel[/TD]
[TD="align: center"]25[/TD]
[/TR]
[TR]
[TD="align: center"]Jim[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Jim, James, Ben[/TD]
[TD="align: center"]25[/TD]
[/TR]
[TR]
[TD="align: center"]James[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Ben[/TD]
[TD="align: center"]15[/TD]
[/TR]
[TR]
[TD="align: center"]Steve[/TD]
[TD="align: center"]23[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Steve, John, Callum[/TD]
[TD="align: center"]25[/TD]
[/TR]
[TR]
[TD="align: center"]Samuel[/TD]
[TD="align: center"]23[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"]Matt[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Tom[/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]Mike[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Timothy, Callum, Matt[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Ben[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Chris[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Callum[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Tom[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Timothy[/TD]
[TD="align: center"]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Any help is greatly appreciated.

I believe a combination of index, match, isnumber and search in an array formula is the answer but just can't seem to piece it together

Regards,
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Here's my attempt:


Excel 2010
ABCDE
1NameAgeNamesAge
2John25John, Samuel25
3Jim25Jim, James, Ben25
4James25Ben15
5Steve23Steve, John, Callum25
6Samuel23Chris12
7Matt20Tom10
8Mike20Timothy, Callum, Matt20
9Mark20
10Ben15
11Chris12
12Callum12
13Tom10
14Timothy10
Sheet1
Cell Formulas
RangeFormula
E2{=MAX(IF(IFERROR(FIND($A$2:$A$14,D2),0)>0,$B$2:$B$14,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Alternatively,

=MAX(IF(ISNUMBER(FIND($A$2:$A$14,D2)),$B$2:$B$14)) Ctrl+Shift+Enter
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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