akparasite
Board Regular
- Joined
- Jul 15, 2002
- Messages
- 55
I have a problem. Some of my work cohorts entered data into a column not following the convention we had all agreed to. As a result I have a list of hyphenated numbers (i.e. "01-15") written within text strings, but I need to roll additional data pertaining to each within the text string. There are about 5,000 cells of data in this column with these hyphenated numbers.
I have a table/array to relate the hyphenated numbers with the additional information that needs to be included within each cell. For example, instead of just writing "01-15" the employees should have written the following:
"01-15, MG-5, Primary Power Gen #5, Wartsilla 5000 KW Generator"
I need a function to search and substitute the values from the array into the text, if it is indeed there, and get the data in the cell where format is not too important at the moment.
I can understand searching one value by using the following formula:
=IF(ISNUMBER(SEARCH(A17,A2)),SUBSTITUTE(A2,A17,CONCATENATE(B17," , ",C17," , ",D17)),A2)
...but, having the function look for multiple values in an array is confusing me. Is there some way I could use VLOOKUP in this? How can I do this and save myself hours/weeks of work?
As always, this site is an amazing resource, and I greatly appreciate any help you can provide.
...a sample of my data:
I have a table/array to relate the hyphenated numbers with the additional information that needs to be included within each cell. For example, instead of just writing "01-15" the employees should have written the following:
"01-15, MG-5, Primary Power Gen #5, Wartsilla 5000 KW Generator"
I need a function to search and substitute the values from the array into the text, if it is indeed there, and get the data in the cell where format is not too important at the moment.
I can understand searching one value by using the following formula:
=IF(ISNUMBER(SEARCH(A17,A2)),SUBSTITUTE(A2,A17,CONCATENATE(B17," , ",C17," , ",D17)),A2)
...but, having the function look for multiple values in an array is confusing me. Is there some way I could use VLOOKUP in this? How can I do this and save myself hours/weeks of work?
As always, this site is an amazing resource, and I greatly appreciate any help you can provide.
...a sample of my data:
Book4 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Location | |||||
2 | SourceLocations(generatortags):94-05,94-06,94-07 | SourceLocations(generatortags):MG-7,ServicesBack-upGen.,Caterpillar650KWGenerator,94-06,94-07 | ||||
3 | source_location 14-17 14-5 14-6 | |||||
4 | source_location 01-11 01-12 01-13 01-14 01-15 01-31 01-49 01-54 | |||||
5 | manymore | |||||
6 | ||||||
7 | Table/Array | |||||
8 | RedDogType-SeqNumber | SourceNumber | EquipmentUse | Description | ||
9 | 01-11 | MG-1 | PirmaryPowerGen#1 | Wartsila5000KWGenerator | ||
10 | 01-12 | MG-2 | PirmaryPowerGen#2 | Wartsila5000KWGenerator | ||
11 | 01-13 | MG-3 | PirmaryPowerGen#3 | Wartsila5000KWGenerator | ||
12 | 01-14 | MG-4 | PirmaryPowerGen#4 | Wartsila5000KWGenerator | ||
13 | 01-15 | MG-5 | PirmaryPowerGen#5 | Wartsila5000KWGenerator | ||
14 | 01-31 | MG-6 | PirmaryPowerGen#6 | Wartsila5000KWGenerator | ||
15 | 01-49 | MG-17 | PirmaryPowerGen#7 | Wartsila5000KWGenerator | ||
16 | 01-54 | MG-18 | PirmaryPowerGen#8 | Wartsila5000KWGenerator | ||
17 | 94-05 | MG-7 | ServicesBack-upGen. | Caterpillar650KWGenerator | ||
18 | 94-06 | MG-8 | ServicesBack-upGen. | Caterpillar650KWGenerator | ||
19 | 94-07 | MG-9 | PAC-Back-upGen. | Caterpillar650KWGenerator | ||
20 | 94-11 | MG-10 | CONPACBack-upGen. | DetroitDieselAllson275KW | ||
21 | manymore. | |||||
Sheet1 |