+ Reply to Thread
Results 1 to 3 of 3

formula for classifying data from facebook

  1. #1
    Registered User
    Join Date
    09-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    4

    formula for classifying data from facebook

    Hi everyone, new user here. I'm an academic and am dabbling in a new project. I'm trying to measure the diversity of social networks in a part of the world where ethnicity can be identified by surname. I'm using publicly available data from Facebook. I've been doing this for a while using a cumbersome method, but I suspect that there may be a simpler solution using excel. Unfortunately, I haven't found an approach that works yet, hence the post here. Let me briefly explain what I'm trying to do.

    I have one spreadsheet for each study subject. The country I'm doing this work in has three main ethnic groups. In column A, I have the 100+ most common surnames from ethnic group A. In column B, I have the 100+ most common surnames from ethnic group B, and in column C, the 100+ most common surnames from ethnic group C.

    In column D, I paste the names of the subject's social network (in other words, everyone on their friend list). What I want to do is classify the ethnicity of each friend. To minimize manual work, the first cut would be to determine whether the names in column D appear in columns A, B, or C.

    In short, I need a formula that will mark a "1" (or something similar) when a name in column D appears in column A (I'll use the same formula to check for matches with columns B and C), and "0" when it doesn't. The slight complicating factor is that columns A, B, and C have only surnames, while D will have surnames, given names, and nicknames. So the formula should code a match if one of the names in column D is match with A, B, or C (in other words, the cell contents will never be a complete match, because column D will never have only surnames).

    I'd really appreciate any help on this. I've spent quite a while looking for solutions, but nothing has worked reliably. Thanks very much in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: formula for classifying data from facebook

    Hi and welcome to the forum

    if we can isolate the last name, this should be fairly easy. can you provide a sample list of names from all 4 columns for us to work with?
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: formula for classifying data from facebook

    Thanks for the quick reply. A sample file is attached.

    D1 should be a column A match
    D2 a column C match
    D3 no match
    D4 a column B match
    D5 a column A match

    Unfortunately it's not possible to isolate the surname is column C; because of the structure of names, it can come first or last.

    Thanks again!
    Attached Files Attached Files

+ 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. A Formula for classifying groups of numbers into a letter.
    By surfer1 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-05-2013, 09:48 AM
  2. Classifying Data by use of an IF AND Statement
    By analyst1 in forum Excel General
    Replies: 6
    Last Post: 09-15-2010, 03:37 PM
  3. Importing data from facebook.com
    By skatmandu2002 in forum Excel General
    Replies: 1
    Last Post: 10-19-2008, 09:08 PM
  4. [SOLVED] Classifying Data
    By Mad Dog in forum Excel General
    Replies: 1
    Last Post: 10-06-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