Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mark J
 
Posts: n/a
Default Sum of cells whit the same name


I have a table like this (original cotains a row a 4000 cells)



CAR NUMBER TOTAL
Mazda 1
Mazda 7
Mazda 8
Volvo 4
Volvo 5
Skoda 5
Skoda 4
Skoda 7


How do i get a sum of cells with the same name, so you get something
like this.

CAR NUMBER TOTAL
Mazda 1 16
Mazda 7
Mazda 8
Volvo 4 9
Volvo 5
Skoda 5 16
Skoda 4
Skoda 7


--
Mark J
------------------------------------------------------------------------
Mark J's Profile: http://www.excelforum.com/member.php...o&userid=30738
View this thread: http://www.excelforum.com/showthread...hreadid=504042

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Sum of cells whit the same name

On Mon, 23 Jan 2006 09:39:11 -0600, Mark J
wrote:


I have a table like this (original cotains a row a 4000 cells)



CAR NUMBER TOTAL
Mazda 1
Mazda 7
Mazda 8
Volvo 4
Volvo 5
Skoda 5
Skoda 4
Skoda 7


How do i get a sum of cells with the same name, so you get something
like this.

CAR NUMBER TOTAL
Mazda 1 16
Mazda 7
Mazda 8
Volvo 4 9
Volvo 5
Skoda 5 16
Skoda 4
Skoda 7


To replicate your results, and this assumes that CAR is sorted as you show, and
the table is in A1:Cn. CAR and NUMBER are NAME'd ranges.

C2: =IF(A2<A1,SUMIF(CAR,A2,NUMBER),"")

Copy/Drag down as far as needed.

You should also look at the

Data/Subtotals and Data/Pivot Table wizards for alternate methods of doing
this.

In particular, the Pivot Table will be of value if CAR is not a sorted list.


--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RagDyeR
 
Posts: n/a
Default Sum of cells whit the same name

Names in Column A,
Numbers in Column B,
Enter this in C1, and copy down as needed:

=IF(A1<A2,SUMIF($A$1:A1,A1,$B$1:B1),"")

This places total at *end* of group !

--

HTH,

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

"Mark J" wrote in
message ...

I have a table like this (original cotains a row a 4000 cells)



CAR NUMBER TOTAL
Mazda 1
Mazda 7
Mazda 8
Volvo 4
Volvo 5
Skoda 5
Skoda 4
Skoda 7


How do i get a sum of cells with the same name, so you get something
like this.

CAR NUMBER TOTAL
Mazda 1 16
Mazda 7
Mazda 8
Volvo 4 9
Volvo 5
Skoda 5 16
Skoda 4
Skoda 7


--
Mark J
------------------------------------------------------------------------
Mark J's Profile:
http://www.excelforum.com/member.php...o&userid=30738
View this thread: http://www.excelforum.com/showthread...hreadid=504042


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
how do you "select locked cells" w/o "select unlocked cells"? princejohnpaulfin Excel Discussion (Misc queries) 3 July 16th 05 03:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting only active cells Sac73 Excel Discussion (Misc queries) 16 April 4th 05 05:49 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


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

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

About Us

"It's about Microsoft Excel"