#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default count if

I am looking to count the number of times a value(ie "3") appears in one
column only if the column next to it has a different specific value(ie
"bob").
column value1 value2
12 3 tim
13 3 tim
14 2 tim
15 3 bob
16 4 bob
17 3 bob
So in this case, it would count 2.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count if

Try something like this:

...........A..........B
1........2.........Bob
2........3.........Tim
3........3.........Bob
4........1.........Bob
5........3.........Bob

=SUMPRODUCT(--(A1:A5=3),--(B1:B5="Bob"))

--
Biff
Microsoft Excel MVP


"scooter" wrote in message
...
I am looking to count the number of times a value(ie "3") appears in one
column only if the column next to it has a different specific value(ie
"bob").
column value1 value2
12 3 tim
13 3 tim
14 2 tim
15 3 bob
16 4 bob
17 3 bob
So in this case, it would count 2.



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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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