+ Reply to Thread
Results 1 to 10 of 10

Compare two excel files and hightlight the difference(Macro?VBA?)

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Lightbulb Compare two excel files and hightlight the difference(Macro?VBA?)

    i receive two separate excel files done by two parties, so the item name is not the same but actually talking the same thing like the example i attached "Apple" = "Apple_a". But they may count the apple in different time slot. But the total should be the same.

    Here is the thing, i want to know if there is any difference between two files number/quantity. As Book1 is sender, Book2 is receiver. Number of In and out should be the same.

    Please help. Thanks!!!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    please help

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    Does your original data have the same format in the 2nd file as "Apple_a"? What i am asking about is the part following the "_".
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    1st file names the item as "APPLE" 2nd file names the item as "APPLE_A_01". As they are enter by different user but talking the same item.

    Please let me know what i can provide. Many thanks

  5. #5
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    please kindly help

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    Do you want to compare the total quantties for eatch fruit?

    You want only VBA-Macro?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    whatever solutions in excel is fine!
    Yes, my goal is to ensure the quantity of two files of each fruit is equal and figure out if there is difference.
    a more advance may also consider the which time slot occur the difference of quantity(but maybe just consider the basic part first, as i assume if their total quantity is equal, then fine, if not, there is error)

    Many thanks!

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    Look if this helps you..
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    both number of apple is 25 ,but how come the result is diff?

    ---------- Post added at 03:45 AM ---------- Previous post was at 03:38 AM ----------

    can index and match be a solution for the case?

  10. #10
    Registered User
    Join Date
    08-10-2012
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Compare two excel files and hightlight the difference(Macro?VBA?)

    please help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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