I have a list of excel worksheet on Time shift for "Nght" amd "Day". This list will be update everyday.
What i am trying to do :
On column B1 have a header name call shift. Starting from B2 onward will be the date time, for example like :
<TABLE style="WIDTH: 81pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=108 border=0 x:str><COLGROUP><COL style="WIDTH: 81pt; mso-width-source: userset; mso-width-alt: 3949" width=108><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 81pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right width=108 height=17 x:num="40746.224722222221">2011-07-22 5:23</TD></TR></TBODY></TABLE>
There will have randomly numbers of rows for the same date with different time daily.
For Night shift is 1200am to 830am
For Day shift is from 1200pm to 1830pm
So i will like to do number of count for night and day shift for daily. For example,from B2 To B5 have the date for 2011-07-22 and time between 1200pm to 1830pm listed like "2011-07-22 5:23". So from cells B2 to B5, there are total of 4 counts for day shift.
I will like to do a macro, to count out the number of cells for daily Night and Day shift. Then maybe print out the number of counts for Night and Day for the date on the Other worksheet.
Is there anyway to do the numbers of counts for the same date follow by the timing. Then determine whether it is day or night shift. After that determine the numbers of counts by cells for Night or Day shift for that day.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Really need help with this. Please guide or suggest ways.
Thanks..
What i am trying to do :
On column B1 have a header name call shift. Starting from B2 onward will be the date time, for example like :
<TABLE style="WIDTH: 81pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=108 border=0 x:str><COLGROUP><COL style="WIDTH: 81pt; mso-width-source: userset; mso-width-alt: 3949" width=108><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 81pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right width=108 height=17 x:num="40746.224722222221">2011-07-22 5:23</TD></TR></TBODY></TABLE>
There will have randomly numbers of rows for the same date with different time daily.
For Night shift is 1200am to 830am
For Day shift is from 1200pm to 1830pm
So i will like to do number of count for night and day shift for daily. For example,from B2 To B5 have the date for 2011-07-22 and time between 1200pm to 1830pm listed like "2011-07-22 5:23". So from cells B2 to B5, there are total of 4 counts for day shift.
I will like to do a macro, to count out the number of cells for daily Night and Day shift. Then maybe print out the number of counts for Night and Day for the date on the Other worksheet.
Is there anyway to do the numbers of counts for the same date follow by the timing. Then determine whether it is day or night shift. After that determine the numbers of counts by cells for Night or Day shift for that day.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Really need help with this. Please guide or suggest ways.
Thanks..
Last edited: