counting consecutive days worked.....

chris_sweezy

New Member
Joined
Aug 25, 2018
Messages
14
Trying to count employee's consecutive days worked (no more than 13, 14th has to be a rest day). Problem is.. count should restart after an absence.


8/18/28/38/48/68/78/8
Consecutive Days Worked InInInInInInIn
1110111
1101011
0000000
1111111
1100111
 
Last edited by a moderator:
EMPLOYEE NUMBEREMPLOYEE NAMECLASSConsecutive Days Worked8/18/28/38/48/68/78/88/98/108/118/128/138/148/158/168/178/188/198/208/218/228/238/248/258/268/27
APA6128ALL, DAVID "RANDY"GF#VALUE!11101111111111110011111110
APA0430ALVARADO, JOSE ANGELLead
11010111111111011011101110
APA8155ARDOIN, BRANDONLead00000000000000000000000000
APA0057ARRIAGA MORALES, JUANCarpenter11111111111111111111111100

Maybe this helps.. need to know how many consecutive days worked from current date. Restarting when day off (o) occurs.
 
Last edited by a moderator:
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
need to know how many consecutive days worked from current date.
You have mentioned this a couple of times, yet nowhere on your sheet are any dates so how do we know where to start and which way to count?

Also, it might help if you included the (manually entered) expected results for your data.
 
Upvote 0
Good morning! The formula is working now. Thank you. Could we tweak it? An employee can't work more than 13 consecutive days. If day is missed, count starts over. Certain this would include TODAY formula, but have no idea how to implement. My apologies for not stating objective more clearly initially. Again, thank for your patience and brilliance! You are very helpful.
 
Upvote 0
As Peter points out, there are no dates in your example, so there's no way to know how they relate to today.

Also, some specific examples of what your trying to do would be helpful.
 
Upvote 0
Re your PM, please see post #14 , and keep your questions in the forum.

Thanks.
 
Upvote 0
As Peter points out, there are no dates in your example, so there's no way to know how they relate to today.

Also, some specific examples of what your trying to do would be helpful.

An employee can't work more than 13 consecutive days. If day is missed, count starts over. Certain this would include TODAY formula, but have no idea how to implement. My apologies for not stating objective more clearly initially. Again, thank for your patience and brilliance! You are very helpful.

EMPLOYEE NUMBEREMPLOYEE NAMECLASSConsecutive Days Worked8/18/28/38/48/68/78/88/98/108/118/128/138/148/158/168/178/188/198/208/218/228/238/248/258/26
APA6128ALL, DAVID "RANDY"GF
8
1111111111111111111111111
APA0430ALVARADO, JOSE ANGELLead
7
1110111111111111001111111
APA8155ARDOIN, BRANDONLead01101011111111101101110111
APA0057ARRIAGA MORALES, JUANCarpenter120000000000000000000000000
APA1964BARULICH, NICHOLASGF
8
1111111111111111111111110
APA9168BOLDEN, KENNETHLead12100111111111101101111111
APA8349BROWN, JASONForeman81111111111111111101101111
APA3413BROWN, ROBERTLead
11
111111111111111101011111
APA7055BROUSSARD, GREGORYHelper00111111111111111101111111
APA0028BUCKNER, JEREMYCarpenter00000000000000000000000000
 
Last edited by a moderator:
Upvote 0

EMPLOYEE NUMBER
EMPLOYEE NAMEclassConsecutive Days Worked8/18/28/38/48/68/78/88/98/108/118/128/138/148/158/168/178/18
APA6128ALL, DAVID "RANDY"GF
8
11111111111111110
APA0430ALVARADO, JOSE ANGELLead
5
11001111111111011
APA8155ARDOIN, BRANDONLead300010111110000000
APA0057ARRIAGA MORALES, JUANCarpenter911100000001111111
APA1964BARULICH, NICHOLASGF
8
11011111111111011
APA9168BOLDEN, KENNETHLead1211101111111111111
APA8349BROWN, JASONForeman1111111111111111111
APA3413BROWN, ROBERTLead
7
01111111111111111
APA7055BROUSSARD, GREGORYHelper000011111110000000
APA0028BUCKNER, JEREMYCarpenter000000000000000000
APA7704CALDWELL, MATTHEWHelper
3
00000000000000000
 
Last edited by a moderator:
Upvote 0
As Peter points out, there are no dates in your example, so there's no way to know how they relate to today.

Also, some specific examples of what your trying to do would be helpful.

The columns do have dates. It just occurred to me.... the font is white! Kinda hard to see... LoL...
 
Upvote 0
An employee can't work more than 13 consecutive days. If day is missed, count starts over. Certain this would include TODAY formula, but have no idea how to implement. My apologies for not stating objective more clearly initially. Again, thank for your patience and brilliance! You are very helpful.

The columns have dates. An employee can't work more than 13 consecutive days. If day is missed, count starts over. Certain this would include TODAY formula, but have no idea how to implement. My apologies for not stating objective more clearly initially. Again, thank for your patience and brilliance! You are very helpful.
 
Last edited by a moderator:
Upvote 0
The columns do have dates. It just occurred to me.... the font is white! Kinda hard to see... LoL...
That sure was a trap! ;)

OK, can you post another set of sample data (with dates we can read) with the expected result for each row entered manually and explain again why those are the expected results?

Also, why is just one date (8/5) missing from your previous sample data?
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top