#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Formula Help

I have a spreadsheet that lists various order numbers on multiple rows
with different amounts for that order. I want to create a new "Order
Total" column and create a formula that adds all the amounts for each
order number that is the same. So looking at the table below, order
number 11111 will have a value of 175 (100 + 50 + 25 = 175) in the
Order Total column for each row where the order number is 11111.

I hope I'm clear. It can be difficult to put this stuff into words.
=)

Thanks
David

(new column)
Order Number Amount Order Total
11111 100 175
11111 50 175
22222 25 375
11111 25 175
33333 100 250
22222 250 375
33333 150 250
22222 100 375

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BSantos
 
Posts: n/a
Default Formula Help

You do a pivot table. Under the Data menu

layout should be

Row = Order Number column
Data = Sum of amount column

This will add up all the same Order number and give you the sum of the amount.

Hope that is clear as well! :0)

" wrote:

I have a spreadsheet that lists various order numbers on multiple rows
with different amounts for that order. I want to create a new "Order
Total" column and create a formula that adds all the amounts for each
order number that is the same. So looking at the table below, order
number 11111 will have a value of 175 (100 + 50 + 25 = 175) in the
Order Total column for each row where the order number is 11111.

I hope I'm clear. It can be difficult to put this stuff into words.
=)

Thanks
David

(new column)
Order Number Amount Order Total
11111 100 175
11111 50 175
22222 25 375
11111 25 175
33333 100 250
22222 250 375
33333 150 250
22222 100 375


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Formula Help

Sort your range (all the columns!) by the order number column.

Then apply Data|subtotals to that range.

This'll give you a new line with just the subtotals.

If you really want that same total on each of the lines:

=sumif($a$2:$a$99,a2,$b$2:$b$99)
and drag down.

Another alternative would be to use data|pivottable. You can do some very nice
summaries with that tool.

" wrote:

I have a spreadsheet that lists various order numbers on multiple rows
with different amounts for that order. I want to create a new "Order
Total" column and create a formula that adds all the amounts for each
order number that is the same. So looking at the table below, order
number 11111 will have a value of 175 (100 + 50 + 25 = 175) in the
Order Total column for each row where the order number is 11111.

I hope I'm clear. It can be difficult to put this stuff into words.
=)

Thanks
David

(new column)
Order Number Amount Order Total
11111 100 175
11111 50 175
22222 25 375
11111 25 175
33333 100 250
22222 250 375
33333 150 250
22222 100 375


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay
 
Posts: n/a
Default Formula Help

I have a spreadsheet that lists various order numbers on multiple rows
with different amounts for that order. I want to create a new "Order
Total" column and create a formula that adds all the amounts for each
order number that is the same. So looking at the table below, order
number 11111 will have a value of 175 (100 + 50 + 25 = 175) in the
Order Total column for each row where the order number is 11111.

I hope I'm clear. It can be difficult to put this stuff into words.
... (new column)
Order Number Amount Order Total
11111 100 175
11111 50 175
22222 25 375
11111 25 175
33333 100 250
22222 250 375
33333 150 250
22222 100 375



One way is illustrated in the csv file below.

------------------------ cut here ------------------------
Order Number,Amount,Order Total
11111,100,"=SUMIF(A:A,A2,B:B)"
11111,50,"=SUMIF(A:A,A3,B:B)"
22222,25,"=SUMIF(A:A,A4,B:B)"
11111,25,"=SUMIF(A:A,A5,B:B)"
33333,100,"=SUMIF(A:A,A6,B:B)"
22222,250,"=SUMIF(A:A,A7,B:B)"
33333,150,"=SUMIF(A:A,A8,B:B)"
22222,100,"=SUMIF(A:A,A9,B:B)"
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RagDyer
 
Posts: n/a
Default Formula Help

Order numbers and amounts in A2 to B100.

Try this in C2:

=SUMIF($A$2:$A$100,A2,$B$2:$B$100)

And copy down to C100.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


wrote in message
oups.com...
I have a spreadsheet that lists various order numbers on multiple rows
with different amounts for that order. I want to create a new "Order
Total" column and create a formula that adds all the amounts for each
order number that is the same. So looking at the table below, order
number 11111 will have a value of 175 (100 + 50 + 25 = 175) in the
Order Total column for each row where the order number is 11111.

I hope I'm clear. It can be difficult to put this stuff into words.
=)

Thanks
David

(new column)
Order Number Amount Order Total
11111 100 175
11111 50 175
22222 25 375
11111 25 175
33333 100 250
22222 250 375
33333 150 250
22222 100 375




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Formula Help

The sumif worked. Thanks to everyone who responded! btw - in my
specific case, a subtotal or pivot table would not have worked as I
wanted each row in my table of data to have the order total.

Thanks again to everyone.

David

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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 04:15 AM.

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

About Us

"It's about Microsoft Excel"