Need to remove LAST NAME only in merged letter

Here's my quandry. Client supplied a mail list with full name in column one. It's okay for the addressing portion, but in the salutation she wants to remove just the last name. I already merged my 2900 name list.
So I have:
Mary and John Smith
123 Main St.
Your Town, State Zip
Dear Mary and John Smith,
Then body of letter.
I would need a way to search for any space and word before the comma and return in this one line only. Remove the space and last name so the comma slides over after John. I don't want to strip out any other words before a comma. I checked and I believe no line in the letter has a hard return following a comma.
Doable? If so, how?

Or you could search for \s[\l\u|\-]+(,)$ and replace with $1 to remove the last name and leave the comma next to the last word in the first name. this must be done as a find/change rather than a GREP style.
Colin's method is nice in it can be a style, but it leaves "space" between the last visible name and the comma because the text is still present. Colin "escaped" the comma in his version, too, but is seems to make no difference in my test.

Similar Messages

  • My Workspace dispaly my last name only

    In Outlook Beehive, my workspace display name shows my last name only which causes all my sent mails to as From: Hamdy instead of Nesreen Hamdy.
    Also in the Beehive Buddy list all my colleagues transfer from Managers and Peers header to Unfiled
    My email: [email protected]

    I got them sorted correctly...the thing is that the phone seems to think the first name of the contact is the persons last name + the comma...very strange...

  • Need to split last name from full namek to sort

    I have a column of names, either "John & Jane Doe" or "Jane Doe". I need to sort on the last name. How do I split off the last name to do a proper sort?

    Enhanced again
    --[SCRIPT Nom_Prénom"]
    (* take care of coupound names as
    "Charles de Gaulle" --> "Charles" and "De Gaulle"
    "William De Foe" --> "William" and "De Foe"
    "Walter John de la Mare" --> "Walter John" and "De la Mare"
    "François de La Rochefoucauld" --> "François" and "De La Rochefoucauld"
    set avant to the clipboard as text
    if avant is not "" then
    set avant2 to every paragraph of avant
    repeat with i from 1 to count of avant2
    set ti to item i of avant2
    set offs to offset of " de " in ti
    if offs > 0 then
    set ni to "De " & text (offs + 4) thru -1 of ti
    set ti to text 1 thru (offs - 1) of ti
    else
    set AppleScript's text item delimiters to " "
    set mots to every text item of ti
    set mi to items 1 thru -2 of mots
    set ni to item -1 of mots
    set ti to mi as text
    end if
    set AppleScript's text item delimiters to ""
    set item i of avant2 to ti & tab & ni
    end repeat
    set AppleScript's text item delimiters to return
    set avant to avant2 as text
    set AppleScript's text item delimiters to ""
    set the clipboard to avant
    end if
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE mercredi 12 décembre 2007 13:59:8)

  • How to remove mandatory field for Last Name in Personal Data Editing Screen

    Hello All,
    CUrrently we are using BP_ ERP5ESS1.31 SP5 & SAP_ESS  603 SP5.
    All my ESS Services are Displaying fine and working from Portal.I am having the requirement like I need to make Last Name as Non-Mandatory field in Personal Data. While Editing the PD Screen, there  i will find the * mark for Last Name filed, i checked through the Global Personalization Make as Mandatory is Not Personalized its showing, i think its defualt prpoerty,so i am unable make any changes from Portal w.r.t Global Personalization.
    I checked in SPRO-- Personal Admin> Custmomizing User Interfaces>Change Screen Modifications, there i find the respective Module pool for those Infotypes and country Specific..
    I cheked forModulePool MP000200--> P0002 and Variable Key-40(For India)  P0002 - NACHIN -- LastName only OF Radio Button is Selected all other Rado buttons are not selected.
    I Checked in V_T588MFPROPS view there for 0002 Infotype P0002 -- NACHN Mandatory check box is Checked all other check boxes are Unchecked.
    How to make that Last Name field as Non-Mandatory in Personal Data Edit Screen, where i need to make the changes.'
    Please list out the Steps..Where i need to do the configuration. And i assigned all the required ESS roles on the backend.
    Thanks in Advance
    Adapag

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • Need to search contacts by last name

    I need to know how I can only search the contacts by last name. As it is right now, it search last name and first name. I only need the last name.
    Any ideas would be greatly appreciated.
    Post relates to: Treo 650 (Sprint)

    I am not sure I understand you? Do you mean when using the search function (Option key and magnifier) or when using the lookup function in the Phone, SMS and MMS applications?
    In the case of the Lookup function, I described how to use last name only in that context.
    In the case of Find, you cannot limit the field to which the search applies. You can only control the order of application databases to seach. It will search the database of the currently open application first. If you need a more advanced Find, I recommend www.intelligentfind.com.

  • In address book, if I try to show first name before the last name, why do only a few names change?

    Using address book on 10.7.2, when I go to "preferences" to change the display order between showing the "first name" before or after the last name, only about 25% of names will change.  The rest all stay in the same order.   Any ideas? 

    By default any outgoing email has the addresses saved in the Collected address book. You can turn this option off if you want.

  • Remove last 3 char ..

    Hi ,
         I need to remove last 3 char from my varible which is char 30.
    For example : WERKS = 1000 and .
    I need to remove last 3 char (and) from the above varibale .Kindly guide this
    Regards,
    VC

    Hi veerachamy,
    Just copy this code..it will work fine even if the field changes dynamically..
    I took w_char as 30 char..u can give ur field name there...
    data:
    w_char(30) type c value 'asdfghjklpoiu',
    w_tmp(30) type c,
    w_tmp1 type i.
    w_tmp1 = strlen( w_char ).
    w_tmp1 = w_tmp1 - 3.
    w_tmp = w_char+0(w_tmp1).
    write: w_tmp.
    Hope it resolves the issue...
    Regards
    Kiran

  • Pagnation by the first letter of the last name

    Hello,
    I have a report that is Grouped by Cities and then Last Name.  So New York is the city and then all the customers are listed below in Ascending order starting with the first customer who last name begins with the letter A and continues thru to Z and then the next City Starts with it's customers listed A thru Z.
    What I need now is to have the report put the customers on a new page when the first letter of the last name changes.  So New York will have it's cutomers with last names that start with A on page 1 and end on page 2 and New York customers with last names that start with B will start on page 3 and end on 5 and so on.  How do I achieve this?
    Thanks,
    Heather

    So if you have a last name field, and the names are in the detail section simply do this:
    1 - Go to the section expert for the detail section.
    2 - Click on the X-2 button to the right of New Page Before
    3 - In the formula editor use the following (with your last name field instead of my generic fieldname):
      not onfirstrecord;
      LEFT (, 1) <> PREVIOUS (LEFT(, 1))
    4 - Save & close the formula and OK out of the section expert.

  • User first/last name assigned to user id?

    Hi All,
    Is there a table out there which links User Idz to First?last name of user?
    let me know
    ciao!

    usr01 usr02 and addr are the main tables.

  • Need ideas on how to display a footer on last page only on a dynamic document

    I have a document that is similar to this...
    Dear Customer,
    paragraph 1 content dkdk dkd alkfdjaldkjfa d
    dlkfajd;lkfja;dlkfj a.
    [repeating subform transaction data]
    Closing paragraph please contact us using one of the numbers listed below
    contact info
    The problem I am having is that I want the Contact Info block to appear as a footer on the last page only.  In addition, I want the Closing Paragraph to be on the same page as the contact info block.  The contact info is currently anchored to the bottom in the design view and when the transaction data repeats, it incorrectly pushes the closing paragraph into the contact area.  So basically if the closing paragraph starts to bleed into the contact info block, I want both closing paragraph and contact info to break to a new page.  I don't want to reduce the height of the content area because I want the transaction data to have the ability to display in the full length of the height if needed. 

    Every time you add an instance to you subform, you should hide the footer in the previous instance
    e.g.
    when adding an instance
    var intCount = _subform.count;
    _subform.addInstance(1);
    Reference_syntax.resolveNode("subform[" + intCount.toString() + "].footer").presence = "hidden"
    when removing an instance if applicable
    _subform.removeInstance(x);
    var intCount  = _subform.count - 1;
    Reference_syntax.resolveNode("subform[" + intCount.toString() + "].footer").presence = "visible";

  • Newbie wants to remove first name from cell that contains "FIRST LAST"

    Any help is appreciated, I'm pretty much a complete newb with a spreadsheet. I have a sheet with sales prospects. One cell has the the full name in a cell, i.e. "John H. Doe". Some of the cells have a period after the middle initial. Some cells have no middle initial. What I am wanting to do is to create a new cell that only contains the first name. If it makes it any easier, I do have another cell that contains only the last name. When explaining how to do this, I ask that you dumb it down for me! I have about 850 rows. I'll need instructions completely in steps. I don't know how to apply a function to a new column. Thanks in advance! I know I'm asking alot.
    Message was edited by: Blacktop711

    BT,
    It would help you to get acquainted with Numbers if you read the User Guide PDF. It's written at a beginner level, not like a reference manual.
    This solution assumes that the full name is in column A. If not, you can substitute your true column for the "A"s in the formula. Click the label on Column A to select it. In the Table Menu, select Add Column After, to make a blank column to the right of the full name column. Let's assume that your first row is a Header Row, so you won't have data or equations in the first row. In the second row of the new column, paste this expression: =IFERROR(LEFT(A, FIND (" ", A)-1), "") (Copied from here)
    That cell that you pasted the expression into should now show the first name of the person in row 2. Now select that row 2 cell and Shift-Click the last cell in that column so that all the cells from row 2 down are selected. Next select Insert > Fill > Fill Down.
    Now all your first names should be showing.
    Let us know if you have any trouble with this.
    Jerry

  • How doI change my last name on my bill and profile? Using maiden name, need to update to married name

    How doI change my last name on my bill and profile? Using maiden name, need to update to married name

    Yea its a good thing to update because 95% of the Time a Rep. may ask for the Primary owner of the lines and if your not that person you can't hardly do squat with it. Case in point with my With our Lines my Mom was the Primary owner and i couldn't do Anything with out them wanting to talk to her first. Getting a Phone, Making Changes, Check statuses, Heck there was one time i remember i couldn't even pay the bill not exaggerating there it was basically out of my Hands my Mom got tired of this and she changed it.. Now that i'm considered as second Owner and i can do as only my mom could there are a still a Few rare occasions that a Rep will ask for her on but for the Most of it i have free Range with the Account..  b33

  • Data Merge Where Same Last Name Swaps Other Fields

    I'm working on a data merge document of several thousand records (too many to efficiently rename anything by hand). In a record of employees, anyone who has the same last name as someone else gets their departments randomly scrambled among others with the same last name. So if there are two employees with the same last name, their departments are switched. If there are more, they are scrambled.
    I have 6 fields: First name, Last name, Box number, Phone extension, Department, and Job title. The only field that I am seeing problems with is Department.
    I have no idea why this is happened. It looks like it's all in InDesign. I really don't want to change these all by hand.
    The excel spreadsheet is accurate and has all the information arranged correctly.
    Any ideas?

    RawrArt wrote:
    I'm working on a data merge document of several thousand records (too many to efficiently rename anything by hand). In a record of employees, anyone who has the same last name as someone else gets their departments randomly scrambled among others with the same last name. So if there are two employees with the same last name, their departments are switched. If there are more, they are scrambled.
    I have 6 fields: First name, Last name, Box number, Phone extension, Department, and Job title. The only field that I am seeing problems with is Department.
    I have no idea why this is happened. It looks like it's all in InDesign. I really don't want to change these all by hand.
    The excel spreadsheet is accurate and has all the information arranged correctly.
    Any ideas?
    I can't guess why this happens; perhaps others on the forum know with some certainty.
    However, one workaround might be to create a unique identifier for each employee in a new column in the spreadsheet. After sorting the records as you like, use an Excel formula or Fill command to insert a sequential number for each row, in the new column's cell. Include the unique field in the merge in a tiny text frame, with white text color, or non-printing property.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Spotlight "Name Only" removed?

    I just noticed when doing a Spotlight search that the buttons for toggling the search by content or name only have been removed. This is a deal breaker for me at work when I am searching for specific file names and don't want a million other results. Any way to get this back?
    I know you can type Name: in the search field too but the other way is way more convenient if you need to flip back and forth.

    I've been fiddling with this a little bit, and have concluded that it is all simply messed up. You are supposed to be able to start typing in the Search box, and you can then get a drop-down menu of "tokens"--at the moment there are two, Filename or Everything. From the microscopic triangle in the darker blue part you can switch back and forth between the two:
    There are several things about this that just don't work right. You must type something before you can select one or the other, and you cannot add to what you started typing when you made your selection, but you can evidently then start typing over again--thus the "g" in the light blue part, followed by "gera" in the still active part of the Search box. So in the above I typed "g" then selected Filename, then started adding more with "gera" to begin narrowing the results--but I still got some items that just don't belong, they are evidently left-over from the plain "g" entry, although MOST plain "g" things don't show up. Just some. If I subsequently add another letter, so that I have "geran" then everything that shows up has all those letters in the file name, and "gallery.jp" and "Genesis.txt" disappear from the results. It just all seems a bit bizarre to me.
    Francine

  • Problem with Calendar and drag and drop a name to a Time spot with palm desktop. Full name does not appear only last name.

    Im having a problem with the palm desktop. When in “Contacts” and I list (LastName,First name) and then I move to the Calendar and drag and drop a name to a Time spot Only the LAST name of the Person appears. How can I fix this so that I can see there full name ?
    Also when If list (Company,Last Name) then go to calendar Some of my contacts are out of order but if I drag and drop them into the calendar day the full name appears. Is there any why of fixing this ? Or having it work properly ?
    Im running  XP pro
    Palm Desktop Version 4.1.4
    Post relates to: Treo 680 (Rogers)
    Message Edited by corrado on 07-21-2008 08:55 AM

    Any Idea how to fix the problem that I am getting when using the (Company,Last Name) and the contacts being out of order in the calander ? I have some last names starting with A then it goes to D then a B then a stack more A and none of then have a Company field filled out in them in them...
    Thanks for looking into that for me but it seems really stange to offer the option but not put in the first name in the calander when you drage the name over. I hope this is fixed in the future. Can anyony sugest another desktop platform I can use if I cant fix my problem with the   (Company,Last Name) problem?
    Post relates to: Treo 680 (Rogers)

Maybe you are looking for

  • Can not remove or delete a file from CD-RW or DVD-RW disk

    I have P305D-S8900 notebook. I have a problem to remove or delete an old file from CD-RW or DVD-RW disk. After I have selected the file and had try to trash the file a message showed up " disk is not writable." Why is this happen? Solved! Go to Solut

  • Upgrading: RH7 separate product or Tech Comms Suite

    Hi Everybody, I'm at a point now where I'm looking to upgrade to RH7. I also need a copy of Captivate due to some deadlines that have been set against me. These are the main two products I'm looking at. What I really want to know is who, on this foru

  • I lost the wifi in my 4s s pls. help

    I lost wifi connection alwayes i get "could not scan for networks" I restore it many times but i get the same things pls. help thanks

  • Form is not detected with Jaws (accessibility  program)

    Hello: I am working on one application implemented with Flex 3. I reviewed all the information about the accessibility options included on Flex and I applied it. Using Jaws we have the problem that in the the login section when we press the letter F

  • DVD Slideshow

    Hi I have created a slideshow in iPhoto & exported to iDVD. I then burned to DVD, however when I watch on a TV or through computer DVD player the following occurs: 1. Pictures do not fit on screen and titles are only half visible; 2. The picture tran