So I am making this test spreadsheet to figure out how to implement zone barcodes in my master inventory tracking sheet. I can't figure out how to make it work with Google Spreadsheet functions. Essentially I want to be able to scan a zone barcode like "Shipping" and then all the items that are in the shipping bay will be scanned afterwards, those will then be linked to the Shipping barcode and somewhere down the line in the sheet, I will be able to mark those barcodes as shipped. Similar to window glazing, I want to be able to scan "Glazing" and then all the windows that have barcodes can get scanned and associated with "Glazing" to mean they have finished being glazed.
I want it set up in a way that I can scan "Shipping" then all subsequent barcodes will be associated with "Shipping", unless "Glazing" is scanned, then all barcodes above "Glazing" will be associated with the previous zone barcode, and all barcodes after "Glazing" will be associated with "Glazing", unless "Shipping" is scanned, so on and so forth.
This is the sheet:
https://docs.google.com/spreadsheets/d/1ErRpMqLYhM7meUJz_6XB_Lr-phRC-UWXDFRY3qQRKuU/edit?usp=sharing