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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula needed to exclude data in a field 1

Status
Not open for further replies.

Jonesxx

Technical User
Jul 14, 2004
71
GB
Hi

Using Crystal 8.5, I'm trying to create a formula that brings back everything to the left of a string field and excludes the deatils to the right e.g:

Joe Bloggs (Ireland)

I only want to get back Joe Bloggs, Ireland should be excluded

The table and field used are Sales.Salesman

Any help with the formula syntax would be great

Thanks v m
 
Try this:
Code:
If Instr({Sales.Salesman},"(") > 0 then
Left({Sales.Salesman},Instr({Sales.Salesman},"(")-1)
else ({Sales.Salesman}


Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top