Welcome Guest! The IOSH forums are a free resource to both members and non-members. Login or register to use them

Postings made by forum users are personal opinions. IOSH is not responsible for the content or accuracy of any of the information contained in forum postings. Please carefully consider any advice you receive.

Notification

Icon
Error

Options
Go to last post Go to first unread
Barrie(Badger)Etter  
#1 Posted : 04 April 2013 09:19:35(UTC)
Rank: Super forum user
Barrie(Badger)Etter

Hi I have our in-house list of MSDS's broken down to component parts. I also have the latest list of SVHC's. Both are held on separate Excel spreadsheets. I have been told that there is a way of setting one spread sheet to check the other for matches (in my case chemical names). Have tried the help menu but it didn't make sense. So the question is, has anyone made use of the 'Go Compare' feature AND how the frel do you do it? Any help on this subject will be greatly appreciated. Badger
DaveDaniel  
#2 Posted : 04 April 2013 09:37:30(UTC)
Rank: Forum user
DaveDaniel

Barrie Chemical names won't work. I went through this years ago designing COSHH databases for Rover. There are different names for the same thing. Matching against CAS or ?EINEC? numbers is more promising but even these are not always accurate, and of course you'll have multiple CAS numbers for any product, and also multiple CAS numbers for the SVHC's. If you can get a single unique identifier, then you could create a multi-page spreadsheet and use a conditional lookup function to flag records which matched, but I think your problem is data, not process. Dave
chris42  
#3 Posted : 04 April 2013 10:22:01(UTC)
Rank: Super forum user
chris42

As above you need to have the same identifier in each list in order to match (other than the missing items). If you do then a further question Will one of the lists be a master list ie will have all items and so just searching for things missing from one of the lists. Or could there be items missing from either list (hope this makes sense). If there is a master list and id’s match then you could try :- =ISNA(MATCH(C3,$A$3:$A$7,False)) list 1 is in column "A" and list 2 is in column "C", list 2 is the master list. (the lists can be on different sheets or workbooks). If there is NO match found it will read "True". Note A3 to A7 in my example is the full length of the list to be checked (not the master list). Also note I think the lists need to be in order (ie alphanumeric). The formula needs copying down a column across from the list of items (so the C3 reference looks at each item in turn) Is this a one off exercise or an ongoing one? Have fun
chris42  
#4 Posted : 04 April 2013 10:42:23(UTC)
Rank: Super forum user
chris42

Just checked neither list needs to be in alphanumeric order. It seems to work if they are not.
Barrie(Badger)Etter  
#5 Posted : 04 April 2013 12:43:37(UTC)
Rank: Super forum user
Barrie(Badger)Etter

Thanks Chris It looks to be an ongoing exercise but with new lists when they come out. I believe I understand the formla you've given unless i missed it where would the address go for describing the two different sheets? Badger
chris42  
#6 Posted : 04 April 2013 13:50:51(UTC)
Rank: Super forum user
chris42

OK I have now put the two lists on different workbooks first workbook is called list1.xlsx and the second workbook is called list2.xlsx. List2 is the master list (all records / items) and list1 is the incomplete list. I have kept the data in list1 in column A and in column C on list2 as per the original example. Data in both workbooks is in sheet1. I also mixed up the order of the items. The formula is now:- =ISNA(MATCH(C3,[list1.xlsx]Sheet1!$A$3:$A$7,FALSE)) My test data was:- List1.xlsx List2.xlsx Row Column A Row Column C Column D 3 abcd 3 abcd False 4 bcde 4 bcde False 5 cdef 5 defg False 6 fghi 6 efgh True 7 defg 7 fghi False . 8 cdef False Column D has the formula and is showing it is true there is no match for efgh as it is not is list1. If you still have problems then you will have to pm me for my email and then send me the two files and I may have a look over the weekend. I wish the reply box you type in was the same width as the final posted entry box.
chris42  
#7 Posted : 04 April 2013 13:57:47(UTC)
Rank: Super forum user
chris42

grrr It took all the spaces out, try this My test data was:- List1.xlsx……………....List2.xlsx Row…Column A……. Row….Column C…. Column D 3……..abcd……………3………abcd………...False 4……..bcde……………4………bcde………...False 5……..cdef………….…5………defg………….False 6……..fghi……………..6………efgh……….…True 7……..defg…………….7………fghi………..…False ………………………......8………cdef……….…False
Barrie(Badger)Etter  
#8 Posted : 05 April 2013 12:01:23(UTC)
Rank: Super forum user
Barrie(Badger)Etter

Chris You have mail Badger
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.