Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Countif with Conditions

I need assistance with a formula that will count locations within a certain
radius on a certain date. Column A is the date, Column B is a location, and
Column C is miles away. The current formula which is not yielding any
results is as follows:

=SUMPRODUCT(($A$3:$A$286="4/3/2007")*($C$3:$C$286<=5))


Thanks,

Gary

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Countif with Conditions

Try


=SUMPRODUCT(($A$3:$A$286=--"4/3/2007")*($C$3:$C$286<=5))



--
Regards,

Peo Sjoblom



"Gary" wrote in message
...
I need assistance with a formula that will count locations within a certain
radius on a certain date. Column A is the date, Column B is a location,
and
Column C is miles away. The current formula which is not yielding any
results is as follows:

=SUMPRODUCT(($A$3:$A$286="4/3/2007")*($C$3:$C$286<=5))


Thanks,

Gary



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Countif with Conditions

try:

=SUMPRODUCT(($A$3:$A$286=DATEVALUE("4/3/2007"))*($C$3:$C$286<=5))

..... where is column B in the formula?

=SUMPRODUCT(($A$3:$A$286=DATEVALUE("4/3/2007"))*($B$3:$B$286=loc)*($C$3:$C$286<=5))

Better to put parameters in cells:

e.g. G1=Date
G2=Location
G3=Distance

=SUMPRODUCT(($A$3:$A$286=G1)*($B$3:$B$286=G2)*($C$ 3:$C$286<=G3))

HTH






"Gary" wrote:

I need assistance with a formula that will count locations within a certain
radius on a certain date. Column A is the date, Column B is a location, and
Column C is miles away. The current formula which is not yielding any
results is as follows:

=SUMPRODUCT(($A$3:$A$286="4/3/2007")*($C$3:$C$286<=5))


Thanks,

Gary

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
Using CountIf with 2 conditions - help! Sarah Excel Worksheet Functions 6 May 23rd 06 07:18 PM
COUNTIF for 2 conditions Bruce Excel Worksheet Functions 4 June 15th 05 01:22 PM
countif two conditions Penny Excel Discussion (Misc queries) 4 May 27th 05 01:59 AM
COUNTIF with two conditions Doodlemeyer Excel Worksheet Functions 2 March 20th 05 09:05 PM
COUNTIF - 2 conditions Doodlemeyer Excel Worksheet Functions 1 March 17th 05 02:49 PM


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