+ Reply to Thread
Results 1 to 5 of 5

Need to create formula to merge individuals in field if they share last name.

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Need to create formula to merge individuals in field if they share last name.

    Hello all -

    Here's the problem. I'm having to come up with a massive mailing list, and need to be able to create a format for the recipient name in the address field.

    If two of the people in the household have the same last name, I need the formula to return the recipient names in the following format: "John & Sarah Smith".

    But if the two people of the household do not share the same name, I need the formula to return the recipient names in the following format: "Nick Johnson & Katie Jewell".

    Each household is a separate row. First names and last names for the two individuals are all in separate columns.

    I've attached a spreadsheet (with a few examples filled in) as a sample.

    Help!

    E
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Need to create formula to merge individuals in field if they share last name.

    try this one
    =B2&IF(D2=E2,""," "&D2)&" "&"&"&" "&C2&" "&E2

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need to create formula to merge individuals in field if they share last name.

    Hey Eurus (again),

    Put his in A2 and pull it down:

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-19-2017
    Location
    Washington
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20164) 64-bit
    Posts
    29

    Re: Need to create formula to merge individuals in field if they share last name.

    Thank you, this works great!

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Need to create formula to merge individuals in field if they share last name.

    or try the other way
    =SUBSTITUTE(CONCATENATE(B2," ",D2," ","&"," ",C2," ",E2),B2&" "&E2,B2)

+ 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. Create bar chart with total amount and counting individuals
    By diehard87 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2017, 05:34 PM
  2. Create individuals' Timetables from Schedule of Global Data
    By hokkaido19 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-10-2016, 04:20 AM
  3. Replies: 2
    Last Post: 12-24-2015, 02:30 PM
  4. [SOLVED] PowerPivot: Merge Month Field and Year Field Into a Date Field
    By mo4391 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-17-2015, 11:59 AM
  5. Can we use OR formula with IF in the merge field....
    By adil.master in forum Word Formatting & General
    Replies: 4
    Last Post: 09-30-2013, 04:19 PM
  6. Email merge unique messages to groups and individuals
    By RagingWahoo in forum Excel General
    Replies: 3
    Last Post: 10-12-2012, 01:15 PM
  7. create combined list, summing scores for individuals
    By tamskinner in forum Excel General
    Replies: 2
    Last Post: 02-16-2012, 10:57 AM

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