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!

Use of substring

Status
Not open for further replies.

Malikto

Technical User
Jul 12, 2000
6
0
0
US
I have a field with 15 digits that I need to group by the first 3 digits only.&nbsp;&nbsp;Can someone help me with the formula for this?&nbsp;&nbsp;I believe I need to create a substring to group by but do not know how to do it.<br><br>Thanks
 
Probably easiest to create a formula field (Insert/Formula field/New)where the formula is something like:<br><br>LEFT({datasource.fieldname},3)<br><br>Then group by the formula field.
 
How can i get 3 digits out of a 13 digit number? The 3 digits i need are in the middle.
For ex; 0758830111999
In this case, i need only 111.
how can i do it? there is no substring function in Crystal Reports.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top