ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Subtotal function (https://www.excelbanter.com/excel-worksheet-functions/8024-subtotal-function.html)

Kyli

Subtotal function
 
I have a spreadsheet that I need a total for one column at each change in
another column. Example:
abc 0
abc 15
abc 22
abc 0
def 5
def 9
def 17

Would produce the following:
abc 37
def 31

Thanks in advance for helping! : )

Peo Sjoblom

That is exactly what datasubtotals will do and if you want it to return just
the same as in your post just click on the 2 in the subtotal pane to the left

Regards,

Peo Sjoblom

"Kyli" wrote:

I have a spreadsheet that I need a total for one column at each change in
another column. Example:
abc 0
abc 15
abc 22
abc 0
def 5
def 9
def 17

Would produce the following:
abc 37
def 31

Thanks in advance for helping! : )


Frank Kabel

Hi
use a pivot table for this or use 'Data - subtotals'

--
Regards
Frank Kabel
Frankfurt, Germany
"Kyli" schrieb im Newsbeitrag
...
I have a spreadsheet that I need a total for one column at each change in
another column. Example:
abc 0
abc 15
abc 22
abc 0
def 5
def 9
def 17

Would produce the following:
abc 37
def 31

Thanks in advance for helping! : )




Kyli

Hi Frank

When I pull up data - subtotal, I get "At each change in", "Use Function",
and "Add subtotal to".
I used At each change in: Col A, Use Function: Sum, and Add Subtotal to: Col
B. For some reason, all I get are zeros.

Any thoughts?
Thanks,
Kyli

"Frank Kabel" wrote:

Hi
use a pivot table for this or use 'Data - subtotals'

--
Regards
Frank Kabel
Frankfurt, Germany


"Kyli" schrieb im Newsbeitrag
...
I have a spreadsheet that I need a total for one column at each change in
another column. Example:
abc 0
abc 15
abc 22
abc 0
def 5
def 9
def 17

Would produce the following:
abc 37
def 31

Thanks in advance for helping! : )






All times are GMT +1. The time now is 02:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com