+ Reply to Thread
Results 1 to 3 of 3

Compare two lists each with two columns, highlight differences. CAD vs ERP BOM compare.

  1. #1
    Registered User
    Join Date
    11-27-2016
    Location
    Columbia, MO
    MS-Off Ver
    2010
    Posts
    2

    Compare two lists each with two columns, highlight differences. CAD vs ERP BOM compare.

    Hello,

    I am currently working as a design engineer and am trying to develop a way to compare our CAD model Bill of material to our ERP systems after pasting the contents of each in excel. Using conditional formatting we want to highlight the changes in each pair of columns green if there is a match and yellow if there is a part number match but quantities are off. The two columns in each are Part # and Quantity of that model. The two lists are on separate sheets of the same workbook because this workbook is going to be doing more then just comparing the BOM, this will not be changed. We have one made that almost works correctly but comes up with errors whenever you move stuff around vertically or try and change the columns each are posted in. I want to do this because this is not the format I want it in. Also I will attach the workbook and i'm not sure if vlookup is the way to go in terms of flexibility but if possible I would like to stick with conditional formatting and avoid vba as my experience is extremely novice in this area.

    Lastly the parts of the BOM that don't start with numbers are sheet metal parts and don't need to be compared but will always get pasted as well as the other info.

    Thank you for any and all help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Compare two lists each with two columns, highlight differences. CAD vs ERP BOM compar

    comes up with errors whenever you move stuff around vertically or try and change the columns each are posted in.
    changing the row should not impact VLOOKUP but moving the column obviously will: which column(s) get changed?

    If the "Part Number" column in Sheet2 is changed then INDEX/MATCH is the better solution where you match the column title " PART Number" and/or "Qty"to do the match.

    e.g

    =INDEX(Sheet2!$A$3:$C$23,MATCH($B7,Sheet2!$A$3:$A$23,0),MATCH("QTY:",Sheet2!$A$2:$Z$2,0))

    replace your current VLOOKUP (assumes "Patt Number" is colum A in Sheet2

    OR

    =INDEX(Sheet2!$A$3:$Z$23,MATCH(B8,INDEX(Sheet2!$A$3:$Z$23,,MATCH("PART NUMBER",Sheet2!$A$2:$Z$2,0)),0),MATCH("QTY:",Sheet2!$A$2:$Z$2,0))

    which matches both the "Part Number" and "QTY:" columns in Sheet2 so you can amend these columns
    Last edited by JohnTopley; 11-27-2016 at 05:46 PM.

  3. #3
    Registered User
    Join Date
    11-27-2016
    Location
    Columbia, MO
    MS-Off Ver
    2010
    Posts
    2

    Re: Compare two lists each with two columns, highlight differences. CAD vs ERP BOM compar

    The columns that are being changed are (EL) for Quantity and (EM) for part name on sheet 2 the rest being left the same on sheet 1 as of right now. And I thought it was weird that when I moved it vertically it made a difference but whenever I move 200-0079 and its quantity to the first row in the list on sheet 2 it highlights it black on sheet one.

    Thank you for your help and also the length of both lists will vary depending on what model is being worked but I think the function can adjust with that automatically.
    Last edited by daniellowery6; 11-27-2016 at 05:59 PM.

+ 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] Compare Columns In Different Workbooks and Highlight Differences
    By sunirone in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2016, 07:54 PM
  2. Compare 2 columns and highlight differences
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2014, 01:41 PM
  3. Replies: 0
    Last Post: 07-17-2014, 10:06 AM
  4. Replies: 9
    Last Post: 04-18-2013, 03:54 PM
  5. [SOLVED] Compare columns in different worksheets nad highlight differences
    By intercooler in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-13-2012, 01:05 PM
  6. Compare two lists and highlight the differences
    By jsmo in forum Excel General
    Replies: 3
    Last Post: 08-28-2012, 10:27 PM
  7. Compare two lists and highlight differences.
    By delgadotb in forum Excel General
    Replies: 1
    Last Post: 03-30-2009, 03:24 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