[FONT="]I have a test value - call it AB - that I want to find in a table in a different sheet then find the corresponding value 2 or 3 rows over.
[/FONT]
[FONT="]Here is an example:
[/FONT]
[FONT="]Tab 1
[/FONT]
<tbody>
</tbody>[FONT="]
[/FONT]
[FONT="]Tab 2
[/FONT]
<tbody>
</tbody>[FONT="]I want to find from tab 1 the value in cell A2 on Tab2 in column B then return the value 2 columns to the right. In this example, find "AB" (text will change so should be cell reference but no big deal there) in the table in Tab 2 then return "2.5" which is 2 cells to the right.
[/FONT]
[FONT="]There's more I want to do but this is the core of all of it.
[/FONT]
[FONT="]
[/FONT]
[FONT="]here's a sample from a real table that I might use. Input will be from column A...so if I put in the cell in tab 1 that I want to find the value associated with "D" in column A which exists as a substring of C, D, I, R), I want to find 2.00 (2 columns over) or whatever value I decide I want.
[/FONT]
[FONT="]Column A will likely be unsorted. There is not a 100% guarantee it might exist. For example (this is related to airline fare classes), a fare class of "X" (hypothetical in this particular case) might exist but doesn't give earnings because it's not in the table at all so I'd like to return 0.
[/FONT]
[FONT="]
[/FONT]
<tbody style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">
</tbody>[FONT="]Make sense? I've been playing around with find, search, vlookup, match, index, substring, etc, etc, but I'm stuck. Help a newbie?
[/FONT]
[/FONT]
[FONT="]Here is an example:
[/FONT]
[FONT="]Tab 1
[/FONT]
AA | Meaningless text | random number |
AB | Meaningless Text | random number |
AC | Meaningless text | random number |
<tbody>
</tbody>
[/FONT]
[FONT="]Tab 2
[/FONT]
1 | AA,BA,CA | 50 | 1.5 | Alpha |
2 | AB,BB,CB | 100 | 2.5 | Beta |
3 | AC,BC,CC | 150 | 3.5 | Gamma |
<tbody>
</tbody>
[/FONT]
[FONT="]There's more I want to do but this is the core of all of it.
[/FONT]
[FONT="]
[/FONT]
[FONT="]here's a sample from a real table that I might use. Input will be from column A...so if I put in the cell in tab 1 that I want to find the value associated with "D" in column A which exists as a substring of C, D, I, R), I want to find 2.00 (2 columns over) or whatever value I decide I want.
[/FONT]
[FONT="]Column A will likely be unsorted. There is not a 100% guarantee it might exist. For example (this is related to airline fare classes), a fare class of "X" (hypothetical in this particular case) might exist but doesn't give earnings because it's not in the table at all so I'd like to return 0.
[/FONT]
[FONT="]
[/FONT]
50% | 3.00 | 30% | 1.00 | ||
A* | 100% | 50% | 2.00 | 30% | 1.00 |
J | 100% | 25% | 3.00 | 25% | 1.00 |
C, D, I, R | 100% | 25% | 2.00 | 25% | 1.00 |
W | 100% | 10% | 1.50 | 22% | 1.00 |
<tbody style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">
</tbody>
[/FONT]