+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Combining 2 large tables

  1. #1
    Registered User
    Join Date
    09-10-2011
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Post Combining 2 large tables

    I am running an E-commerce store and my inventory is downloaded and uploaded using csv files. I also downloaded an inventory list (xls) from my wholesaler and sorted it alphabetically by product name and set it to include only items that are in stock and are of the type that I want. I organized my store's inventory the same way. What I need to do is this:

    1. Whenever a product exists on both lists, overwrite the amount in stock in my store with the amount in stock from my wholesaler

    2. Whenever a product exists in my inventory, set the amount in stock to 0

    3. Whenever a product exists on my wholesalers list, but not mine, either ignore it, or append it to the end of my inventory list (this is not crucial, I am more worried about maintaining my current inventory)

    My personal experience:

    I have limited experience with PERL, more extensive experience with Java, C++, Python, and BASIC, but I have never programmed with Excel and I have no experience with sorting and searching algorithms other than what I have read. I honestly don't know where to start with Excel, but I really only need to perform this function.
    Attached Files Attached Files
    Last edited by DougFane; 09-11-2011 at 07:13 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Combining 2 large tables

    Hi DougFane and welcome to the forum,

    It is easier if both tables are in the same workbook, so I copied your wholesaler sheet to sheet 2 of the first. See attached.
    In Column K I've put a VLookup formula to bring to the wholesaler sheet the number of parts tha match the discription from your export sheet.

    See if that is of any help to you. Also - why are there so many #N/A showing the part on the wholesaler doesn't exist on the export sheet?
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-10-2011
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Combining 2 large tables

    Thank you Marvin for the worksheet provided. I also found another way to do what I needed to do. First I used an isna(matching( formula on both sheets which returned a set of boolean values to show which products existed on one list but not the other. I then sorted alphabetically and by boolean value so that the products that existed on both lists would be in alphabetical order at the top of the page. I then copied the available inventory column from the wholesaler sheet over the same column from my inventory. Then I set the available inventory to 0 for all my products that didn't exist on the wholesaler's sheet.

    Note to Marvin:
    The reason there were so many N/As in that column was that it has been a while since I updated my inventory, and many products I had have fallen out of stock, and new ones have come into stock.

    Thank you all for your help and I hope this thread can be of use to others in the future

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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