- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
formula to separate data from one field to two field
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-12-2012 02:09 PM
In payroll there is only first name field which includes middle initial and period. Need to be able to take John A. (every employee with middle initial has a space between first name and ends with period) and split into two fields one for John and one with just the A and not the space for middle initial. similiar I need to separate last name field which contains last name and suffix so for example Smith III needs to be two fields one with Smith and one with III (every last name with suffix is separated by a space)
Re: formula to separate data from one field to two field
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-12-2012 02:26 PM
Assuming you are talking about crystal reports...
FirstName:
if InStr({PR1_EmployeeMaster.FirstName}," ")>0 then Left({PR1_EmployeeMaster.FirstName},InStr({PR1_Emp
MiddleInitial:
if InStr({PR1_EmployeeMaster.FirstName}," ")>0 then Replace(Mid({PR1_EmployeeMaster.FirstName},InStr({
The other two will be similar.
Re: formula to separate data from one field to two field
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-13-2012 06:04 AM
Thanks that worked!


