+ Reply to Thread
Results 1 to 9 of 9

VBA to find missing items between 4 sheets and name sheets that have and not

  1. #1
    Registered User
    Join Date
    05-14-2015
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    EXCEL 2013
    Posts
    20

    VBA to find missing items between 4 sheets and name sheets that have and not

    Hey guys, I have a big deal here...

    I have 4 sheets (DIA,TOP,ONIX and JADE) with many data in it each. Sheets have data in comum but do have unique data as well. I already have a VBA code that generated another sheet (Master) with all data from every sheet (unique or not). But it's not enough for my work.

    Book1 macro with all data.xlsm

    data in excel is grouped by 4 equal columns in all sheets, check the worksheet as well:

    A -> Item code (only number in the format 000-00-000)
    B -> Revision code (A,B,C, D, E, F, J, H, I)
    C -> Item description
    D -> Supplier name


    Check what I want VBA to do:

    1 - With this "Master" sheet, I want the code not only to copy the data but show where it came from as well (sheet name);
    2 - Compare column A of each sheet to the rest of sheets and filter the missing items, pasting the sheet name that have the item and pasting as well the sheets that might don't have. For exemple, compare one DIA item with All the other and then check what the different items, paste the item number and show each sheets contains this item and which sheet is missing this item.

    For example:
    850-00-404 (column a) revision(column b) descrpition(column c) supplier (column d) vessels that contain the item(column e) sheets that don't contain the item (column f)

    Hey guys, this is very important for meeee!! I'm counting on you geniuses guys that we have here!!

    I hope I've explained enough for u guys!! Follow the excel worksheet



    Thankssss a lot!!

  2. #2
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    Hi, asafebass
    If you could wirte some results you want in Master sheet, maybe someone could supplys the code you need.

  3. #3
    Registered User
    Join Date
    05-14-2015
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    EXCEL 2013
    Posts
    20

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    Vba should seach items by item number and copy all the rows only from the first result (since the rest of the columns may vary, but item number is equal) but should also verify if the item number appears in the other sheets, returning where the item number appears and where not. I want something like that:

    Item revision Description Supplier Item appers on Item is missing on
    000-000-000 A Fire hose Jincle JADE, ONIX, DIA TOP

  4. #4
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    It seemed there are duplicate number in MASTER sheet. it's better to delete them.
    try this
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-14-2015
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    EXCEL 2013
    Posts
    20

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    Hey Simcode! Thanks for your help!

    The VBA code worked great for some items, but more than half of data have some minor problems that I'd like to ask for your help.

    The "E" column should contain the sheet(s) that have the specific item, and the "F" column should contain the sheet(s) that don't have the item. There are some items that all the sheets names appears on the column "F" but the item is placed only in 2 sheets for example item number 223-01-404 and 223-01-403. When it happens, the other lines dont appear as well. And there are some items that do appear in all sheets but the names are on the "F" column and the lines don't appear when all sheets names are in the "F" column. Could you help me fixing that? When the item appear in all the sheets it should have the sheets name on the column "E" and not on the "F" column.

    Thanks a lot!!
    Last edited by asafebass; 02-11-2016 at 06:57 AM.

  6. #6
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    Hi, asafebass
    Both of 223-01-404 and 223-01-403 are double in Master sheet, if you remove duplicate lines, the minor problems will disappear too, I believe.

  7. #7
    Registered User
    Join Date
    05-14-2015
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    EXCEL 2013
    Posts
    20

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    Simcode, thanks a lot buddy!! It beautifully worked!!


    But i'm still need your help! Since you could help me in all questions!

    I'm facing problems with the items description... some of then don't match in relation to another sheet.

    How can I create a VBA code to copy only the "C" column (description) data for a specif item number from all data sheets (dia,top,onix,jade - in sequence) to sheet1? the excel file is attached here Book1 macro with all data final.xlsm. Thanks a lot man, you're really helping me!

  8. #8
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    As your wisht
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-14-2015
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    EXCEL 2013
    Posts
    20

    Re: VBA to find missing items between 4 sheets and name sheets that have and not

    Hey man, thanks a lot, it worked perfectly!!! Sorry for the late answer, tou really helped me a lot man! Have a good week!

+ 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. Find missing data by comparing two excel sheets
    By jhonnyexcel in forum Excel General
    Replies: 1
    Last Post: 01-03-2016, 07:35 AM
  2. Find missing data by comparing two excel sheets
    By jhonnyexcel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2016, 06:35 AM
  3. Find missing data by comparing two excel sheets
    By jhonnyexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2016, 06:34 AM
  4. Compare Sheets and find missing Columns
    By anandrajagopal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:09 AM
  5. Compare Sheets and find missing Rows
    By anandrajagopal in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-17-2015, 10:56 AM
  6. [SOLVED] Compare Sheets Find Missing Data
    By ClarkKent88 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-08-2012, 01:51 AM
  7. Find what names are missing in sheets
    By magicool in forum Excel General
    Replies: 6
    Last Post: 02-21-2010, 11:48 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