PC Review


Reply
Thread Tools Rate Thread

How to summarize the total weight...

 
 
rantz
Guest
Posts: n/a
 
      9th Dec 2005
I need to summarize the total weight of an order number and then put
the result in a new column (called "total order weight") on each row.

I have the columns: "ordernr" and "weight" but I also need the
last row called "total order weight" .

I have like 25000 rows so I don't think it is very sane to do it
manually.

I've tried to use the functions SUBTOTAL and COUNTIF but I can't
seem to to get it right.

ordernr weight total order weight
226224 882 11425
226224 876 11425
226224 880 11425
226224 881 11425
226224 877 11425
226224 880 11425
226224 880 11425
226224 879 11425
226224 879 11425
226224 875 11425
226224 876 11425
226224 880 11425
226224 880 11425
231195 890 890
231702 1267 3800
231702 1268 3800
231702 1265 3800
231779 766 766
231780 1077 1077

 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      9th Dec 2005
Hi

Easiest way is to use a Pivot Table

Mark your 2 columns of data
Data>Pivot Table>Next>Layout
Drag Ordernr to Row Area
Drag Weight to Data area
Either click Finish to put the result on a new worksheet, or select the
radio button for Existing Worksheet and say where on the sheet you want the
Pivot table placed

Regards

Roger Govier


rantz wrote:
> I need to summarize the total weight of an order number and then put
> the result in a new column (called "total order weight") on each row.
>
> I have the columns: "ordernr" and "weight" but I also need the
> last row called "total order weight" .
>
> I have like 25000 rows so I don't think it is very sane to do it
> manually.
>
> I've tried to use the functions SUBTOTAL and COUNTIF but I can't
> seem to to get it right.
>
> ordernr weight total order weight
> 226224 882 11425
> 226224 876 11425
> 226224 880 11425
> 226224 881 11425
> 226224 877 11425
> 226224 880 11425
> 226224 880 11425
> 226224 879 11425
> 226224 879 11425
> 226224 875 11425
> 226224 876 11425
> 226224 880 11425
> 226224 880 11425
> 231195 890 890
> 231702 1267 3800
> 231702 1268 3800
> 231702 1265 3800
> 231779 766 766
> 231780 1077 1077
>

 
Reply With Quote
 
rantz
Guest
Posts: n/a
 
      9th Dec 2005
Yes, I know. I tried that too but that only gives me one row for each
ordernumber like this.

226224 11425
231195 890
231702 3800
231779 766
231780 1077

 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      9th Dec 2005
Hi
Then drag weight to the Row area as well, and place it to the right of ordernr

Regards

Roger Govier


rantz wrote:
> Yes, I know. I tried that too but that only gives me one row for each
> ordernumber like this.
>
> 226224 11425
> 231195 890
> 231702 3800
> 231779 766
> 231780 1077
>

 
Reply With Quote
 
bplumhoff@gmail.com
Guest
Posts: n/a
 
      9th Dec 2005
Hello,

I suggest to write into C1:
=SUMPRODUCT(--(A1=$A$1:$A$19),$B$1:$B$19)
Then copy this down to row 19.

HTH,
Bernd

 
Reply With Quote
 
rantz
Guest
Posts: n/a
 
      9th Dec 2005
Sorry, that don't give me the right data either. I get sumerize from
all unique weights.

Since there are two items that weights 666 I get total of 1332 like
this.


Order weight total

222245 666 1332
667 1334
668 668
669 2676
670 2010
671 2013
672 3360
673 2019
674 4044
675 2025
676 4056
677 4062
678 5424
679 2037

This is what I want...

222245 666 37060
222245 666 37060
222245 667 37060
222245 667 37060
222245 668 37060
222245 669 37060
222245 669 37060
222245 669 37060
222245 669 37060
222245 670 37060
222245 670 37060
222245 670 37060
222245 671 37060
222245 671 37060
222245 671 37060
222245 672 37060
222245 672 37060
222245 672 37060
222245 672 37060
222245 672 37060
222245 673 37060
222245 673 37060

 
Reply With Quote
 
Peter Aitken
Guest
Posts: n/a
 
      9th Dec 2005
"rantz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I need to summarize the total weight of an order number and then put
> the result in a new column (called "total order weight") on each row.
>
> I have the columns: "ordernr" and "weight" but I also need the
> last row called "total order weight" .
>
> I have like 25000 rows so I don't think it is very sane to do it
> manually.
>
> I've tried to use the functions SUBTOTAL and COUNTIF but I can't
> seem to to get it right.
>
> ordernr weight total order weight
> 226224 882 11425
> 226224 876 11425
> 226224 880 11425
> 226224 881 11425
> 226224 877 11425
> 226224 880 11425
> 226224 880 11425
> 226224 879 11425
> 226224 879 11425
> 226224 875 11425
> 226224 876 11425
> 226224 880 11425
> 226224 880 11425
> 231195 890 890
> 231702 1267 3800
> 231702 1268 3800
> 231702 1265 3800
> 231779 766 766
> 231780 1077 1077
>


The Subtotals command on the data menu will do it in a flash.


--
Peter Aitken



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Tables - get a total different than the summarize field sett alberto Microsoft Excel Worksheet Functions 1 16th Dec 2009 05:43 AM
pivot tables - total different than the summarize function alberto Microsoft Excel Misc 0 15th Dec 2009 07:15 PM
How do I summarize total hours over multiple days DavidT Microsoft Excel Worksheet Functions 5 25th Oct 2008 11:43 PM
how to summarize total number of appearance in a column? Alberta H K Microsoft Excel Discussion 3 19th Dec 2007 09:42 PM
How to summarize total in report ? Malee Microsoft Access Reports 1 12th Oct 2004 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:35 PM.