Hi,
I have one spreadsheet with two columns, with the headers: ID number and Chemical name. I have another spreadsheet with six columns: ID number, Chemical name, TEP 1, TEP 2, TEP 3 and TEP 4 (TEPs are numeric risk scores). I need to know what the TEP values are for the chemicals in the first spreadsheet. Not every chemical in the first spreadsheet have TEP values, but all of the chemicals that do have a TEP value will be listed in the second spreadsheet.
In the second spreadsheet, the cells in the TEP columns can either have a number or have a blank cell. A blank cell means that the TEP was not calculated or that there isn't enough information to calculate.
Some of the ID numbers and chemical names in the spreadsheets are not named exactly the same. For example, one name might be 'Arsenic (and its compounds)' and another might be 'Arsenic compounds', but they're both referring to the same group of chemicals, which has a set of TEP values. Another nuisance is that there are some ID numbers that are different for the same chemical. For example, for the same chemical, one spreadsheet has an ID number of 'NA-03' and the other will have it as 'CMJ500'.
My guess would be to do some sort of partial matching macro for chemical names, and returning all 4 TEPs for partially matching values in the next columns, but I don't know how to code for this.
The result would have all of the chemicals in the first spreadsheet, with six columns: ID number (either the NA-__ one or the six letter/number), chemical name, TEP 1, TEP 2, TEP 3, and TEP 4. Is this possible?
Thank you in advance, any help would be greatly appreciated
I have one spreadsheet with two columns, with the headers: ID number and Chemical name. I have another spreadsheet with six columns: ID number, Chemical name, TEP 1, TEP 2, TEP 3 and TEP 4 (TEPs are numeric risk scores). I need to know what the TEP values are for the chemicals in the first spreadsheet. Not every chemical in the first spreadsheet have TEP values, but all of the chemicals that do have a TEP value will be listed in the second spreadsheet.
In the second spreadsheet, the cells in the TEP columns can either have a number or have a blank cell. A blank cell means that the TEP was not calculated or that there isn't enough information to calculate.
Some of the ID numbers and chemical names in the spreadsheets are not named exactly the same. For example, one name might be 'Arsenic (and its compounds)' and another might be 'Arsenic compounds', but they're both referring to the same group of chemicals, which has a set of TEP values. Another nuisance is that there are some ID numbers that are different for the same chemical. For example, for the same chemical, one spreadsheet has an ID number of 'NA-03' and the other will have it as 'CMJ500'.
My guess would be to do some sort of partial matching macro for chemical names, and returning all 4 TEPs for partially matching values in the next columns, but I don't know how to code for this.
The result would have all of the chemicals in the first spreadsheet, with six columns: ID number (either the NA-__ one or the six letter/number), chemical name, TEP 1, TEP 2, TEP 3, and TEP 4. Is this possible?
Thank you in advance, any help would be greatly appreciated
