[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]
[TABLE="class: k-table, width: 980"]
<tbody>[TR]
[TD]AA
[/TD]
[TD]Meaningless text
[/TD]
[TD]random number
[/TD]
[/TR]
[TR]
[TD]AB
[/TD]
[TD]Meaningless Text
[/TD]
[TD]random number
[/TD]
[/TR]
[TR]
[TD]AC
[/TD]
[TD]Meaningless text
[/TD]
[TD]random number
[/TD]
[/TR]
</tbody>[/TABLE]
[FONT="]
[/FONT]
[FONT="]Tab 2
[/FONT]
[TABLE="class: k-table, width: 980"]
<tbody>[TR]
[TD]1
[/TD]
[TD]AA,BA,CA
[/TD]
[TD]50
[/TD]
[TD]1.5
[/TD]
[TD]Alpha
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]AB,BB,CB
[/TD]
[TD]100
[/TD]
[TD]2.5
[/TD]
[TD]Beta
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]AC,BC,CC
[/TD]
[TD]150
[/TD]
[TD]3.5
[/TD]
[TD]Gamma
[/TD]
[/TR]
</tbody>[/TABLE]
[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;">
[TD="class: text-center, align: center"][/TD]
[TD="class: text-center, align: center"]50%
[/TD]
[TD="class: text-center, align: center"]3.00
[/TD]
[TD="class: text-center, align: center"]30%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]A*
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]50%
[/TD]
[TD="class: text-center, align: center"]2.00
[/TD]
[TD="class: text-center, align: center"]30%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]J
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]3.00
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]C, D, I, R
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]2.00
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]W
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]10%
[/TD]
[TD="class: text-center, align: center"]1.50
[/TD]
[TD="class: text-center, align: center"]22%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
</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]
[TABLE="class: k-table, width: 980"]
<tbody>[TR]
[TD]AA
[/TD]
[TD]Meaningless text
[/TD]
[TD]random number
[/TD]
[/TR]
[TR]
[TD]AB
[/TD]
[TD]Meaningless Text
[/TD]
[TD]random number
[/TD]
[/TR]
[TR]
[TD]AC
[/TD]
[TD]Meaningless text
[/TD]
[TD]random number
[/TD]
[/TR]
</tbody>[/TABLE]
[FONT="]
[/FONT]
[FONT="]Tab 2
[/FONT]
[TABLE="class: k-table, width: 980"]
<tbody>[TR]
[TD]1
[/TD]
[TD]AA,BA,CA
[/TD]
[TD]50
[/TD]
[TD]1.5
[/TD]
[TD]Alpha
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]AB,BB,CB
[/TD]
[TD]100
[/TD]
[TD]2.5
[/TD]
[TD]Beta
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]AC,BC,CC
[/TD]
[TD]150
[/TD]
[TD]3.5
[/TD]
[TD]Gamma
[/TD]
[/TR]
</tbody>[/TABLE]
[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;">
[TD="class: text-center, align: center"][/TD]
[TD="class: text-center, align: center"]50%
[/TD]
[TD="class: text-center, align: center"]3.00
[/TD]
[TD="class: text-center, align: center"]30%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]A*
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]50%
[/TD]
[TD="class: text-center, align: center"]2.00
[/TD]
[TD="class: text-center, align: center"]30%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]J
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]3.00
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]C, D, I, R
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]2.00
[/TD]
[TD="class: text-center, align: center"]25%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
[TD="class: text-center, align: center"]W
[/TD]
[TD="class: text-center, align: center"]100%
[/TD]
[TD="class: text-center, align: center"]10%
[/TD]
[TD="class: text-center, align: center"]1.50
[/TD]
[TD="class: text-center, align: center"]22%
[/TD]
[TD="class: text-center, align: center"]1.00
[/TD]
</tbody>
[/FONT]