Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formulas to breakup full name field into first and last?

Status
Not open for further replies.

pokerace

Technical User
May 24, 2005
118
0
0
US
C10
Interbase

One of my data sources is an excel spreadsheet where the name field is "last, first". I want to create one formula in Crystal to pull just the last name and another formula to pull just the first name. What is the best way to do that?

Thanks.
 
Or just using the split function as synapsevampire uses in other post


For the first:
split({table.field},",")[1]

and for the second:
split({table.field},",")[2]
 
Ammend the second formula slightly to remove the space:

and for the second:
trim(split({table.field},",")[2])

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top