BradleyS
Active Member
- Joined
- Oct 28, 2006
- Messages
- 351
- Office Version
- 2010
- Platform
- Windows
I'm trying to find the correct code which include numbers and letters using a lookup table and checking it against 4 lookup values.
In the example below the left table A to E is a static table and is the reference table
The right table normally on a separate sheet has multiple lines of varying data, where I need to find the correct code based matching the Name, Age and Age Calc from, using the information in the reference table.
I have tried VLOOKUP but can't get it to work with multiple values. I have had some success with INDEX/MATCH, but I'm struggling with the how to determine the age between the age range values. I have got to here: =INDEX(E2:E6,MATCH(G2&I2,A2:A6&D2:D6,0)), but can't workout how to include the age lookup
I also tried SUMIFS(E2:E6,A2:A6,G2,B2:B6,"<="&H2,C2:C6,">="&H2,D2:D6,I2) which works, but only where the codes are numbers. It fails when they have letters in the code
The answers I need in J are: 567a8, 76a54, 4679, 76a54, 12a34. What would be my best method of achieving my code results?
In the example below the left table A to E is a static table and is the reference table
The right table normally on a separate sheet has multiple lines of varying data, where I need to find the correct code based matching the Name, Age and Age Calc from, using the information in the reference table.
I have tried VLOOKUP but can't get it to work with multiple values. I have had some success with INDEX/MATCH, but I'm struggling with the how to determine the age between the age range values. I have got to here: =INDEX(E2:E6,MATCH(G2&I2,A2:A6&D2:D6,0)), but can't workout how to include the age lookup
I also tried SUMIFS(E2:E6,A2:A6,G2,B2:B6,"<="&H2,C2:C6,">="&H2,D2:D6,I2) which works, but only where the codes are numbers. It fails when they have letters in the code
The answers I need in J are: 567a8, 76a54, 4679, 76a54, 12a34. What would be my best method of achieving my code results?