+ Reply to Thread
Results 1 to 9 of 9

Flip names of salutation

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Flip names of salutation

    I have a list of salutations, as attached.
    I want to flip the order of the cells, e.g. Diedre and Aaron in b2 to become Aaron and Diedre in d2. I made an attempt which is not working, see d2.
    The reason I am doing this is so that I can compare C2 and D2. If they are the same, it means both the primary salutation and spouse primary salutation cells are formatted correctly, and I can eliminate them from checking. (the actual list is 3600 rows long).
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Flip names of salutation

    Try this one

    in C2 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    or this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Flip names of salutation

    Try this in D2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Flip names of salutation

    Another way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Flip names of salutation

    Thank you, AlKey. It seems to be diong the trick very nicely. Can y ou explain to me what is going on, as I am not familiar with "substitute". Thank you.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Flip names of salutation

    The second formula that I suggested uses TRIM function, RIGHT function and SUBSTITUTE.

    =TRIM(RIGHT(SUBSTITUTE(B2," ",REPT(" ",99)),99))&" and "&A2

    substitute looks for the last space from the right to get the last word and replaces the rest of the string with bunch of spaces. Then I add &" and "&A2

  7. #7
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Flip names of salutation

    Thanks, I get the basic drift.

  8. #8
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Flip names of salutation

    Thank you, FlameRetired.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Flip names of salutation

    You are welcome. Thank you for the feedback.

+ 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: 17
    Last Post: 07-26-2014, 04:46 PM
  2. Salutation
    By cioccracer1 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-22-2013, 01:47 AM
  3. Salutation
    By lardog98 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-17-2012, 03:24 PM
  4. Salutation help
    By NED in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2007, 10:16 AM
  5. want to ask salutation on a mailing list.
    By lupetunes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-04-2006, 12:35 PM
  6. How can I remove Salutation
    By m_ravindran in forum Excel General
    Replies: 3
    Last Post: 12-09-2005, 10:46 AM
  7. How can I create a formula for Salutation
    By cs_vision in forum Excel General
    Replies: 6
    Last Post: 10-07-2005, 07:31 PM

Tags for this Thread

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