Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Max
 
Posts: n/a
Default

One way

Assume this table is in Sheet1, A1:C10
(dates in col A are assumed "real" dates)

Date Time Product
20050208 93034 S1
20050208 93035 A6
20050208 93035 O0
20050208 93035 I1
20050208 93035 E5
20050208 93036 A5
20050208 93236 S7
20050208 93236 B7
20050208 93237 X3


And this table below is in Sheet2, A1:B7

20050208
93030 0
93100 6
93130 0
93200 0
93230 0
93300 3


Put in B2:

=SUMPRODUCT((Sheet1!$A$2:$A$10=$B$1)*(Sheet1!$B$2: $B$10<A2))

Put in B3:

=SUMPRODUCT((Sheet1!$A$2:$A$10=$B$1)*(Sheet1!$B$2: $B$10=A2)*(Sheet1!$B$2:$B
$10<A3))

Copy B3 down to B7

This'll return the results indicated

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"carl" wrote in message
...
My data is arranged as so:

Date Time Product
20050208 93034 S1
20050208 93035 A6
20050208 93035 O0
20050208 93035 I1
20050208 93035 E5
20050208 93036 A5
20050208 93236 S7
20050208 93236 B7
20050208 93237 X3


Would like a formula to place in ColB of the table below that counts the
number of products displayed for a given day between the times in ColA.

For
example, B3 would be counting the number of products between 93030 and

93100
including 93100.
20050208
93030 0
93100 6
93130 0
93200 0
93230 0
93300 3

Thank you in advance.




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
Countif formula with multiple criteria ie >30 and <60? Dali Excel Worksheet Functions 2 January 7th 05 04:49 PM
Countif with dynamic criteria FinChase Excel Worksheet Functions 5 January 6th 05 07:19 PM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM
COUNTIF MEETING TWO CRITERIA eg>5 AND <10.1 John Higgins Excel Worksheet Functions 2 December 22nd 04 01:19 AM
How do I get the COUNTIF criteria to recognize only month and yea. Omega Excel Worksheet Functions 4 November 6th 04 07:22 AM


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