Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Count consecutive dates only

Running Excel 2003 on XP.
What would be the macro to *only* count the number of *consecutive*
rows from the max date backward (don't count any other rows) and get
the earliest date of that series in the final result? Here's a sample.
Thanks in advance for any tips/direction on this!
Input
ID Event Event Date
1 Create 4/21/06 (count)
1 Create 4/20/06 (count)
1 Create 4/19/06 (count)
2 Complete 4/21/06 (count)
2 Complete 4/20/06 (count)
2 Complete 4/19/06 (count)
2 Complete 7/05/05 (don't count)
2 Complete 7/04/05 (don't count)
2 Complete 7/03/05 (don't count)
3 Update 4/21/06 (count)
3 Update 9/13/05 (don't count)
3 Update 8/25/04 (don't count)

Desired Output
ID Event Since Date Count
1 Create 4/19/06 3
2 Complete 4/19/06 3
3 Update 4/21/06 1

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
Return Summed Count of Multiple Consecutive Numeric Values Sam via OfficeKB.com Excel Worksheet Functions 4 April 10th 06 10:35 PM
COUNT IF BETWEEN DATES kathi Excel Worksheet Functions 7 February 15th 06 04:14 PM
how would I count dates (not # of days) in cells that fall betwee. sailingscotts Excel Worksheet Functions 3 August 16th 05 04:29 AM
count date occurances in range of dates... Alex Excel Worksheet Functions 2 July 27th 05 04:15 PM
Formula to count number of dates in an array Lilasviolet Excel Worksheet Functions 2 April 7th 05 07:44 PM


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