Is your barcode getting decoded to some text (ascii) characters eventually? Does master sheet hold the master barcode ascii list with related information?
If yes, you can use VLOOKUP function to search for the code and fetch the corresponding data from other sheet or workbook.