+ Reply to Thread
Results 1 to 10 of 10

How to identify pairings and repeats in population data

Hybrid View

  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to identify pairings and repeats in population data

    Try this:

    =IFERROR(IFERROR(INDEX($D$1:$D1, MATCH(A2&"-"&C2, INDEX($A$1:$A1&"-"&$C$1:$C1, 0), 0)), INDEX($D$1:$D1, MATCH(C2&"-"&A2, INDEX($A$1:$A1&"-"&$C$1:$C1, 0), 0))), MAX($D$1:$D1)+1)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Registered User
    Join Date
    09-06-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    Office:Mac
    Posts
    5

    Re: How to identify pairings and repeats in population data

    Thanks very much for your help. This assigns the a unique pair_ID perfectly.

    Is there any way for the formula to also identify the pair further down the spreadsheet to save me having to add everything twice when a line contains the identical ID numbers for both birds and the same year?

    For example, imagine columns C and D have no contents and I enter 'EF70113' into cell C2. I would like the formula to search all of column A for 'EF70113' and assuming column B contains '1977' as per line 2, it enters 'ED81312' into column C and also copies the pair_ID of '1' into column D for that corresponding line.

    Essentially, as I complete line 2 in the example, line 5 will be completed also.

+ 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. Replies: 6
    Last Post: 12-09-2012, 09:00 PM
  2. Replies: 0
    Last Post: 07-10-2012, 08:37 AM
  3. Formulae for: 4 most repeats,4 least repeats in a series of numbers
    By Sedge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2010, 04:56 AM
  4. Replies: 3
    Last Post: 07-04-2008, 07:42 PM
  5. Repeats of data
    By rdubya in forum Excel General
    Replies: 1
    Last Post: 09-16-2007, 10:02 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