Hi - would appreciate help with this one. I want to use a standard Excel function to solve a lookup based on criteria problem...
I have a 'key' on worksheet(1) with (let's say) 2 columns A & B - example values as follows (approx 75 in total).
GIAA 50%
GIAB 100%
GYEFF 80%
etc
where column A reflects a designated summary point in a hierarchy built by adding progressive characters to indicate parent-child relationships - eg. G has two children: GA & GB which in turn have childen GAA, GAB, GAC & GBA, GBB, GBC - you get the idea !! Note they are NOT all at the same level - ie. they can have different char lengths.
The second column (mygroup1, etc) denotes a % that I need to carry to the data sheet.
The Data on worksheet(2) has a column of alpha values that are at the lowest level (let's call it column X). There could be 30,000 + of these.
GIAABCD
GIABDEF
GIACCCCC
GYEFFFADD
etc
How do I return the % from the key of the 'parents' to the 'children' on the data sheet.
In the above example I would want the following (note the text string in the 'key' must be FULLY CONTAINED within the text string on the data sheet).
GIAABCD 50%
GIABDEF 100%
GIACCCCC Not found
GYEFFFADD 80%
I'm keen to avoid creating a function or macro as I want to pass on the process....
Any help would be MUCH appreciated. I'm thinking maybe a series of nested IFs / matches but it would be cumbersome and there will be alot of these so need to be easy on the memory !
By the way, I'm using Excel 2002...
Many thanks
I have a 'key' on worksheet(1) with (let's say) 2 columns A & B - example values as follows (approx 75 in total).
GIAA 50%
GIAB 100%
GYEFF 80%
etc
where column A reflects a designated summary point in a hierarchy built by adding progressive characters to indicate parent-child relationships - eg. G has two children: GA & GB which in turn have childen GAA, GAB, GAC & GBA, GBB, GBC - you get the idea !! Note they are NOT all at the same level - ie. they can have different char lengths.
The second column (mygroup1, etc) denotes a % that I need to carry to the data sheet.
The Data on worksheet(2) has a column of alpha values that are at the lowest level (let's call it column X). There could be 30,000 + of these.
GIAABCD
GIABDEF
GIACCCCC
GYEFFFADD
etc
How do I return the % from the key of the 'parents' to the 'children' on the data sheet.
In the above example I would want the following (note the text string in the 'key' must be FULLY CONTAINED within the text string on the data sheet).
GIAABCD 50%
GIABDEF 100%
GIACCCCC Not found
GYEFFFADD 80%
I'm keen to avoid creating a function or macro as I want to pass on the process....
Any help would be MUCH appreciated. I'm thinking maybe a series of nested IFs / matches but it would be cumbersome and there will be alot of these so need to be easy on the memory !
By the way, I'm using Excel 2002...
Many thanks
Last edited: