+ Reply to Thread
Results 1 to 12 of 12

Adding and Subtracting (Quanity) Using 2 different barcodes

  1. #1
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8

    Adding and Subtracting (Quanity) Using 2 different barcodes

    My Excel Spreadsheet has two barcodes one for Barcode for Out/Invoice (-). The other for products going inside inventory (+). I'm trying to make it so when I scan inside the "Scanning Barcodes" Sheet it will either add or subtract from the Amount left in inventory column.

    Can someone please help me, I've been working on this for a while now, but I'm in experienced and I need help:P

    If you look into the spread sheet you will see what I mean:P
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    could you explain a bit more? your invoice sheet has info in it, the database sheet also has info but the scanning barcodes sheet is blank. I can't tell what it is you want done? The only thing I come up with is if you enter the barcode from the database sheet column B that you want the invoice amount added(?) and if you enter the barcode from the out/invoice column A you want it to subtract? Maybe redo your attached sheet with some hand entered sample results would make it clearer.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8
    Quote Originally Posted by Sambo kid View Post
    could you explain a bit more? your invoice sheet has info in it, the database sheet also has info but the scanning barcodes sheet is blank. I can't tell what it is you want done? The only thing I come up with is if you enter the barcode from the database sheet column B that you want the invoice amount added(?) and if you enter the barcode from the out/invoice column A you want it to subtract? Maybe redo your attached sheet with some hand entered sample results would make it clearer.
    I need it to add and subtract from the quantity. So like, if I scan in the scanning sheet it should add if I scan the barcode of the item. But if I scan the out barcode of the item it should subtract it.

  4. #4
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8
    Quote Originally Posted by rage 0wnz View Post
    I need it to add and subtract from the quantity. So like, if I scan in the scanning sheet it should add if I scan the barcode of the item. But if I scan the out barcode of the item it should subtract it.
    The invoice is fine. Its the database sheet and the scanning sheet. I just want to get an amount left in the inventory every time I scan something in or out.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    I am not sure if this is what you want or not. This may give you the answer... =IFERROR(IF(LEFT(A5,2)="in",VLOOKUP(A5,Database!B:C,2,FALSE)+(VLOOKUP(A5,Invoice!A:B,2,FALSE)),VLOOKUP(A5,Database!A:C,3,FALSE)-VLOOKUP(A5,Invoice!A:B,2,FALSE)),"")
    The assumption is that if you enter in a cell in A5 of the scanning barcode sheet with a value that is in column B of your database sheet it will take the value in column C and subtract the corresponding value found in the invoice sheet from it.

  6. #6
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8
    Quote Originally Posted by Sambo kid View Post
    I am not sure if this is what you want or not. This may give you the answer... =IFERROR(IF(LEFT(A5,2)="in",VLOOKUP(A5,Database!B:C,2,FALSE)+(VLOOKUP(A5,Invoice!A:B,2,FALSE)),VLOOKUP(A5,Database!A:C,3,FALSE)-VLOOKUP(A5,Invoice!A:B,2,FALSE)),"")
    The assumption is that if you enter in a cell in A5 of the scanning barcode sheet with a value that is in column B of your database sheet it will take the value in column C and subtract the corresponding value found in the invoice sheet from it.
    Where would I have to place that code?

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    In the scanning barcodes sheet.

    EDIT: this might also work... =IFERROR(VLOOKUP(A4,Database!B:C,2,FALSE)+(VLOOKUP(A4,Invoice!A:B,2,FALSE)),VLOOKUP(A4,Database!A:C,3,FALSE)-VLOOKUP(A4,Invoice!A:B,2,FALSE))
    again, in the scanning barcodes sheet.
    Last edited by Sam Capricci; 12-25-2015 at 12:47 AM.

  8. #8
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8
    Quote Originally Posted by Sambo kid View Post
    In the scanning barcodes sheet.
    Alright thanks. Im going to see if it works btw thx for the help

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    this is what I think you want but for me it is still not clear.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    Quote Originally Posted by Sambo kid View Post
    this is what I think you want but for me it is still not clear.
    Let me give you an example.

    If I scan a code from Column B, the code will go to the scanning sheet. Column B is the (in) so it will add to Column C in the database Sheet.
    If I scan a code from Column A, the code will go to the scanning sheet. Column A is the (out) so it will subtract from Column C in the database Sheet.
    ^If you have any questions let me know.

    P.S. The invoice should be affected in any way because I will be removing rows after I print out each invoice.
    Last edited by rage 0wnz; 12-25-2015 at 11:21 AM.

  11. #11
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    Would Count Cells Based on Background Color in Excel work?

  12. #12
    Registered User
    Join Date
    12-24-2015
    Location
    coldwater, Michigan
    MS-Off Ver
    2013
    Posts
    8

    Re: Adding and Subtracting (Quanity) Using 2 different barcodes

    Thanks man you have me a good Idea, I separated the invoice and the inventory to have a good view of things. And then I used the =countif function that counted the in and out Rep++

+ 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. quanity*fixed value
    By Indy12 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-20-2013, 04:10 PM
  2. Inventory counting by comparing stock barcodes against master barcodes list
    By jamiemacdonough in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2011, 04:51 PM
  3. adding and subtracting in cells
    By nathanv3223 in forum Excel General
    Replies: 2
    Last Post: 02-13-2009, 11:08 AM
  4. Adding and subtracting
    By nathanv3223 in forum Excel General
    Replies: 1
    Last Post: 01-30-2009, 12:10 AM
  5. adding and subtracting 1.54 hrs
    By Tascard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2008, 05:10 PM
  6. Adding and subtracting %'s from a fixed sum
    By irelaj2 in forum Excel General
    Replies: 2
    Last Post: 01-21-2008, 10:09 AM
  7. Adding Barcodes to Excel?
    By profector in forum Excel General
    Replies: 3
    Last Post: 11-06-2007, 06:44 PM
  8. [SOLVED] adding barcodes
    By bassfisher in forum Excel General
    Replies: 1
    Last Post: 08-20-2005, 02:05 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