I am hoping someone can help a complete novice. I am looking for VBA Code to;
Look at cell "BA19" in worksheet "Output"
Find the text before the "+" [this will only ever have 1-3 characters before and 1-3 after the "+"]
Remove any spaces from this found text
Then use the text to vlookup "A4:J34" in worksheet "Tables"
Then return this lookup value to cell "BH19" in worsheet "Output"
Then Repeat this for text after the "+" , with vlookup and output going to "BI20" in worsheet "Output"
Example:
Cell "BA19" contains text LG + CH [Result should be LG]
Use LG [with no spaces] to lookup table and in this example will return 6
LG 6
KN 7
CH 3
Repeat with text after the "+" and lookup table which would return value 3
This is very frustrating as any code found on the web never does what I want and when i try to modify it , there's always an error code which simply doesn't mean anything to me. So any assist would be very much appreciated. Thanks in advance.
Look at cell "BA19" in worksheet "Output"
Find the text before the "+" [this will only ever have 1-3 characters before and 1-3 after the "+"]
Remove any spaces from this found text
Then use the text to vlookup "A4:J34" in worksheet "Tables"
Then return this lookup value to cell "BH19" in worsheet "Output"
Then Repeat this for text after the "+" , with vlookup and output going to "BI20" in worsheet "Output"
Example:
Cell "BA19" contains text LG + CH [Result should be LG]
Use LG [with no spaces] to lookup table and in this example will return 6
LG 6
KN 7
CH 3
Repeat with text after the "+" and lookup table which would return value 3
This is very frustrating as any code found on the web never does what I want and when i try to modify it , there's always an error code which simply doesn't mean anything to me. So any assist would be very much appreciated. Thanks in advance.