A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Autogroup then sum - can it be done?



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2010, 06:58 PM posted to microsoft.public.excel.worksheet.functions
Jessica Robinson
external usenet poster
 
Posts: 1
Default Autogroup then sum - can it be done?

This is what I would like to do, if possible:

Sum the values of column B that correspond with a set of unique row entries
in column A. The sum should go on the first of the unique set rows in Column
C. But, for example...

Column A:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears

Column B:
2
3
2
2
2
2
2

Column C:
7
-
-
6
-
-
2

I found instructions on how to do something similar
(http://tipsforspreadsheets.com/micro...ion_0027.html), but
it requires that you type the different things in column A into the formula.
I want excel to be able to group the things in column A automatically and
then sum the corresponding column B numbers of that group. Why? Because there
are 350 unique row values in Column A in my actual data. I just want to make
one formula, or function, or whatever - not 350 of them.

Is that possible? Or am I just wasting time when I could be autosumming each
group manually instead of looking for an automatic way to do this?
Unfortunately, autosum is really about the extent of my knowledge of
formulas, functions or whatever-they-ares, so that's why I need some help.

Thank you bunches!
  #2  
Old March 11th, 2010, 08:42 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Autogroup then sum - can it be done?

Try Pivot table

"Jessica Robinson" wrote:

This is what I would like to do, if possible:

Sum the values of column B that correspond with a set of unique row entries
in column A. The sum should go on the first of the unique set rows in Column
C. But, for example...

Column A:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears

Column B:
2
3
2
2
2
2
2

Column C:
7
-
-
6
-
-
2

I found instructions on how to do something similar
(http://tipsforspreadsheets.com/micro...ion_0027.html), but
it requires that you type the different things in column A into the formula.
I want excel to be able to group the things in column A automatically and
then sum the corresponding column B numbers of that group. Why? Because there
are 350 unique row values in Column A in my actual data. I just want to make
one formula, or function, or whatever - not 350 of them.

Is that possible? Or am I just wasting time when I could be autosumming each
group manually instead of looking for an automatic way to do this?
Unfortunately, autosum is really about the extent of my knowledge of
formulas, functions or whatever-they-ares, so that's why I need some help.

Thank you bunches!

  #3  
Old March 12th, 2010, 04:10 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 563
Default Autogroup then sum - can it be done?

Hi Jessica
If your product starts in A2, try this formula and copy down.
=IF(A2=A1,"",SUMPRODUCT(--(A2:A10=A2),B2:B10))
HTH
John
"Jessica Robinson" Jessica wrote in message
news
This is what I would like to do, if possible:

Sum the values of column B that correspond with a set of unique row entries
in column A. The sum should go on the first of the unique set rows in Column
C. But, for example...

Column A:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears

Column B:
2
3
2
2
2
2
2

Column C:
7
-
-
6
-
-
2

I found instructions on how to do something similar
(
http://tipsforspreadsheets.com/micro...ion_0027.html), but
it requires that you type the different things in column A into the formula.
I want excel to be able to group the things in column A automatically and
then sum the corresponding column B numbers of that group. Why? Because there
are 350 unique row values in Column A in my actual data. I just want to make
one formula, or function, or whatever - not 350 of them.

Is that possible? Or am I just wasting time when I could be autosumming each
group manually instead of looking for an automatic way to do this?
Unfortunately, autosum is really about the extent of my knowledge of
formulas, functions or whatever-they-ares, so that's why I need some help.

Thank you bunches!


  #4  
Old March 14th, 2010, 01:46 PM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default Autogroup then sum - can it be done?

Hi,

you may highlight the data and go to Data Subtotals. Supply the relevant
inouts

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Jessica Robinson" Jessica wrote in
message news
This is what I would like to do, if possible:

Sum the values of column B that correspond with a set of unique row
entries
in column A. The sum should go on the first of the unique set rows in
Column
C. But, for example...

Column A:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears

Column B:
2
3
2
2
2
2
2

Column C:
7
-
-
6
-
-
2

I found instructions on how to do something similar
(
http://tipsforspreadsheets.com/micro...ion_0027.html),
but
it requires that you type the different things in column A into the
formula.
I want excel to be able to group the things in column A automatically and
then sum the corresponding column B numbers of that group. Why? Because
there
are 350 unique row values in Column A in my actual data. I just want to
make
one formula, or function, or whatever - not 350 of them.

Is that possible? Or am I just wasting time when I could be autosumming
each
group manually instead of looking for an automatic way to do this?
Unfortunately, autosum is really about the extent of my knowledge of
formulas, functions or whatever-they-ares, so that's why I need some help.

Thank you bunches!


  #5  
Old April 16th, 2010, 05:51 PM posted to microsoft.public.excel.worksheet.functions
Jessica Robinson[_2_]
external usenet poster
 
Posts: 1
Default Autogroup then sum - can it be done?

John, this worked perfectly! Thank you so much.
~ Jessica

"John" wrote:

Hi Jessica
If your product starts in A2, try this formula and copy down.
=IF(A2=A1,"",SUMPRODUCT(--(A2:A10=A2),B2:B10))
HTH
John
"Jessica Robinson" Jessica wrote in message
news
This is what I would like to do, if possible:

Sum the values of column B that correspond with a set of unique row entries
in column A. The sum should go on the first of the unique set rows in Column
C. But, for example...

Column A:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears

Column B:
2
3
2
2
2
2
2

Column C:
7
-
-
6
-
-
2

I found instructions on how to do something similar
(
http://tipsforspreadsheets.com/micro...ion_0027.html), but
it requires that you type the different things in column A into the formula.
I want excel to be able to group the things in column A automatically and
then sum the corresponding column B numbers of that group. Why? Because there
are 350 unique row values in Column A in my actual data. I just want to make
one formula, or function, or whatever - not 350 of them.

Is that possible? Or am I just wasting time when I could be autosumming each
group manually instead of looking for an automatic way to do this?
Unfortunately, autosum is really about the extent of my knowledge of
formulas, functions or whatever-they-ares, so that's why I need some help.

Thank you bunches!


.

  #6  
Old April 16th, 2010, 08:16 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 563
Default Autogroup then sum - can it be done?

You're welcome.
Thanks for feeding back
John
"Jessica Robinson" wrote in message
...
John, this worked perfectly! Thank you so much.
~ Jessica

"John" wrote:

Hi Jessica
If your product starts in A2, try this formula and copy down.
=IF(A2=A1,"",SUMPRODUCT(--(A2:A10=A2),B2:B10))
HTH
John
"Jessica Robinson" Jessica wrote in
message
news
This is what I would like to do, if possible:

Sum the values of column B that correspond with a set of unique row entries
in column A. The sum should go on the first of the unique set rows in
Column
C. But, for example...

Column A:
Apples
Apples
Apples
Oranges
Oranges
Oranges
Pears

Column B:
2
3
2
2
2
2
2

Column C:
7
-
-
6
-
-
2

I found instructions on how to do something similar
(
http://tipsforspreadsheets.com/micro...ion_0027.html),
but
it requires that you type the different things in column A into the
formula.
I want excel to be able to group the things in column A automatically and
then sum the corresponding column B numbers of that group. Why? Because
there
are 350 unique row values in Column A in my actual data. I just want to
make
one formula, or function, or whatever - not 350 of them.

Is that possible? Or am I just wasting time when I could be autosumming
each
group manually instead of looking for an automatic way to do this?
Unfortunately, autosum is really about the extent of my knowledge of
formulas, functions or whatever-they-ares, so that's why I need some help.

Thank you bunches!


.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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