+ Reply to Thread
Results 1 to 8 of 8

How to auto add 1 to a specific cell when the same value is entered. For inventory mgmt

  1. #1
    Registered User
    Join Date
    09-04-2020
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    3

    Question How to auto add 1 to a specific cell when the same value is entered. For inventory mgmt

    Hi,
    This is a scenario for simple inventory management. I received items that need to enter into a spreadsheet. Each item has a unique identifier (SKU) stored in the same workbook. However, the items I receive are not sorted, they are scattered, imagine all kinds of fruits placed in one box.

    So when I scan (or type in) an SKU number, an item shows up in A column and recorded '1' in the C column.
    1.jpg

    What I want to achieve is that, at some point, when I entered an SKU, the existing same item add 1 automatically and removes the one that is being entered.
    2.jpg

    Thanks so much for the help!

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,396

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    .
    Please paste your existing macros.

    The required code will need to be placed within one of those macros.

  3. #3
    Registered User
    Join Date
    09-04-2020
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    3

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    Hi Logit,

    Thanks for the reply, actually I don't have any macros for this spreadsheet. How I'm currently doing is just scanning through all items (of course, the C column will be always '1'), and ended up with a huge long list with duplicated items. So I was wondering if there is a smarter way of doing it.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    Maybe the below in the worksheet module..

    Please Login or Register  to view this content.
    See attached.

    BSB
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-04-2020
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    3

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    Hi BadlySpelledBuoy,

    This is exactly what I'm looking to achieve. The problem solved in 10mins.

    Huge thanks guys for all your help!

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    Glad I could help

    BSB

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,396

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    .
    I'm not clear how the Worksheet_Change is able to determine a value has changed ?

    The scanner is picking up the SKU number and presumably some piece of software is searching for the same on the Inventory Sheet.
    However, if I correctly understand, nothing is changing on the sheet at that point ?

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,396

    Re: How to auto add 1 to a specific cell when the same value is entered. For inventory mgm

    .
    Well ... guess my question didn't have any value.


+ 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. Help: Auto applying a formula to new data when entered in to a specific column.
    By LuckoftheLefty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-26-2014, 03:28 AM
  2. Auto Populating a cell at a specific time if nothing has been entered in the cell.
    By DomzDolley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2014, 06:22 PM
  3. Replies: 7
    Last Post: 06-22-2014, 03:33 AM
  4. [SOLVED] how to stop Command button If specific number is entered in a specific cell range
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 05:10 AM
  5. Replies: 8
    Last Post: 01-23-2013, 03:36 AM
  6. auto fill time based on a when a specific cell has data entered
    By b16dlg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-30-2012, 05:26 AM
  7. Inventory mgmt: macro to find compare 2 value on 2 different sheets
    By ginkgo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2007, 02:14 AM

Tags for this Thread

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