ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How many days in a row does an employee work within a 2 month peri (https://www.excelbanter.com/excel-discussion-misc-queries/251211-how-many-days-row-does-employee-work-within-2-month-peri.html)

LEG

How many days in a row does an employee work within a 2 month peri
 
Hi!
In my worksheet I have in coloumn A employees and in coloumn C and forward I
have every day in a two month period. F.eks. 1. november to 31. december (61
coloums in all). In each cell there is either a blank cell og a no. which
represents the no. of hours they worked that day.

I need a formula/macro/VBA ... which tells me how many days in a row each
employee had in the two month periode.

Any help would be great.

--
LEG-denmark

trip_to_tokyo[_3_]

How many days in a row does an employee work within a 2 month peri
 
Use the following:-

=COUNTA(A3:BI3)

This will count the number of cells that are not blank in the specified
range.

This will give you the number of days that they worked.

If my comments have helped please hit Yes.



"LEG" wrote:

Hi!
In my worksheet I have in coloumn A employees and in coloumn C and forward I
have every day in a two month period. F.eks. 1. november to 31. december (61
coloums in all). In each cell there is either a blank cell og a no. which
represents the no. of hours they worked that day.

I need a formula/macro/VBA ... which tells me how many days in a row each
employee had in the two month periode.

Any help would be great.

--
LEG-denmark


trip_to_tokyo[_3_]

How many days in a row does an employee work within a 2 month peri
 
Hi LEG.

I have just put up a worked example for you at:-

http://www.pierrefondes.com/

- home page (item number 24).

Please hit Yes if my comments have helped and / or my proposed solution is
correct.

My example is in EXCEL 2007.

Thanks.



"LEG" wrote:

Hi!
In my worksheet I have in coloumn A employees and in coloumn C and forward I
have every day in a two month period. F.eks. 1. november to 31. december (61
coloums in all). In each cell there is either a blank cell og a no. which
represents the no. of hours they worked that day.

I need a formula/macro/VBA ... which tells me how many days in a row each
employee had in the two month periode.

Any help would be great.

--
LEG-denmark



All times are GMT +1. The time now is 12:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com