Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Keeprogoal
 
Posts: n/a
Default Countif between a range?

I am trying to set up a formula to count the number of data occurances each
quarter. I currently am using the function :

=COUNTIF('Tower Age'!B6:B80,"12/31/2005")

but that only gives me the occurances of that date.

How can I use the countif function (or any other function) to evaluate a
range of data from the 4Q: 10/01/2005-12/31/2005 and receive a count of all
the data in that falls in that range?

Thank you.
Philip
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Countif between a range?

=SUMPRODUCT(--(MONTH(B6:B80)=10),--(MONTH(B6:B80<=12)))

for Q4, or maybe

=SUMPRODUCT(--(INT((MONTH(B6:B80)-1)/3)+1=4))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Keeprogoal" wrote in message
...
I am trying to set up a formula to count the number of data occurances

each
quarter. I currently am using the function :

=COUNTIF('Tower Age'!B6:B80,"12/31/2005")

but that only gives me the occurances of that date.

How can I use the countif function (or any other function) to evaluate a
range of data from the 4Q: 10/01/2005-12/31/2005 and receive a count of

all
the data in that falls in that range?

Thank you.
Philip



  #3   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default Countif between a range?

=SUMPRODUCT(--('Tower Age'!B6:B80=DATE(2005,10,1)), --('Tower
Age'!B6:B80<=DATE(2005,12,31)))

For explanation see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Keeprogoal" wrote in message
...
I am trying to set up a formula to count the number of data occurances each
quarter. I currently am using the function :

=COUNTIF('Tower Age'!B6:B80,"12/31/2005")

but that only gives me the occurances of that date.

How can I use the countif function (or any other function) to evaluate a
range of data from the 4Q: 10/01/2005-12/31/2005 and receive a count of
all
the data in that falls in that range?

Thank you.
Philip



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 a name of a range webster Excel Worksheet Functions 3 June 14th 06 02:37 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Help with using range names in sum function soteman2005 Excel Worksheet Functions 2 November 28th 05 04:43 PM
CountIf first column range = "Word" and second column range <> 0 TinaMo Excel Worksheet Functions 3 June 3rd 05 10:56 PM
Countif for specific cells rather than a range ???? Renee - California Excel Worksheet Functions 5 May 27th 05 07:09 PM


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