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

Reading data on the left of a hiphen

Status
Not open for further replies.

wangui1981

IS-IT--Management
May 9, 2008
72
KE
I need a formula that can help me separate values from the the rest.
My data has these segments '20-00-99005-00'.I need a formula that will return only '20-00-99'as this is the unique character in my data.Anyone who can help?
 
If the first two segments vary in length, you could use SPLIT based on the hyphen, then re-join the first two and the first two characters of the third item, using LEFT.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top