#1   Report Post  
Denise
 
Posts: n/a
Default Count If question

I have a spread sheet that I need to count if -

If Column T is equal to a certain name (Davis) then I want to count the
times that are in Column AR that are less than or equal to 00:30.

Column T has numerous last names, so I need to specify who I want the times
on.

Thanks for any help.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Assume you specify the name in cell S1. Then

=SUMPRODUCT(--(T1:T1000=S1), --(AR1:AR1000<=TIME(0,30,0)))

or, equivalently:

=SUMPRODUCT(--(T1:T1000=S1), --(AR1:AR1000<=1/48))


In article ,
Denise wrote:

I have a spread sheet that I need to count if -

If Column T is equal to a certain name (Davis) then I want to count the
times that are in Column AR that are less than or equal to 00:30.

Column T has numerous last names, so I need to specify who I want the times
on.

Thanks for any help.

  #3   Report Post  
bj
 
Posts: n/a
Default

try the sumproduct() function
= sumproduct(--(T1:T1000="Davis"),--(timevalue(AR1:AR1000)<=timevalue(00:30)))
the --( changes the logical true false to a 1,0 numeric
the arrays in each section must be the same size and can not be the
shorthand for entire columns

"Denise" wrote:

I have a spread sheet that I need to count if -

If Column T is equal to a certain name (Davis) then I want to count the
times that are in Column AR that are less than or equal to 00:30.

Column T has numerous last names, so I need to specify who I want the times
on.

Thanks for any help.

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(T1:T100="Davis"),--(AR1:AR100<=TIME(0,30,0)),AR1:AR100)

format the cell as [hh]:mm to cater for more than 24 hours

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Denise" wrote in message
...
I have a spread sheet that I need to count if -

If Column T is equal to a certain name (Davis) then I want to count the
times that are in Column AR that are less than or equal to 00:30.

Column T has numerous last names, so I need to specify who I want the

times
on.

Thanks for any help.



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
Same Question with one more addition of a dash to count Mahendra Excel Discussion (Misc queries) 0 August 4th 05 11:37 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
To Bob ( count question ) Nigel Excel Discussion (Misc queries) 3 April 28th 05 01:32 PM
complex count question JBoulton Excel Worksheet Functions 13 March 24th 05 02:57 AM
Count function question John Excel Worksheet Functions 1 November 29th 04 10:23 PM


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