+ Reply to Thread
Results 1 to 3 of 3

Generating a file showing the difference

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Generating a file showing the difference

    Hi,

    I have an excel 2003 file that has column A showing its ID and B its quantity, then column C with its ID and D with their its quantity.

    If there are more of the ID in column D than B then I want the output to be a file showing the difference.
    It does not matter if column B has more than column D for the same SKU only if column D has less than column B for the same SKU.

    Attached is an example of the ideal ExpectedResultFile.xls along with the Compare.xls file.

    Below the starting information file

    A B C D
    SKU QTY Variant SKU Qty
    901180103 19 901180103 6
    901180107 0 901180107 1
    901180113 7 901180113 8
    WMEBLAC 28 WMIARM 13
    WMEBRO 3 WMECHO 3
    WMECHAR 27 WMECHAR 7
    WMECHO 22 WMEBRO 26
    WMIARM 70 WMEBLAC 55
    WOCBLAC 2

    Here are the ideal results in a excel.xls file after applying VBA

    A B
    Variant SKU Qty
    901180107 1
    901180113 1
    WMEBRO 4
    WOCBLAC 2

    Thanks in advance for any help.

    David
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Generating a file showing the difference

    Hi David.. Could you please confirm the input & output data you have attached in sheets.... i think there's a difference ...

    Column D contains QTY & not ID.. i am puzzled
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Generating a file showing the difference

    Sorry for the confusion, in the Compare.xls doc column A = column B quantity and column C = column D quantity. If the item in column C has a greater quantity than the item in column A then I need to display the difference in ExpectedResultFile.xls‎

    Thanks for taking a look.

+ 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. Difference from not showing up when filtered
    By mga8402 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2013, 06:51 PM
  2. [SOLVED] generating difference between unique combinations of datasets
    By digger1 in forum Excel General
    Replies: 3
    Last Post: 08-08-2012, 06:09 AM
  3. Pivot, Generating Difference Report , Deleting Selective Rows
    By sbaraily in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2011, 06:32 AM
  4. Showing a difference between values
    By MattG in forum Excel General
    Replies: 9
    Last Post: 09-14-2009, 05:02 PM
  5. showing difference value with out going over ref cell
    By aprils280zx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2007, 07:33 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