Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sorting and adding totals

I need help with a formua that will search through the initals in the right
coloumn and add the totals in the left coloumn according to the initials in
the right. any suggestions? here is an example of what I am talking about


650.65 VB
197.00 JB
228.00 JB
410.00 KMM
361.53 KMM
3,982.00 VB
2,200.00 VB
498.48 JB
172.00 KMM
511.57 KMM
644.69 VB
184.26 VB
290.00 VB
969.00 KMM
198.00 JB
500.00 PB

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default sorting and adding totals

SUMPRODUCT or SUMIF would both accomplish this:

=SUMPRODUCT(--(B1:B100="VB"),A1:A100)

=SUMIF(B1:B100,"VB",A1:A100)

HTH
Elkar


"docbehr" wrote:

I need help with a formua that will search through the initals in the right
coloumn and add the totals in the left coloumn according to the initials in
the right. any suggestions? here is an example of what I am talking about


650.65 VB
197.00 JB
228.00 JB
410.00 KMM
361.53 KMM
3,982.00 VB
2,200.00 VB
498.48 JB
172.00 KMM
511.57 KMM
644.69 VB
184.26 VB
290.00 VB
969.00 KMM
198.00 JB
500.00 PB

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default sorting and adding totals

Hello,

You can use my UDF afreq:
http://www.sulprobil.com/html/listfreq.html

Regards,
Bernd
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default sorting and adding totals

docbehr wrote:
I need help with a formua that will search through the initals in the right
coloumn and add the totals in the left coloumn according to the initials in
the right. any suggestions? here is an example of what I am talking about


650.65 VB
197.00 JB
228.00 JB
410.00 KMM
361.53 KMM
3,982.00 VB
2,200.00 VB
498.48 JB
172.00 KMM
511.57 KMM
644.69 VB
184.26 VB
290.00 VB
969.00 KMM
198.00 JB
500.00 PB


One way: Assuming your data in columns A & B, in column C try

=SUMIF(B:B,B2,A:A)

The possible downside to this easy solution is you get totals on every
row, so you have to search through the list to see every person's total.

Another way: A pivot table will give a nice summary. First, put column
labels in the top row (this is good practice anyway). With your cursor
somewhere in the list start up the pivot table wizard, place the
"initial" field in the Row area and the "value" field in the data area.
Finish.

You may need to adjust the "value" summary to be a sum rather then a
count. To do this double click the "value" control (probably a gray cell
that says "Count of..." and change the option to be Sum.
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
Pivot table sorting by sub-totals sgdav Excel Discussion (Misc queries) 0 March 6th 08 11:50 AM
sorting by week w/sub totals [email protected] Excel Worksheet Functions 1 February 27th 08 11:05 AM
Adding totals to new sheet Doug[_3_] Excel Worksheet Functions 9 August 1st 07 03:51 AM
Adding totals after filtering The Countryman Excel Discussion (Misc queries) 2 March 5th 07 05:32 PM
Adding category totals [email protected] Excel Worksheet Functions 3 June 15th 06 11:47 PM


All times are GMT +1. The time now is 06:09 AM.

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"