+ Reply to Thread
Results 1 to 15 of 15

Inventory management - Matching and sorting barcode scanned with existing spreadsheet info

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Inventory management - Matching and sorting barcode scanned with existing spreadsheet info

    Hello,

    In an effort to ease my monthly inventory of approx 200 serialized items, I would like to match, sort and identify potentially missing barcode scanned items with my existing spreadsheet. I've have the barcode in a column in my spreadsheet. When I scan in the barcode of the items into a new column, I would like to save time by not trying to go in order of the spreadsheet. Not going in order poses an inventory reconciliation hassle because I am not able to determine what might be still unscanned. What formula or macro can I employ to sort matched items comparing what I think I have with what I scan?

    I hope this example shows what I am trying to do. Ideally I would hide the scanned inventory column as the reconciled column is what I need to see.

    spreadsheet data...................scanned inventory.................. inventory reconciliation
    xyz123..................................yui345...................................xyz123
    qwe234.................................jhg456.................................--blank-- (qwe234 not found during inventory)
    poi987..................................xyz123................................... poi987
    jhg456..................................poi987....................................jhg456
    yui345 not recorded................ -----......................................yui345

    Can you follow what I am after? Thank you!

    QTS
    Last edited by QTS18; 07-25-2014 at 12:48 AM. Reason: spelling

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Hi,

    Welcome to the Forum.

    Can you please post a sample template of your workbook using "Go Advanced" option. You may choose to delete the confidential data in the file before the upload, if any.

  3. #3
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Correct me if I am wrong, but by not going in order, you are just trying to see if you have scanned the spreadsheet number. Could you just do this with a simple vlookup? If your above example is in columns A, B, and C, you would put
    Please Login or Register  to view this content.
    of course changing B100 to the farthest value down in that column.

  4. #4
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    gillry7, That is very nice. Thank you.

    Of course as I play with the formula, I realize a few things that I need to do, but cannot figure out... again. Since my scanned input contains a unique date that my spreadsheet does not, the scanned info does not match exactly with my cell data already in my spreadsheet. How do I make the vlookup formula work (for example, match A2 with my scanned data+date) with not-exact lookup values? I tried a few different ways in vlookup without success.

    Thank you all for the help!

  5. #5
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Can you specify how they do not match up exactly? For example, are they different data types (one is a number, one is text), or one might contain extra values (xyz123 and xyz1234).

  6. #6
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    I think I just figured out one way to make it happen. What do you think about this, a modified version of your vlookup with fuzzy match "*"&H2&"*"... IFERROR(VLOOKUP("*"&H2&"*",I$2:I$100,1,FALSE),"--blank--")

    To answer your how are they different question, the scanned value has the date of the scan after the barcode input, for example, xyz123 25July2014.

  7. #7
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    That will work as long as nothing is added before or after xyz123. For example, it will still show as a match for xyz1234 even though that might be a different part, but because xyz123 is in there, it shows. A solution for this could also be:
    Please Login or Register  to view this content.
    using Control + Shift + Enter to enter the formula as an array formula. It will have a 1 (or more if there are duplicates) if there is a match, and 0 if there is not a match.

  8. #8
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Looks good so far. Thank you for the help. You certainly know quite a bit!

  9. #9
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Quote Originally Posted by QTS18 View Post
    I think I just figured out one way to make it happen. What do you think about this, a modified version of your vlookup with fuzzy match "*"&H2&"*"... IFERROR(VLOOKUP("*"&H2&"*",I$2:I$100,1,FALSE),"--blank--")

    To answer your how are they different question, the scanned value has the date of the scan after the barcode input, for example, xyz123 25July2014.
    Using the quoted iferror(vlookup...) method above, how can I modify the formula to get the latest (most recent) date of my scan to appear? As it works now, I get the scan that was performed first, which is also in the lowest number row since each successive scan is automatically place in the subsequent row. As an example, my scanned input looks like this, "20PurpleRunner-06456 8/1/2014 10:02 PM", and maybe the next time I scan it appears as "20PurpleRunner-06456 8/3/2014 10:34 PM". I'd like to get the most recent scan to bump the older scan out.

    I tried a few variations of sumproduct and max formulas without success. Thanks!

  10. #10
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    With the vlookup formula you will not be able to do that unless you can sort the data. Vlookup looks at the first match in the list and takes that value, so if you can sort by the date, then the normal vlookup formula you have will work. If not, you will need a different formula. Let me know if you cannot sort.

  11. #11
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Wow, thanks again. I am unable to sort by date, so that requires a different formula? ...And just when I thought I met my requirement! Thanks for your help.

  12. #12
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    I guess this now depends on how your data is structured. If the newest dates are not at the top, are they at least at the bottom? For every new scan, I would hope that it gets added to the bottom of the list. If not, we will basically have to find every occurence, and then find the latest date of that occurence.

    I am hoping that the most recent date will be bottom most occurence in your list.

  13. #13
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    I guess this now depends on how your data is structured. If the newest dates are not at the top, are they at least at the bottom? For every new scan, I would hope that it gets added to the bottom of the list. If not, we will basically have to find every occurence, and then find the latest date of that occurence.

    I am hoping that the most recent date will be bottom most occurence in your list.

  14. #14
    Registered User
    Join Date
    07-24-2014
    Location
    Arizona
    MS-Off Ver
    Office Pro 2016
    Posts
    21

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    Yes, the most recent dates are added to the bottom.

  15. #15
    Registered User
    Join Date
    09-20-2013
    Location
    Hartland, WI
    MS-Off Ver
    Excel 2013 Professional Plus
    Posts
    73

    Re: Inventory management - Matching and sorting barcode scanned with existing spreadsheet

    There is a way to do a vlookup from the bottom to top using lookup instead of vlookup. However, I could not find a way to use your fuzzy much with that formula. The formula below will work though to get the bottom most value in the list with a match.
    Please Login or Register  to view this content.
    Using Ctr + Shift + Enter to enter as an array formula.

    If there is no match, it will return B1 which I believe is "Scanned Inventory". If you want it as --blank-- use:
    Please Login or Register  to view this content.
    Again using Ctr + Shift + Enter.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 08-24-2022, 12:27 AM
  2. Need to copy 9 cells to another worksheet when barcode is scanned
    By MOMO7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2014, 05:00 AM
  3. Adding Date in Column When Barcode is Scanned
    By zwarner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2013, 10:59 PM
  4. Switch worksheet depending on barcode scanned?
    By Mattneedshelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2013, 06:06 AM
  5. Barcode scanning inventory management with running totals
    By PGOIBOY in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-04-2011, 04:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1