Formula to find specific value

joyrock37

New Member
Joined
Oct 14, 2011
Messages
26
Hi All,
I need a solution for the following problem:

I have two arrays. The formula in the red column in array1 is supposed to get the value from the third column in array2, based on these conditions:

Group (Array1) matches Group (Arrray2)
AND
Age (Array1) <= Maximum Age (Array2)

Array1
GroupAgeFormula required
to result in
c3young
c6old
c9old
d4old
d8old

<tbody>
</tbody>

Array2
GroupMaximum AgeCode To Get
c4young
c9old
d3young
d10old

<tbody>
</tbody>

I have tried array functions, but no success.

Thank you for lending your brain (y)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
See if this helps

Excel Workbook
ABC
1GroupAgeFormula required
2c3young
3c6old
4c9old
5d4old
6d8old
7***
8GroupMaximum AgeCode To Get
9c4young
10c9old
11d3young
12d10old
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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