+ Reply to Thread
Results 1 to 3 of 3

Best method to merge two sets of data to show unique items

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Best method to merge two sets of data to show unique items

    I have a situation where a file is tracked monthly and items change from month to month; however, I need to compile the data and show either totals or differences between month to month. I'm currently doing this manually and wanted to know if there's a simpler way to do this in Excel.

    On the sample file attached (data also shown below). There are 3 sheets: Jan, Feb and Total. In this example, Jan and Feb are manual files and the Total tab is what needs to be derived. Note that Item B does not exist in Feb and Item D does not exist in Jan:

    January 2012		
    		
    Starting Number		100
    	Item A	29
    	Item B	35
    	Item C	17
    	Total Items	81
    Difference		19
    
    February 2012		
    		
    Starting Number		127
    	Item A	26
    	Item C	26
    	Item D	39
    	Total Items	91
    Difference		36
    
    Total		
    		
    Starting Number		227
    	Item A	55
    	Item B	35
    	Item C	43
    	Item D	39
    	Total Items	172
    Difference		55
    I've played with an intersect formula (because actual file is more complex, for example, the items would be broken out by sub values in different columns; therefore, requiring an intersect), which will show items that exist in both, but have been unable to find a solution when there isn't a match and new items exist on one or the other.

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by mcmuney; 01-17-2012 at 03:48 PM.

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

    Re: Best method to merge two sets of data to show unique items

    Is your attachment in the same format as your real file? If not,its better you attach the sample file which reflects the real file.
    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]

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Best method to merge two sets of data to show unique items

    Don't know it's the best way of merging data but this is one way.

    Run macro "Combine_data". Will work for any number of sheets asuming they all have the same layout as in your example and that the "Total" sheet is the last sheet.

    Alf
    Attached Files Attached Files
    Last edited by Alf; 01-28-2012 at 12:45 PM.

+ 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