I have a tally sheet with field inputs of nurses working days. I need to separate # of week days and of weekend days. The sheet looks like this :
[TABLE="class: grid, width: 50, align: left"]
<tbody>[TR]
[TD]Site[/TD]
[TD]Name[/TD]
[TD]Dates in 2013[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]MK[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl66, width: 162"]05,12,19,26 Jan,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]PN[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl66, width: 162"]21,26,27 Jan,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]RM[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl66, width: 162"]29 Jan,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I did some cleaning first: TRIM(SUBSTITUTE(UPPER(C3),"JAN"," "))
I have tried different combinations of
* MID(<source>,FIND(",",<source>+1,2)
* MID(<source>,1,FIND(" ",<source>-1))
And proceed so forth step-by-step, but is there a better way (vba macro?) to get a result of separating the chain of days worked into individual dates and count the number of weekdays and of weekend days:
[TABLE="class: grid, width: 50, align: left"]
<tbody>[TR]
[TD]Site[/TD]
[TD]Name[/TD]
[TD]Dates in 2013[/TD]
[TD]Weekdays[/TD]
[TD]Weekend Days[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]MK[/TD]
[TD]05,12,19,26 Jan,[/TD]
[TD][/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]PN[/TD]
[TD]21,26,27 Jan,[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]RM[/TD]
[TD]29 Jan,[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you for anyone who comes with any idea, even partial ideas and I promise to post my findings for everyone to see. Tallies of this kind are used all over the place.
Alain
[TABLE="class: grid, width: 50, align: left"]
<tbody>[TR]
[TD]Site[/TD]
[TD]Name[/TD]
[TD]Dates in 2013[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]MK[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl66, width: 162"]05,12,19,26 Jan,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]PN[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl66, width: 162"]21,26,27 Jan,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]RM[/TD]
[TD][TABLE="width: 162"]
<tbody>[TR]
[TD="class: xl66, width: 162"]29 Jan,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I did some cleaning first: TRIM(SUBSTITUTE(UPPER(C3),"JAN"," "))
I have tried different combinations of
* MID(<source>,FIND(",",<source>+1,2)
* MID(<source>,1,FIND(" ",<source>-1))
And proceed so forth step-by-step, but is there a better way (vba macro?) to get a result of separating the chain of days worked into individual dates and count the number of weekdays and of weekend days:
[TABLE="class: grid, width: 50, align: left"]
<tbody>[TR]
[TD]Site[/TD]
[TD]Name[/TD]
[TD]Dates in 2013[/TD]
[TD]Weekdays[/TD]
[TD]Weekend Days[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]MK[/TD]
[TD]05,12,19,26 Jan,[/TD]
[TD][/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]PN[/TD]
[TD]21,26,27 Jan,[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]MUL[/TD]
[TD]RM[/TD]
[TD]29 Jan,[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you for anyone who comes with any idea, even partial ideas and I promise to post my findings for everyone to see. Tallies of this kind are used all over the place.
Alain