#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRD JRD is offline
external usenet poster
 
Posts: 60
Default countifs

Is there a way in which I can use countifs function to count cells that
contain a time between 09:00 and 17:00?

If not is there any other function I can use for this

Thanks

John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default countifs

You can use sumproduct

=SUMPRODUCT((A1:A23=TIME(9,0,0))*(A1:A23<=TIME(17 ,0,0)))

Mike

"JRD" wrote:

Is there a way in which I can use countifs function to count cells that
contain a time between 09:00 and 17:00?

If not is there any other function I can use for this

Thanks

John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRD JRD is offline
external usenet poster
 
Posts: 60
Default countifs

Unfortunately doen't quite work for me, as need to count only cells that have
time between 9am and 17pm, but also meet speciific criteria from same row in
another column.

Do you know of any other ways round this

John

"Mike H" wrote:

You can use sumproduct

=SUMPRODUCT((A1:A23=TIME(9,0,0))*(A1:A23<=TIME(17 ,0,0)))

Mike

"JRD" wrote:

Is there a way in which I can use countifs function to count cells that
contain a time between 09:00 and 17:00?

If not is there any other function I can use for this

Thanks

John

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default countifs

Hi,,

Sumproduct is still the correct formula

=SUMPRODUCT((A1:A23=TIME(9,0,0))*(A1:A23<=TIME(17 ,0,0))*(B1:B23="My other
condttion"))

Substitute "My Other condition2 with whatever you want

Mike

"JRD" wrote:

Unfortunately doen't quite work for me, as need to count only cells that have
time between 9am and 17pm, but also meet speciific criteria from same row in
another column.

Do you know of any other ways round this

John

"Mike H" wrote:

You can use sumproduct

=SUMPRODUCT((A1:A23=TIME(9,0,0))*(A1:A23<=TIME(17 ,0,0)))

Mike

"JRD" wrote:

Is there a way in which I can use countifs function to count cells that
contain a time between 09:00 and 17:00?

If not is there any other function I can use for this

Thanks

John

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default countifs

Using COUNTIFS for just the time range:

C1 = lower time boundry = 9:00
D1 = upper time boundary = 17:00

=COUNTIFS(A1:A100,"="&C1,A1:A100,"<="&D1)

but also meet speciific criteria from same row in another column.


It depends on what that condition is. COUNTIFS can only do "straight
comparrisons".


--
Biff
Microsoft Excel MVP


"JRD" wrote in message
...
Unfortunately doen't quite work for me, as need to count only cells that
have
time between 9am and 17pm, but also meet speciific criteria from same row
in
another column.

Do you know of any other ways round this

John

"Mike H" wrote:

You can use sumproduct

=SUMPRODUCT((A1:A23=TIME(9,0,0))*(A1:A23<=TIME(17 ,0,0)))

Mike

"JRD" wrote:

Is there a way in which I can use countifs function to count cells that
contain a time between 09:00 and 17:00?

If not is there any other function I can use for this

Thanks

John





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default countifs

Hi,

Since you are using 2007 try this

=COUNTIFS(A1:A4,"="&9/24,A1:A4,"<="&17/24)

and add your other condtions
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"JRD" wrote:

Is there a way in which I can use countifs function to count cells that
contain a time between 09:00 and 17:00?

If not is there any other function I can use for this

Thanks

John

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
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM
COUNTIFS Skinman Excel Worksheet Functions 3 December 11th 08 05:29 AM
Countifs Diane Excel Worksheet Functions 1 November 21st 08 09:43 AM
Two COUNTIFs Russell Excel Discussion (Misc queries) 2 August 19th 08 02:18 AM
Countifs Fx in 07 how in 03? HenderH Excel Discussion (Misc queries) 19 March 26th 08 12:37 PM


All times are GMT +1. The time now is 04:01 PM.

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"