+ Reply to Thread
Results 1 to 4 of 4

Check for value or write new line

  1. #1
    Registered User
    Join Date
    06-23-2011
    Location
    Nantucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    35

    Check for value or write new line

    I have a spreadsheet that I am using to keep track of my inventory.

    The sheet has 4 tabs:
    Stock - shows current inventory levels
    Received - all inventory that has been added to inventory
    Issue - all inventory that has been removed from inventory
    ItemList - Lookup page for product names/descriptions.

    I enter new inventory into this spreadsheet in the blue columns on the Received tab.
    The new entered line is copied over to the Stock tab by copying the Received cells one by one...and the summing them in E.

    The hope was that there would never be duplicate items entered, but I was wrong.
    Rows 23 and 24 are duplicates because the same Item No, Pkg, and Lot exist more than one time.

    What I would like to do is have the sheet look at the concatenate value in the received tab and compare it to the concatenate column on the stock tab.
    If a match is found, add the value from the received tab to the corresponding cell in the received Qty column on the stock tab.
    If no match is found, add the information from the received line to the next available line in the stock tab as a new item.

    Hopefully that makes at least a little sense.

    Thanks,
    Anthony
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: Check for value or write new line

    Try to simplify your original question in few arguments
    Teach me Excel VBA

  3. #3
    Registered User
    Join Date
    06-23-2011
    Location
    Nantucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Check for value or write new line

    Quote Originally Posted by excelisfun009 View Post
    Try to simplify your original question in few arguments
    I would like to be able to have entries on the Received tab checked against current entries on the Stock tab.
    Column A on the Received tab exists on the Stock tab, add the Qty entered to the existing inventory on the stock tab.
    If column A on the Received tab does not exist on the Stock tab, add that row to the Stock tab as new inventory.

    I really wish I knew how to explain this better...hopefully it makes sense.

    Thanks,
    Anthony

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: Check for value or write new line

    Would it not be better to create a list of unique items on a new sheet and there you can have sum of all unique items.This sumif will be based on stock sheet which you are maintaining currently.
    Attached Files Attached Files
    Last edited by ImranBhatti; 01-19-2017 at 03:28 AM. Reason: To upload workbook

+ 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. [SOLVED] Loop through 3 columns, if 1 or more have a value, write to next line
    By pclaesen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2015, 02:25 PM
  2. Write multiple lines from one line
    By asm19 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 09-10-2015, 02:20 PM
  3. [SOLVED] Help for the use of write <end of line> to html file.
    By mrkhchan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2015, 02:34 AM
  4. Replies: 7
    Last Post: 01-18-2015, 06:16 PM
  5. How to check data in 2 columns and write the results on the 3rd one?
    By sami770 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2014, 03:31 PM
  6. [SOLVED] How to write loop to check for empty cells
    By JaydenK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-22-2013, 09:17 AM
  7. how to write sheet hide in one line?
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2010, 02:11 AM

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