Thank you very much Richard for your very quick answer, will try it tonight, I will need to modify the formula because the excel file which keeps barcode data I have added now into the first post has a little bit more columns.