Hello,
I am wondering if someone would know if this would be possible. I have two sheets in a workbook. One is my "Main" sheet and the other is "Key" sheet. In my "Main" sheet, I have a column where the cell value is a string with various codes with an without the parenthesis. I would like to search through that string based on a key search using a range column (column A) in the "Key" sheet and would like to bring back a result found in column D of the "Key" sheet. Would this be possible using a formula or VBA code. I would prefer a VBA code, but I would accept either at this point.
I cannot provide the actual data, but below is a what I am looking for. One of the issues I have is that I need to find the exact match. For instance, if I am looking for 12345. I expect to match 12345 with 12345 ... 12345 should not be match to 1234567.
"Main" sheet: Column A has the string cell to be searched through for matches and column B shows the results that I would like to see.
"Key" Sheet: Houses the search/lookup values in column A and the result I want brought back is in Column D.
Let me know if more information is needed.
I am wondering if someone would know if this would be possible. I have two sheets in a workbook. One is my "Main" sheet and the other is "Key" sheet. In my "Main" sheet, I have a column where the cell value is a string with various codes with an without the parenthesis. I would like to search through that string based on a key search using a range column (column A) in the "Key" sheet and would like to bring back a result found in column D of the "Key" sheet. Would this be possible using a formula or VBA code. I would prefer a VBA code, but I would accept either at this point.
I cannot provide the actual data, but below is a what I am looking for. One of the issues I have is that I need to find the exact match. For instance, if I am looking for 12345. I expect to match 12345 with 12345 ... 12345 should not be match to 1234567.
"Main" sheet: Column A has the string cell to be searched through for matches and column B shows the results that I would like to see.
Managed Segment (Home)-Node Number | Business Name |
Business 1 [L6](12345) - 12345;Business 2 [L7](45678) - 45678 | Business/Technology |
Business 1 [L6](12345) - 12345;Business 2 [L7](45678) - 45678;Business 2a [L7](78945) - 78945 | Business/Technology/Operations |
Business 2 [L7](96385) - 96385 | Business |
Business 3 [L5] - 1234567 | Operations |
Business 3 - 1234567;Business 4 - 45612 | Operations/Technology |
"Key" Sheet: Houses the search/lookup values in column A and the result I want brought back is in Column D.
MS ID | MS ID Name | Sector | Business Name |
(12345) | Business 1 [L6] | sector1 | Business |
(45678) | Business 2 [L7] | sector2 | Technology |
(78945) | Business 2a [L7] | sector3 | Operations |
(96385) | Business 2 [L7] | sector1 | Business |
(1234567) | Business 3 | sector3 | Operations |
(45612) | Business 4 | sector2 | Technology |
12345 | Business 1 [L6] | sector1 | Business |
45678 | Business 2 [L7] | sector2 | Technology |
78945 | Business 2a [L7] | sector3 | Operations |
96385 | Business 2 [L7] | sector1 | Business |
1234567 | Business 3 | sector3 | Operations |
45612 | Business 4 | sector2 | Technology |
Let me know if more information is needed.