Hello - this site was a huge help in the last problem I was faced with so I thought I would try again.
I have 2 columns of data as such, one that contains various site names ("Site") and the other to contain a Code. I want to populate the "Code" column using the Legend below:
Site_____________Code
Seattle Trans
Idaho Plant
Nevada Trans
Portland Admin
I have a "Code" legend set up as such:
Trans 100
Plant 300
Admin 500
etc...
I need a formula that I can enter into the "Code" column above that will return the value from the legend. Ex, any cell that contains the word "trans" would populate the column with "100", etc. Obviously there is a massive list and a more exhaustive legend so a formula is the answer.
I have tried both of the following formulas with no luck:
=VLOOKUP("*"&B5&"*", $J$5:$K$12, 2, 0) = where B5 is the "site" above and $J$5:$K$12 is the "legend".
=VLOOKUP(B5, "*"&$J$5:$K$12&"*", 2, 0)
Any help is appreciated. Thanks.
I have 2 columns of data as such, one that contains various site names ("Site") and the other to contain a Code. I want to populate the "Code" column using the Legend below:
Site_____________Code
Seattle Trans
Idaho Plant
Nevada Trans
Portland Admin
I have a "Code" legend set up as such:
Trans 100
Plant 300
Admin 500
etc...
I need a formula that I can enter into the "Code" column above that will return the value from the legend. Ex, any cell that contains the word "trans" would populate the column with "100", etc. Obviously there is a massive list and a more exhaustive legend so a formula is the answer.
I have tried both of the following formulas with no luck:
=VLOOKUP("*"&B5&"*", $J$5:$K$12, 2, 0) = where B5 is the "site" above and $J$5:$K$12 is the "legend".
=VLOOKUP(B5, "*"&$J$5:$K$12&"*", 2, 0)
Any help is appreciated. Thanks.