Hello everyone, I hope you're doing well. I have a question regarding our simple barcode tracking system in Excel.
I have a list of barcodes in column A that need to be entered manually, and column B would track the number of occurrences of all barcodes entered in column A.
When a barcode is first entered in column A, I want to register it along with the number "1" in column B. However, if the same barcode is re-entered in column A, I want to prevent Excel from writing it again in column A. Instead, I want to keep the first instance of barcode in column A and to increment its corresponding cell in column B by 1 for every subsequent occurrence of the same barcode.
For example, based on the excel sheet provided, when "11112" appears for the first time in column A, it should be registered in column A along with the number "1" in column B. If "11112" appears again in a different row in column A, Excel should restrict writing this barcode again in column A and only to add "2" next to "11112" in the first row. The row where the barcode is re-entered should be left blank automatically.
How can I achieve this using Excel formulas or VBA code?
Thanks for taking care of my enquiry..
Bookmarks