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!

Remove 1st Character 1

Status
Not open for further replies.

YANKRAY

Technical User
Nov 7, 2003
283
Using CR10.

I have a field which contains Item Numbers.
At some point, item numbers were entered with a ^ preceeding the actual Item Number.

How can I create a formula that will remove the ^ from the beginning of an item number (only if there is one) and giving me the remainder of the string as the item number?

Examples:

Current Item Number result:

802167-29DLT
80317-ATT
^80414-DL4
^90225989-3

Requested Item Number result:

802167-29DLT
80317-ATT
80414-DL4
90225989-3
 
@Trim

If left({YOurfield}, 1) = "^" then mid({YOurfiled}, 2, 20) else
{YOurfield}

Replace 20 with max size of your field

Ian
 
Ian - Exactly what I needed. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top