#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default counting occurrences

Hello,

I am trying to count the occurrence of names in one column that have a value
in the next column and display the totals for each name.

i.e.

name A 10
name B 5
name A 5
name C 20
name A 10

Total name A 25
Total name B 5
Total name C 20

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default counting occurrences

=sumif(column A cells,nameA,column B cells)

"dpwicz" wrote:

Hello,

I am trying to count the occurrence of names in one column that have a value
in the next column and display the totals for each name.

i.e.

name A 10
name B 5
name A 5
name C 20
name A 10

Total name A 25
Total name B 5
Total name C 20

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default counting occurrences

Suggest a pivot table. Just a couple of seconds, and you're home. Assuming
your col headers are Name, Amt, in the "Layout" step of the pivot wizard,
just place Name in ROW area, Amt in DATA area, click OK Finish. Hop over to
the pivot sheet for the results: the unique names will be listed in the 1st
col with the corresponding sums of the amts adjacent to it.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,300 Files:361 Subscribers:58
xdemechanik
---
"dpwicz" wrote:
I am trying to count the occurrence of names in one column that have a value
in the next column and display the totals for each name.

i.e.

name A 10
name B 5
name A 5
name C 20
name A 10

Total name A 25
Total name B 5
Total name C 20

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
Counting occurrences GARY Excel Discussion (Misc queries) 3 August 13th 08 10:06 PM
Counting occurrences GARY Excel Discussion (Misc queries) 3 August 13th 08 09:51 PM
Counting number of occurrences. a.riva@UCL Excel Worksheet Functions 1 October 28th 07 03:44 AM
Counting occurrences on a particular date smore Excel Worksheet Functions 6 April 19th 07 11:22 PM
counting occurrences in a range Judy Felfe Excel Discussion (Misc queries) 3 July 20th 05 07:25 PM


All times are GMT +1. The time now is 11:18 AM.

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"