If row count is > 1 use subtotal else do not???

Larry

New Member
Joined
Apr 4, 2002
Messages
29
Could someone help me with the code for this? I have a list of part numbers, that may reoccur depending on other criteria, all of which need subtotals, but if there is only one row of a particular number, I do not want a subtotal.

Any help will be greatly appreciated.

Thanks,

Larry
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Larry,
Could you give us a little more information to work with? Maybe copy a few rows of data and someone will be able to help you.....

Denny
 
Upvote 0
Below is a sample of my data with subtotals; however, I do not want subtotals if there is only one occurance of a part number as with part# 38002 below.

Any info will be appreciated.

Part # Brand Qty
38903 40038903 147
38903 45138903 200
38903 49038903 200
38903 Total 547
38002 45138004 309
38002 Total 309

Thanks,

Larry
This message was edited by Larry on 2002-04-11 08:31
 
Upvote 0
On 2002-04-11 08:30, Larry wrote:
Below is a sample of my data with subtotals; however, I do not want subtotals if there is only one occurance of a part number as with part# 38002 below.

Any info will be appreciated.

Part # Brand Qty
38903 40038903 147
38903 45138903 200
38903 49038903 200
38903 Total 547
38002 45138004 309
38002 Total 309

Thanks,

Larry
This message was edited by Larry on 2002-04-11 08:31

are they always together?
 
Upvote 0
Yes, they are always together.

Thanks,

Larry
This message was edited by Larry on 2002-04-11 09:43
 
Upvote 0
Larry,
I don't know if this is any help but if you put you part number in c1 this will give you a total for that part number. Maybe something you can build from.

=SUMIF(A1:A5,C1,B1:B5)

adjust range to fit.......

Denny
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,923
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top