LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Counting number of days up to an empty cell then start over again

What I am trying to do is count the number of days an employee works in a
row. Below is a sample of my data, it is exported from a discoverer query.

****Sample Data****
A B C D E F
Dates name1 name2 name3 name4
1 29-Apr-07
2 30-Apr-07 8.00 8.00 8.00 8.50
3 1-May-07 8.00 8.00 8.00 8.50
4 2-May-07 8.00 8.00 8.00 8.50
5 3-May-07 8.00 8.00 8.50
6 4-May-07 8.00 8.00 8.00 8.50
7 5-May-07 4.00
8 * 7-May-07 8.00 8.00 8.00 8.50
9 8-May-07 8.00 8.00 8.00 8.50

On another worksheet i have the names in column A1:A4. What I want to do is
count the number of days they worked in a row and put that number in cell
B1:B4 then to start back up after an empty cell and place the next total in
the next cell to the right.

****Example of desired output****

A B C D
name1* 6 2
name2 3 1 2
name3 5 2
name4 5 2

*= There was a break in dates because nobody worked that day. The data will
span approximately a years worth, some days wil appear for some and not for
others based on if they worked on a saturday or sunday or both. The end goal
is to monitor the number of days in a row that an employee works without a
day off. I will then do conditional formating to shade those that are over 12
days in a row.

Not sure if this is possible in a formula or if it will require VB coding.
Any help in resolving this would be greatly appreciated.
 
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
AFTER ARRIVAL FROM 5TH DAYS TO START CHARGES [email protected] Excel Worksheet Functions 4 November 8th 07 04:26 AM
find first empty cell in column and start transpose next row in that cell ali Excel Discussion (Misc queries) 6 July 21st 07 11:55 PM
Counting Specific Number of Days across Multiple Months [email protected] Links and Linking in Excel 1 April 14th 07 12:29 PM
a cell to display number of days in a month given in another cell sudip Excel Worksheet Functions 1 September 5th 06 03:54 PM
Empty cells at start of x axis Nanofish Charts and Charting in Excel 1 August 13th 05 03:24 PM


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