CaptainCsaba
Board Regular
- Joined
- Dec 8, 2017
- Messages
- 78
Hey Everyone!
So here is the thing. We get a report that we have to use and every row contains a 6 digit code and there is random gibberish before and after it and it is never the same. We have a list of these codes with what they mean and I want to create a VLOOKUP macro for it. The problem is as you can see is that we can't search only by the code because of the gibberish. An example:
M1RE76 NAB ACF MLCI WMP EQ 76
CBNY-M1SAGE MLCI WMP EQ 38
What we have in our excel is: M1RE76 and M1SAGE (not all beginwith M1. Some begin with EQ or WM so there is no real logic to them)
There are around 300 of these and what we need in VLOOKUP is "M1RE76" and "M1SAGE". They are never in the same place in the report we get. For now they all only begin with letters but the can end in numbers. I don't really know how I can exact the codes and the use VLOOKUP to make our job much easier. What makes it harder is that not all the report is made up of these, so for example we get 100 rows and around 15 are like this.
So here is the thing. We get a report that we have to use and every row contains a 6 digit code and there is random gibberish before and after it and it is never the same. We have a list of these codes with what they mean and I want to create a VLOOKUP macro for it. The problem is as you can see is that we can't search only by the code because of the gibberish. An example:
M1RE76 NAB ACF MLCI WMP EQ 76
CBNY-M1SAGE MLCI WMP EQ 38
What we have in our excel is: M1RE76 and M1SAGE (not all beginwith M1. Some begin with EQ or WM so there is no real logic to them)
There are around 300 of these and what we need in VLOOKUP is "M1RE76" and "M1SAGE". They are never in the same place in the report we get. For now they all only begin with letters but the can end in numbers. I don't really know how I can exact the codes and the use VLOOKUP to make our job much easier. What makes it harder is that not all the report is made up of these, so for example we get 100 rows and around 15 are like this.