+ Reply to Thread
Results 1 to 4 of 4

find duplicates, combine differences

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    far away
    MS-Off Ver
    2010
    Posts
    11

    find duplicates, combine differences

    i have downloaded botanical indexes for multiple counties and i am trying to combine them. i want to compare the 'genus' and 'species' columns and if both are equal (they are the same plant), i would then like for the respective counties to be combined into a single cell.

    for what it is worth, i have indexes for ~9 counties which is a list of plants ~7000 long. i suspect that once duplicates are removed, the list will be closer to 2500 individual species.

    for example:

    Genus Species County
    Vicia caroliniana C
    Vicia caroliniana Ch
    Vicia caroliniana M
    Vicia caroliniana S
    Vicia grandiflora M
    Vicia grandiflora S
    Vicia hirsuta G
    Vicia hirsuta S
    Vicia lathyroides S
    Vicia minutiflora C
    Vicia sativa Ch
    Vicia sativa M
    Vicia sativa S
    Vicia tetrasperma C
    Vicia tetrasperma Ch
    Vicia tetrasperma G
    Vicia tetrasperma M
    Vicia villosa Ch
    Vicia villosa G
    Vicia villosa M
    Vicia villosa S

    becomes

    Genus Species County
    Vicia caroliniana C, Ch, M, S
    Vicia grandiflora M, S
    Vicia hirsuta G, S
    Vicia lathyroides S
    Vicia minutiflora C
    Vicia sativa Ch, M, S
    Vicia tetrasperma C, Ch, G, M
    Vicia villosa Ch, G, M, S

    Many thanks for your help. Go Science!
    Last edited by eusair; 09-24-2014 at 11:53 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: find duplicates, combine differences

    This can be easily done with the "=ARLOOKUP" UDF. See link below.

    http://www.excelguide.eu/120/810/120/EN_ARLookUp.html

  3. #3
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: find duplicates, combine differences

    Here's a sample file for your example. I had to create some helper columns for the lookup to work.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-22-2013
    Location
    far away
    MS-Off Ver
    2010
    Posts
    11

    Re: find duplicates, combine differences

    hey, that's fantastic! thank you, hoyasaxa. i'm glad you provided that attachment b/c i was just about to ask for a little extra help. but that made all the difference and i'm well on my way. thanks again!

+ 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. Combine duplicate rows with conditions
    By jamesforpm in forum Excel General
    Replies: 11
    Last Post: 07-25-2014, 03:55 AM
  2. VBA - Combine Duplicate Rows into One and perform calculation
    By polinew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2013, 02:30 PM
  3. Combine Duplicate Rows and Combine Data in Rows
    By cherylmcgk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2013, 12:04 PM
  4. combine/merge 2 rows together using duplicate colomn
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2013, 03:08 PM
  5. Find and combine duplicate rows
    By treva26 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2007, 09:14 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