Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phil
 
Posts: n/a
Default Using Count function with a conditional range

I have a spreadsheet with dates in column A and a true/false in column B. I
want to count how many "false" are in column B between certain dates. If I
specify the cells where the date range starts and finishes, this works OK
e.g. =COUNT(A241:A265,0) What I want to do is replace A:241:A265 by an
expression that selects the cells in column A that lie between two dates.

Any ideas?

Thanks
Phil



  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Phil

One way

You can use sumproduct
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Try something like this(Change range)

=SUMPRODUCT((A1:A10=DATE(2003,1,12))*((A1:A10<=DA TE(2003,7,18)))*((B1:B10=FALSE)))


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Phil" <philDOTtoddATbluewinDOTch wrote in message ...
I have a spreadsheet with dates in column A and a true/false in column B. I
want to count how many "false" are in column B between certain dates. If I
specify the cells where the date range starts and finishes, this works OK
e.g. =COUNT(A241:A265,0) What I want to do is replace A:241:A265 by an
expression that selects the cells in column A that lie between two dates.

Any ideas?

Thanks
Phil





  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

Enter your date boundaries in 2 cells:

C1 = lower date boundary
D1 = upper date boundary

=SUMPRODUCT(--(A1:A365=C1),--(A1:A365<=D1),--(B1:B365="False"))

If the true/false in column B are really Boolean values then leave out the
quotes.

Biff

"Phil" <philDOTtoddATbluewinDOTch wrote in message
...
I have a spreadsheet with dates in column A and a true/false in column B. I
want to count how many "false" are in column B between certain dates. If I
specify the cells where the date range starts and finishes, this works OK
e.g. =COUNT(A241:A265,0) What I want to do is replace A:241:A265 by an
expression that selects the cells in column A that lie between two dates.

Any ideas?

Thanks
Phil





  #4   Report Post  
Phil
 
Posts: n/a
Default

Thanks Biff,

This does exactly what I was trying to do.

Phil
"Biff" wrote in message
...
Hi!

Try this:

Enter your date boundaries in 2 cells:

C1 = lower date boundary
D1 = upper date boundary

=SUMPRODUCT(--(A1:A365=C1),--(A1:A365<=D1),--(B1:B365="False"))

If the true/false in column B are really Boolean values then leave out the
quotes.

Biff

"Phil" <philDOTtoddATbluewinDOTch wrote in message
...
I have a spreadsheet with dates in column A and a true/false in column B.
I
want to count how many "false" are in column B between certain dates. If
I
specify the cells where the date range starts and finishes, this works OK
e.g. =COUNT(A241:A265,0) What I want to do is replace A:241:A265 by an
expression that selects the cells in column A that lie between two dates.

Any ideas?

Thanks
Phil







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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
creating function (vba) with range arguments Fredouille Excel Worksheet Functions 2 September 12th 05 11:01 AM
Conditional average function Andres Excel Worksheet Functions 1 August 9th 05 06:31 PM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


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