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

Hi all,

I have a counting issue. Let's assume the follwing data set:

¦ A ¦ B ¦
---------------------------
1¦ a ¦ 2 ¦
2¦ b ¦ 1 ¦
3¦ a ¦ 5 ¦
4¦ c ¦ 2 ¦
5¦ b ¦ 2 ¦


Result:
a 7
b 3
c 2

How can I get this done with a formula? I have tried with countif but it did
not work.

Kind regards,

Simon


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default counting

hi
from what you posted, you're not counting. you're summing.
use the sumif
=sumif(criteria range,"criteria",sum range)
you would need a sumif for each criteria. you can then sum the sumif's for a
grand total.

regards
FSt1

"Simon Minder" wrote:

Hi all,

I have a counting issue. Let's assume the follwing data set:

¦ A ¦ B ¦
---------------------------
1¦ a ¦ 2 ¦
2¦ b ¦ 1 ¦
3¦ a ¦ 5 ¦
4¦ c ¦ 2 ¦
5¦ b ¦ 2 ¦


Result:
a 7
b 3
c 2

How can I get this done with a formula? I have tried with countif but it did
not work.

Kind regards,

Simon


  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default counting

=Sumif($A$1:$A$5, "a", $B$1:$B$5)

or use a cell reference for your criteria. assuming "a" (w/o quotes) is in C1
=Sumif($A$1:$A$5, C1, $B$1:$B$5)


"Simon Minder" wrote:

Hi all,

I have a counting issue. Let's assume the follwing data set:

¦ A ¦ B ¦
---------------------------
1¦ a ¦ 2 ¦
2¦ b ¦ 1 ¦
3¦ a ¦ 5 ¦
4¦ c ¦ 2 ¦
5¦ b ¦ 2 ¦


Result:
a 7
b 3
c 2

How can I get this done with a formula? I have tried with countif but it did
not work.

Kind regards,

Simon


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 function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Counting John Excel Discussion (Misc queries) 3 August 15th 07 06:20 PM
Counting down Bikertyke Excel Worksheet Functions 5 December 6th 06 11:45 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


All times are GMT +1. The time now is 02:03 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"