Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Hide formula | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) | |||
Help with macro formula and variable | Excel Worksheet Functions |