Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default COUNT IF FUNCTION

Hello, I am trying to countif a range of cells if they meet and certain
criteria and if another range meets a certain criteria.

I would like to count the # of times the score = 0 when the date = 1. I
tried this function =if(b1:b4=1,countif(d1:d4,0),0) however that returned
"0". Any ideas?


UM DATE CLAIM# SCORE
CKC 1 URL3763 0.00
CKC 1 UVN6314 0.00
CKC 5621 URI1126 1.00
CKC 1 UTR5794 0.00

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default COUNT IF FUNCTION

Use SUMPRODUCT: =SUMPRODUCT(--(B2:B5=1),--(D2:D5=0.00))

Dave
--
Brevity is the soul of wit.


"nperpill" wrote:

Hello, I am trying to countif a range of cells if they meet and certain
criteria and if another range meets a certain criteria.

I would like to count the # of times the score = 0 when the date = 1. I
tried this function =if(b1:b4=1,countif(d1:d4,0),0) however that returned
"0". Any ideas?


UM DATE CLAIM# SCORE
CKC 1 URL3763 0.00
CKC 1 UVN6314 0.00
CKC 5621 URI1126 1.00
CKC 1 UTR5794 0.00

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default COUNT IF FUNCTION

=SUM(IF((B2:B100=1)*(D1:D100=0),1))
or
=SUM((B2:B100=1)*(D1:D100=0))

Ctrl+Shift+Enter on both formula above, not just enter

"nperpill" wrote:

Hello, I am trying to countif a range of cells if they meet and certain
criteria and if another range meets a certain criteria.

I would like to count the # of times the score = 0 when the date = 1. I
tried this function =if(b1:b4=1,countif(d1:d4,0),0) however that returned
"0". Any ideas?


UM DATE CLAIM# SCORE
CKC 1 URL3763 0.00
CKC 1 UVN6314 0.00
CKC 5621 URI1126 1.00
CKC 1 UTR5794 0.00

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
VBA Monty Excel Worksheet Functions 2 January 30th 06 01:37 PM
Count Function Steve Excel Worksheet Functions 13 November 18th 05 04:05 PM
How do I add the count function to the toolbar? smeesh Excel Worksheet Functions 8 March 31st 05 07:51 AM
Can I count in an array based on a function? HokieLawrence Excel Worksheet Functions 2 February 12th 05 03:05 AM


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