#1   Report Post  
sjs
 
Posts: n/a
Default Counting question

Hello,

Column 1 contains a product ID and could contain just one entry or several
entries depending upon how many reels of that product ID we have in
inventory. Column 2 has the reel quantity in feet. I need to get a total
quantity in feet for each product ID.

Column 1 Column 2
Prod ID Feet
ABC 100
ABC 150
ABC 200
XYZ 50
XYZ 50

I need the total product, in this example ABC = 450 ft and XYZ = 100 ft. I
have over 3000 lines and over 600 products I can't do it manually. I think a
pivot table would do it but I'm not sure...

tks,
steve
  #3   Report Post  
h317
 
Posts: n/a
Default

To use sumif, you have create 600 sumif forumulaes, which is tedious.

A quick one: Sort on column 1 and do a subtotal (choosing Data - Subtotal
from the menu bar). Collapse the detail and you have 600 lines subtotal lines
to print.

"sjs" wrote:

Hello,

Column 1 contains a product ID and could contain just one entry or several
entries depending upon how many reels of that product ID we have in
inventory. Column 2 has the reel quantity in feet. I need to get a total
quantity in feet for each product ID.

Column 1 Column 2
Prod ID Feet
ABC 100
ABC 150
ABC 200
XYZ 50
XYZ 50

I need the total product, in this example ABC = 450 ft and XYZ = 100 ft. I
have over 3000 lines and over 600 products I can't do it manually. I think a
pivot table would do it but I'm not sure...

tks,
steve

  #4   Report Post  
Alan Beban
 
Posts: n/a
Default

sjs wrote:
Hello,

Column 1 contains a product ID and could contain just one entry or several
entries depending upon how many reels of that product ID we have in
inventory. Column 2 has the reel quantity in feet. I need to get a total
quantity in feet for each product ID.

Column 1 Column 2
Prod ID Feet
ABC 100
ABC 150
ABC 200
XYZ 50
XYZ 50

I need the total product, in this example ABC = 450 ft and XYZ = 100 ft. I
have over 3000 lines and over 600 products I can't do it manually. I think a
pivot table would do it but I'm not sure...

tks,
steve

if the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, then array
enter into C2:C700

=ArrayUniques(IF(A2:A700<"",A2:A700,""))

and enter into D2:D700

=SUM(vlookups(C2,A$1:B$700,2)) and copy it down as far as needed

Alan Beban

  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 1 Dec 2004 09:21:07 -0800, sjs wrote:

Hello,

Column 1 contains a product ID and could contain just one entry or several
entries depending upon how many reels of that product ID we have in
inventory. Column 2 has the reel quantity in feet. I need to get a total
quantity in feet for each product ID.

Column 1 Column 2
Prod ID Feet
ABC 100
ABC 150
ABC 200
XYZ 50
XYZ 50

I need the total product, in this example ABC = 450 ft and XYZ = 100 ft. I
have over 3000 lines and over 600 products I can't do it manually. I think a
pivot table would do it but I'm not sure...

tks,
steve


A Pivot table should do fine.

Drag the Prod ID to Rows; and drag the Feet to Data.


--ron


  #6   Report Post  
Eagle
 
Posts: n/a
Default


You could do a unique filter on Column 1 to summarise all the Product ID's
into a single list

DataFilterAdvanced FilterCopy to Another LocationUnique Records Only

Then use a sumif function in the coloumn adjacent to the filtered list to
determine how much is in each product ID

=SUMIF(A:A,D2,B:B)

"sjs" wrote in message
...
Hello,

Column 1 contains a product ID and could contain just one entry or several
entries depending upon how many reels of that product ID we have in
inventory. Column 2 has the reel quantity in feet. I need to get a total
quantity in feet for each product ID.

Column 1 Column 2
Prod ID Feet
ABC 100
ABC 150
ABC 200
XYZ 50
XYZ 50

I need the total product, in this example ABC = 450 ft and XYZ = 100 ft.
I
have over 3000 lines and over 600 products I can't do it manually. I
think a
pivot table would do it but I'm not sure...

tks,
steve



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic pie chart question KayR Charts and Charting in Excel 4 January 23rd 05 08:16 PM
Display question. Chiccada Excel Discussion (Misc queries) 1 December 2nd 04 12:46 AM
Display question. Chiccada Excel Discussion (Misc queries) 2 December 1st 04 03:39 PM
Paste Special Question Kevin Excel Discussion (Misc queries) 3 November 30th 04 11:34 PM
Simple VBA question Mark1 Excel Discussion (Misc queries) 1 November 30th 04 10:25 PM


All times are GMT +1. The time now is 05:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"