I have a formula that looks at a cell in a column and then cross references another column and then pulls the value of the cell to the right of that 3rd column. However, I would like it to search based on if a value exists in that column anywhere in the cell rather than requiring the entire cell to match.
Example:
The formula I have I would put in the age lookup column and would be: =INDEX($D$2:$D$10000,MATCH(A2,$C$2:$C$10000,0))
that would return 34.
However, what I am trying to do is set it so that it doesn't require the entire cell to look it up. For instance if it is like this:
I want the formula to be able to look at the "Age" column and pull the match if it exists ANYWHERE in the cell so it should do the lookup regardless.
Example:
Name | Age Lookup | Name | Age |
Bob | John | 22 | |
John | Tina | 31 | |
Tina | Claudia | 51 | |
Albert | Bob | 34 | |
Claudia | Albert | 63 |
The formula I have I would put in the age lookup column and would be: =INDEX($D$2:$D$10000,MATCH(A2,$C$2:$C$10000,0))
that would return 34.
However, what I am trying to do is set it so that it doesn't require the entire cell to look it up. For instance if it is like this:
Name | Age Lookup | Name | Age |
Bob | John | 22 years | |
John | Tina | 31 | |
Tina | Claudia | 51 years | |
Albert | Bob | 34 years old | |
Claudia | Albert | age 63 |
I want the formula to be able to look at the "Age" column and pull the match if it exists ANYWHERE in the cell so it should do the lookup regardless.