Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anthony
 
Posts: n/a
Default Counting Cells with time value

Hi,
I wish to count the times that a column (lets say column 'C') shows a time
that is before 12:00, but only count this cell if the value of the cell
adjacent is a certain number.
example :-
Coulmns A B C
Row 1 3 11:23
Row 2 2 09:00
Row 3 3 14:55

So in the example I want to show how many times the value in column C is
before 12:00 when the value in column B = 3 - the answer given would be 1

Hope this is clear, and thanks in advance
Anthony

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=SUMPRODUCT(--(B1:B3=3),--(C1:C3<TIME(12,0,0)))



In article ,
"Anthony" wrote:

Hi,
I wish to count the times that a column (lets say column 'C') shows a time
that is before 12:00, but only count this cell if the value of the cell
adjacent is a certain number.
example :-
Coulmns A B C
Row 1 3 11:23
Row 2 2 09:00
Row 3 3 14:55

So in the example I want to show how many times the value in column C is
before 12:00 when the value in column B = 3 - the answer given would be 1

Hope this is clear, and thanks in advance
Anthony

  #3   Report Post  
Anthony
 
Posts: n/a
Default

thanks JE McGimpsey it worked !!

rgds
Anthony

"JE McGimpsey" wrote:

one way:

=SUMPRODUCT(--(B1:B3=3),--(C1:C3<TIME(12,0,0)))



In article ,
"Anthony" wrote:

Hi,
I wish to count the times that a column (lets say column 'C') shows a time
that is before 12:00, but only count this cell if the value of the cell
adjacent is a certain number.
example :-
Coulmns A B C
Row 1 3 11:23
Row 2 2 09:00
Row 3 3 14:55

So in the example I want to show how many times the value in column C is
before 12:00 when the value in column B = 3 - the answer given would be 1

Hope this is clear, and thanks in advance
Anthony


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
counting text cells Debbie Excel Worksheet Functions 4 February 8th 05 09:00 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM
split combined Time Date cells Mark Ada Excel Discussion (Misc queries) 2 December 1st 04 03:06 AM
Counting "rows", i.e. simultaneous criteria for multiple cells gkline Excel Worksheet Functions 2 November 19th 04 07:30 AM
Pivot table, how do you exclude counting cells with formulas as a Greg Bobak Excel Worksheet Functions 4 November 4th 04 12:05 AM


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