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!

grouping data and subtotal

Status
Not open for further replies.

ekr

Technical User
Jun 12, 2008
11
US
Hello-

I am trying to group data points to get a subtotal.

I have item numbers with 'suffixes' whose quantities I want included in a subtotal, but not grouped separately by item. For example,

item qty
8471 3
8471-1B 8
8471W 4

all should be in group "8471" and show a subtotal of 15.

I would like everything that starts with "xxxx" number to be included in the "xxxx" group, but the syntax is eluding me. I can't list all the item numbers individually in the formula- there are several hundred.

I've looked at a similar thread here but I can't figure out how to get my data together with such a large group of items and suffix variations.

Thanks in advance for any assistance - E. Rice, CR 8.5, .dbf database
 
left({table.item},4)

Insert a group on the above formula.

-LB
 
A couple additional questions for you.

Are all the item suffixes limited or restricted to 4 numbers "example like 8471"?

Will there always be a space after the item suffix and the Qty?

You could make 2 formulas and use one for grouping(item) and one for your subtotaling.(qty)

create a formula called Item
left({xfield}, 4)

results = 8471

then create a formula called Qty
Right({xfield}, 2)

results = 2
 
thank you so much for the assistance! works perfectly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top