Multi-quantity inventory with scanner

fmx8329

New Member
Joined
Mar 23, 2012
Messages
3
Hey all,

I am pretty new here. I looked at a few of the threads related to inventory but none would do what I want to do. Basically, I want to scan a box that will have shirts in it. The box will have a barcode with the item number on it and then a barcode with the quantity. I was hoping to figure it out so that when the item number was scanned, excel would jump to that item column and the the quantity in the box would be added underneath to keep a running total.

We are trying to inventory a warehouse with many boxes of shirts (typically 80-120 shirts per box) We need to run inventory about once a week and we need a pretty automated system to scan the entire warehouse. Any ideas where to start? I figured out vlookup and sumif but they didn't seem to want to work together. I just want to simplify everything so I don't have to do any sorting and organizing after i scan the entire warehouse.

Thanks for any and all help!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How do you get the barcode data from the scanner to excel?

If you can get the barcode (and/or item number) into Excel, you can write a simple macro to pop up an input box whenever something is scanned to enter quantity, and then automatically put that in the table.

(you will need a macro though most likely)
 
Upvote 0
The barcode scanner plugs into my USB port and it automatically writes in whatever excel cell I am currently in when I scan an item. Any ideas of what type of macro this would need? I am using Excel 2007 for Windows 7.
 
Upvote 0
I would protect the sheet so that only one cell can be selected, then have an "OnChange" worksheet event that triggers whenever that cell changes (whenever a new item is scanned).

Then you would pop up an input box, ask for the quantity, make sure it's a number, and insert it in your inventory sheet.
 
Upvote 0
As an example. If you have your inventory set up like this:


Excel 2003
AB
1ItemQuantity
2000120
30002464
40003168
50004110
60005135
70006185
80007339
90008432
100009134
110010257
120011266
130012441
14001340
150014345
160015257
170016334
18001776
190018411
200019422
21002098
220021226
230022393
240023416
25002473
260025449
270026478
28002723
290028402
300029475
3100306
320031436
330032114
340033367
Inventory


And your input sheet like this:


Excel 2003
ABCD
1InputCurrent QuantityNew QuantityText Item
20001200001
Input


When you scan something in, it goes into A1, and the following code gets run (put it in the "Input" worksheet code section in VBA):

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim intQuantity, intLastRow As Integer
    
    intLastRow = Worksheets("Inventory").Range("A65535").End(xlUp)
    
    If Target.Address = "$A$1" Then
        intQuantity = MsgBox("Inventory Shows " & Range("$B$2") & " pieces in stock." & vbNewLine & "How many are there?", "Confirm Quantity")
        If IsNumeric(intQuantity) Then
            Range("$C$2").Value = intQuantity
            For i = 2 To intLastRow
                If Worksheets("Inventory").Range("A" & i).Value = Worksheets("Input").Range("$D$2") Then
                    Worksheets("B" & i).Value = intQuantity
                End If
            Next i
        Else
            MsgBox ("Please enter a number.")
        End If
    End If
End Sub

This code could be much cleaner. The point is that it gives you an input box when you scan something, then replaces the old value in your inventory table (there are much better ways to do this, as well as keeping your old records, etc.)
 
Upvote 0
Thanks Sal,

Would this allow for the same item to be entered multiple times? I was thinking of having it set up so that when you scan the item number on the box it would locate that cell and then when you scan the quantity it would add it in that column. Then if I come up to another box with same item number and quantity in the box I can scan it and it will find the item and then go to that cell and automatically add the next quantity scanned so that I have a running total. Does that make sense? I am also trying to do more research on how to actually make a macro. They don't seem easy, but I am kind of desperate to get this sheet working how I want it.
 
Upvote 0
The way I have it set up will overwrite the previous entry. You can make it additive, or put the date in a cell and have it create a new column and/or sheet for that date and reset all the numbers, or...

There are a billion ways that it could be set up. It depends on what's easiest to use. My suggestion would be to just start thinking up what exactly you want, and take a shot at writing it yourself, asking for help when you get stuck along the way.

If you are truly desperate to get it done in a hurry, you could probably find someone to write it for you (for a fee).
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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