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

Removing the Last Character in a Field

Status
Not open for further replies.

aj3221

Technical User
May 14, 2008
79
US
Good morning!

I have a string field where the data can vary in length & I need to remove the last character of the field.

Example:

table.field value is currently 12548798

I need to return in my formula: 1254879

Thank you in advance for any assistance!
 
create a formula:

left({yourfield},length({yourfield})-1)
 
I have another field where I have to get rid of the first 3 characters?

BAY4895

and I need 4895.
 
I thought I had it with:

Right({arss.route}, 5)

But there are spaces in the field so it varies.

The field can be up to 7 characters. But there are spaces and / or dead spots.

MW WF TH

I would like to grab the WF TH of this string.

Sometimes it could be:

MW WF R

I think maybe mid would work. I want to grab positions 4-7.
 
Mid worked. I walked myself right through that one :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top