Srikanth Ravada
New Member
I wanted to extract a value at an intersection of row and a column from the dump which I've taken from a reporting tool.
Some Inputs:
In the attached file, data dump is in sheet1. In column A there are a list of plants in 4 digits (alphanumeric and a total of 21 plants in this case) and list of codes in 1st Row in 6 digits (a total of 49 codes in this case). A combination of one plant and code will be a cost center name. For example VJ91+COPSLA=VJ91COPSLA which is a cost center name.
Requirement:
When ever user inputs a cost center name like "VJ91COPSLA", the value at the intersection of plant VJ91 and code COPSLA should be retrieved.
Challenges:
1. The data dump taken from the reporting tool is not so formatted. The plant names have lot of spaces and so does the code names mentioned in 1st row, including inverted comas if the code starts with zero in the beginning.
2. The list of plants are not fixed. The number may go up/down.
3. The list of codes are also not fixed. The number may go up/down depending upon the data.
Initiative:
I've tried, tested and solved the problem to some extent (see sheet2) but I'm struck in pulling out the plants and codes automatically while just pasting the data into the sheet1.
The data should be prepared for each plant with combination of all 49 codes and like wise for all the other plants as well.
Final requirement:
I wanted to find out..
Thanks in advance!
Regards,
SRI
Some Inputs:
In the attached file, data dump is in sheet1. In column A there are a list of plants in 4 digits (alphanumeric and a total of 21 plants in this case) and list of codes in 1st Row in 6 digits (a total of 49 codes in this case). A combination of one plant and code will be a cost center name. For example VJ91+COPSLA=VJ91COPSLA which is a cost center name.
Requirement:
When ever user inputs a cost center name like "VJ91COPSLA", the value at the intersection of plant VJ91 and code COPSLA should be retrieved.
Challenges:
1. The data dump taken from the reporting tool is not so formatted. The plant names have lot of spaces and so does the code names mentioned in 1st row, including inverted comas if the code starts with zero in the beginning.
2. The list of plants are not fixed. The number may go up/down.
3. The list of codes are also not fixed. The number may go up/down depending upon the data.
Initiative:
I've tried, tested and solved the problem to some extent (see sheet2) but I'm struck in pulling out the plants and codes automatically while just pasting the data into the sheet1.
The data should be prepared for each plant with combination of all 49 codes and like wise for all the other plants as well.
Final requirement:
I wanted to find out..
- either, how to pull out the plant and code names automatically with out formatting them, into separate columns, as i manually did for some in sheet2, with the help of a macro or an excel formula.
- or, a macro code to solve the entire problem as mentioned above.
Thanks in advance!
Regards,
SRI