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

Need to group on change of string 1

Status
Not open for further replies.

boardburner

Technical User
Dec 23, 2003
77
US
CR10
I have to do a listing report on components {IPART.IPPART}in our inventory and I wish to "group" by any change in the first (4)digits in the part number {IPART.IPPART}. The part numbers are strings not an actual number.

Examp: 1004-235, 1004-387, 2000-658, 2001-897, 4002-264, etc. etc.

I wish to end up with group 1:
1004-235,1004-387
I wish to end up with group 2:
2000-658
I wish to end up with group 3:
2001-897
I wish to end up with group 4:
4002-264

Basically when anything changes in the first (4) characters I want to start a new group. This seems simple enough but I have a mind freeze going.

Thanks
 
Hi,
Create a formula:

@gstring ( Ok, maybe a bad choice)..
Code:
{IPART.IPPART}[1 to 4]

Group on this formula...



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top