Results 1 to 4 of 4

vba to calulate matching number between rows

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    vba to calulate matching number between rows

    In sheet FAMILY we details of family members with family ID(B), Family member id(C), Title (D), independent family Code (E ) and Number of family member (F)

    1) In column B one ID will be same for one family and in column C against one family the family members will be having different member id as per number of family members in column (F ) and independent family code (E ) contains one code for one family.

    2) Common id (B) will be any one id from the one family member id (C). For example row number 2 to 5 is one family and family code is 035362 because it belongs to its family member in ROW number 3.
    Other example is row number 7 and 8. Both the rows are one family and family code is 008561 because it belongs particular family head.

    Task:

    In some family the common id of one family might be the id of other family’s head or member’s as given in point no.2. Now in such cases I want to give one unique Joint family code in column G(unique should start from number 1).

    Please refer below example and colored marked cells in attachment. Please note that the total number of family members in matching families might be same or might not be same.
    Row 2 to 4 is one family with 3 members and its joint family is row number 22 to 24.

    Please provide vba assign Joint family code in Column G
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] calulate number of days in number of months.
    By visha_1984 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-28-2013, 07:43 AM
  2. Matching Data between Files , Deleting Matching Rows
    By nem_vdoxx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2013, 11:00 AM
  3. [SOLVED] How to calulate number of hours daytime and evening
    By lisaopar in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-04-2013, 08:36 AM
  4. Compare for matching names in Column A and calulate variance on a match
    By stashu117 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2013, 11:02 AM
  5. Replies: 2
    Last Post: 12-01-2009, 01:57 PM
  6. Replies: 9
    Last Post: 01-22-2009, 06:01 PM
  7. Matching rows of data using number.
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2005, 09:05 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