+ Reply to Thread
Results 1 to 2 of 2

Match values and display row difference under column

  1. #1
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Match values and display row difference under column

    Hello,

    I would like to compare each range with all of its previous ranges, find the matched values and display the row difference under the appropriate column.
    I am attaching an example sheet as its a little difficult to describe.

    The example uses 7 values in the ranges that are being checked. However I also have sets of data where the ranges have 4 values, 8, 10 values, 12 values etc. If it is possible to help me with a UDF where I can use a formula to select the data it would be most convenient. Please do let me know if I am not being clear at any point in the example.

    Thank you for looking,
    Sans
    Last edited by sans; 06-01-2012 at 04:04 AM.

  2. #2
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: Match values and display row difference under column

    You can use an array formula to do this type of calculation. For example, {=COUNT(IF($C14:$I14=$C13:$I13,1,FALSE))} in cell L14 in your example will return 1 as the count of matches with the row above. This is not quite what you want and of course you need to repeat the calculation for all preceding rows. However, I imagine that this can be done using a combination of array formulae and VB but that's currently a step beyond my level of expertise.

    Anyway, maybe this is enough to get you started.

    Regards, AB

+ 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