Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Yossi
 
Posts: n/a
Default summing according to groups

Hi,
I have a table that features numbers and types. I want to take the maximum
number from each type and sum all the those numbers together.
The types can vary and are not known in advance.

For example look at the following table:

type number
green 1
red 12
box 31
pyramid 2
steel 5
green 10
pyramid 7
green 9
steel 11

I want to get the maximum of each type:
red = 12
green = 10
box = 31
pyramid = 7
steel = 11

and sum them up:
total = 71

Is there any simple way to do it? once again, the types are unknown.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default summing according to groups

A pivot table will get you exactly want you want:

1. pull-down
Data Pivot Table

2. on the layout tab, drag type into the row area and number into the data
area

3. double-click number to change from count of number to max of number

4. ignoring the Grand Total, sum the resulting entries
--
Gary''s Student


"Yossi" wrote:

Hi,
I have a table that features numbers and types. I want to take the maximum
number from each type and sum all the those numbers together.
The types can vary and are not known in advance.

For example look at the following table:

type number
green 1
red 12
box 31
pyramid 2
steel 5
green 10
pyramid 7
green 9
steel 11

I want to get the maximum of each type:
red = 12
green = 10
box = 31
pyramid = 7
steel = 11

and sum them up:
total = 71

Is there any simple way to do it? once again, the types are unknown.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
Yossi
 
Posts: n/a
Default summing according to groups

Thanks.
What if I have several number columns? How can I see each of the MAX for
every type?
I tried messing with the pivot table, but I couldn't find how to do it...

"Gary''s Student" wrote:

A pivot table will get you exactly want you want:

1. pull-down
Data Pivot Table

2. on the layout tab, drag type into the row area and number into the data
area

3. double-click number to change from count of number to max of number

4. ignoring the Grand Total, sum the resulting entries
--
Gary''s Student


"Yossi" wrote:

Hi,
I have a table that features numbers and types. I want to take the maximum
number from each type and sum all the those numbers together.
The types can vary and are not known in advance.

For example look at the following table:

type number
green 1
red 12
box 31
pyramid 2
steel 5
green 10
pyramid 7
green 9
steel 11

I want to get the maximum of each type:
red = 12
green = 10
box = 31
pyramid = 7
steel = 11

and sum them up:
total = 71

Is there any simple way to do it? once again, the types are unknown.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default summing according to groups

I have never tried to do what you want. Making separate tables for each
column is kink of dumb. May be concatenating the data into a single
column....?
--
Gary's Student


"Yossi" wrote:

Thanks.
What if I have several number columns? How can I see each of the MAX for
every type?
I tried messing with the pivot table, but I couldn't find how to do it...

"Gary''s Student" wrote:

A pivot table will get you exactly want you want:

1. pull-down
Data Pivot Table

2. on the layout tab, drag type into the row area and number into the data
area

3. double-click number to change from count of number to max of number

4. ignoring the Grand Total, sum the resulting entries
--
Gary''s Student


"Yossi" wrote:

Hi,
I have a table that features numbers and types. I want to take the maximum
number from each type and sum all the those numbers together.
The types can vary and are not known in advance.

For example look at the following table:

type number
green 1
red 12
box 31
pyramid 2
steel 5
green 10
pyramid 7
green 9
steel 11

I want to get the maximum of each type:
red = 12
green = 10
box = 31
pyramid = 7
steel = 11

and sum them up:
total = 71

Is there any simple way to do it? once again, the types are unknown.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
Yossi
 
Posts: n/a
Default summing according to groups

Well,
I couldn't find a way to make my number titles at the column area, but
reversing the position of type (to be in the column area) and then placing
the number columns in the data area did the job :-)


Thanks, man.

"Yossi" wrote:

Hi,
I have a table that features numbers and types. I want to take the maximum
number from each type and sum all the those numbers together.
The types can vary and are not known in advance.

For example look at the following table:

type number
green 1
red 12
box 31
pyramid 2
steel 5
green 10
pyramid 7
green 9
steel 11

I want to get the maximum of each type:
red = 12
green = 10
box = 31
pyramid = 7
steel = 11

and sum them up:
total = 71

Is there any simple way to do it? once again, the types are unknown.

Thanks

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
Macro Formula For Summing Range Timmy Mac1 Excel Discussion (Misc queries) 1 February 22nd 06 06:44 PM
Dealing with worksheet groups Bob K Excel Worksheet Functions 0 October 19th 05 04:08 PM
formula for putting points into groups grime Excel Worksheet Functions 0 October 13th 05 01:47 PM
find the max values for cells in consecutive groups of 600 john Excel Discussion (Misc queries) 2 October 4th 05 10:52 AM
how do i view all groups under excel in google groups JulieD Excel Discussion (Misc queries) 2 December 16th 04 04:33 PM


All times are GMT +1. The time now is 11:47 PM.

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"