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

Variable Length String - Extract Middle Portion Multiple Delimeters

Status
Not open for further replies.

jpstrzoch

Technical User
Mar 24, 2004
59
US
Greetings,

I gave a formula that returns a string value. Typical results are shown below. The variable length nature of the formula is that it has a sales representative's first and last name following the warehouse identifier.

Example: {@Burst Conditional Formula}

WHSE 101 - James Pstrzoch
WHSE 201 - Jane Doe

What I need your assistance with is creating a formula to return the first name of the sales rep. In the first example the desired result would be, "James", and in the second, "Jane".

Can you help me please?

Thank you!
James J. Pstrzoch

 
Assuming the data is consistent, the following formula will return the 1st name of the sales rep:

Code:
Split(Split({Table.Data}, ' - ')[2], ' ')[1]

Hope this helps.

Cheers
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top