Hello,
I am looking for a formula. I have one tab with raw data, multiple records, multiple duplicates, etc (tab named [raw]). I have another tab [Plan] where I need to insert my formulas. In my reference cell A1; I will enter a unique ID number. I want to use that value I entered in A1 and look it up in the [raw] tab; and return a value in column c of the [raw] tab.
This is a simple Index Match formula, which is not my issue. The additional piece of this formula is, I need to find the corresponding cell in the [raw] tab that STARTS with my unique ID, and ends with "-AH1" or "-BH1".
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][PLAN][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]UniqueId[/TD]
[TD="align: center"]Results[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]abcde[/TD]
[TD]red[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]zzzzz[/TD]
[TD]blue[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][RAW][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]UniqueID[/TD]
[TD="align: center"]Color[/TD]
[TD="align: center"]Size[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]abcde[/TD]
[TD]blue[/TD]
[TD]S[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]abcde[/TD]
[TD]blue[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD]abcde-AH1[/TD]
[TD]red[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD]abcde-AH1[/TD]
[TD]red[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD]abcde-AH2[/TD]
[TD]green[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD]abcde-AH2[/TD]
[TD]orange[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD]zzzzz-BH1
[/TD]
[TD]blue[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD]zzzzz[/TD]
[TD]red[/TD]
[TD]S[/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a formula. I have one tab with raw data, multiple records, multiple duplicates, etc (tab named [raw]). I have another tab [Plan] where I need to insert my formulas. In my reference cell A1; I will enter a unique ID number. I want to use that value I entered in A1 and look it up in the [raw] tab; and return a value in column c of the [raw] tab.
This is a simple Index Match formula, which is not my issue. The additional piece of this formula is, I need to find the corresponding cell in the [raw] tab that STARTS with my unique ID, and ends with "-AH1" or "-BH1".
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][PLAN][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]UniqueId[/TD]
[TD="align: center"]Results[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]abcde[/TD]
[TD]red[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]zzzzz[/TD]
[TD]blue[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][RAW][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]UniqueID[/TD]
[TD="align: center"]Color[/TD]
[TD="align: center"]Size[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]abcde[/TD]
[TD]blue[/TD]
[TD]S[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]abcde[/TD]
[TD]blue[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD]abcde-AH1[/TD]
[TD]red[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD]abcde-AH1[/TD]
[TD]red[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD]abcde-AH2[/TD]
[TD]green[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD]abcde-AH2[/TD]
[TD]orange[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD]zzzzz-BH1
[/TD]
[TD]blue[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD]zzzzz[/TD]
[TD]red[/TD]
[TD]S[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: