Stock inventory - count unique sequences from barcode

ChemistryBMS

New Member
Joined
Jul 7, 2023
Messages
6
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I am looking to obtain an overall itemised count from a delivery taken from the scanned barcodes. The first image is the full inventory catalogue at where the items are looked up against.

Stocklist snapshot.xlsx
ABCDEFGH
1ItemPart numberTests Per Kit ( tests x cartridge )
2Amylase reagent4T8520640 (160x4)The full inventory has a catalogue of all the items. Where the sizes are different, the test per kit is slightly different, even though is shares the same item name
3Pancreatic Amylase reagent1R0422200 (100X2)
4Free PSA reagent7P93202 x 100
5Free PSA reagent7P93302 x 500
6TSH reagent7P48202 x 100
7TSH reagent7P48302 x 600
Full inventory


The second image shows the Receiving tab, where the user will scan a barcode to column A and the remaining columns will auto-populate.

Stocklist snapshot.xlsx
ACDFGHIJKL
1BarcodeItemLot numberExpiryTests Per Kit ( tests x cartridge )
20100380740131142172408151051092UD0524007P4820TSH reagent51092UD0515/08/20242 x 100Column A (Barcode) is the scanning of a 2D barcode which present the uniform characters. From this we can determine item, lot and expiry. In the example, we have x2 different lot numbers of TSH reagent.
30100380740130329172405201053077FN0024007P9320Free PSA reagent53077FN0020/05/20242 x 100
40100380740131142172408151051092UD0524007P4820TSH reagent51092UD0515/08/20242 x 100
50100380740154196172406301030578Y60024001R0422Pancreatic Amylase reagent30578Y60030/06/2024200 (100X2)
60100380740155612172405071049600UD0024004T8520Amylase reagent49600UD0007/05/2024640 (160x4)
70100380740131142172412151051092UD0624007P4820TSH reagent51092UD0615/12/20242 x 100
80100380740131142172412151051092UD0624007P4820TSH reagent51092UD0615/12/20242 x 100
9    
10    
11    
12    
Receiving
Cell Formulas
RangeFormula
C2:C12C2=IFERROR(INDEX('Full inventory'!A:A,(MATCH([@[Item (extract)]],'Full inventory'!B:B,0))),"")
D2:D12D2=MID(A2,27,9)
F2:F12F2=IFERROR(DATE(2000+LEFT(E2,2), MID(E2,3,2), RIGHT(E2,2)),"")
G2:G12G2=IFERROR(INDEX('Full inventory'!C:C,(MATCH([@Item],'Full inventory'!A:A,0))),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F998Expression=AND(F2-TODAY()>=1, F2-TODAY()<100)textNO


In the third and main image, I am trying to achieve the overall counts of itemised lots.

Stocklist snapshot.xlsx
ABCDEFGHIJKLMN
1Lot 1Lot 2Lot 3Lot 4
2ItemPart numberQuantityLot numberExpiryQuantity2Lot number2Expiry2Quantity3Lot number3Expiry3Quantity4Lot number4Expiry4
3Amylase reagent4T8520149600UD0007/05/2024
4Pancreatic Amylase reagent1R0422130578Y60030/06/2024
5Free PSA reagent7P9320153077FN0020/05/2024
6TSH reagent7P4830251092UD0515/08/2024251092UD0615/12/2024
7
8The aim is to obtain the overall numbers of each items lot numbers from the 'Receiving' tab. Under columns C-E (Lot 1), the aim is: - (D:D) Lot number = return the first lot number listed from the 'Receiving' tab - (C:C) Quantity = count the amount of times the adjacent cell (part number) appears in the 'Receiving' tab with the occurence of the the lot number in the adjacent cell D - (E:E) Expiry = return the expiry of the specific lot Under columns F-H (Lot 2), the aims are similar to Lot 1, except this will return the second existing lot number from the 'Receiving' tab. This will be the same for lot 3 and lot 4.
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Summary


I know it may be a few nested functions but limitations of work software is MS Excel 2013.

Thanks, ChemistryBMS
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top