Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Count of time (attendance)

Dear Team,

I have employee attendance data as below

Given;
A column emp id
B column emp name
C column reporting1
D column reporting 2
E column in time for day 1
F column out time for day 1
G column working mins for day 1

I have used below formula to count number of days employee are late that is after 10 am & early logout that is before 6 pm.

For 10 am
=symproduct((mod(column(E5:BL5),3)=2)*(E5:BL5time (10,0,))))

For <6pm
Last function <time(6,0,)

Question;

1. After 10 am formula counts blank cells also (if an employee absent in time cell is blank)

2. After 10 am formula not counting time after 12 noon. Observed for one employee in time is 12:41 pm. But this not included in the count formula.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Count of time (attendance)

Hi,

Am Sat, 9 Sep 2017 11:27:48 -0700 (PDT) schrieb TIMOTHY:

Given;
A column emp id
B column emp name
C column reporting1
D column reporting 2
E column in time for day 1
F column out time for day 1
G column working mins for day 1

I have used below formula to count number of days employee are late that is after 10 am & early logout that is before 6 pm.

For 10 am
=symproduct((mod(column(E5:BL5),3)=2)*(E5:BL5time (10,0,))))

For <6pm
Last function <time(6,0,)

Question;

1. After 10 am formula counts blank cells also (if an employee absent in time cell is blank)

2. After 10 am formula not counting time after 12 noon. Observed for one employee in time is 12:41 pm. But this not included in the count formula.


try:
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5TIME(10,,)))
and
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5<TIME(18,,)))


Regards
Claus B.
--
Windows10
Office 2016
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Count of time (attendance)

Hi again,

Am Sat, 9 Sep 2017 20:49:55 +0200 schrieb Claus Busch:

try:
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5TIME(10,,)))
and
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5<TIME(18,,)))


sorry, the second formula in the first answer is wrong.
Try:
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5TIME(10,,)))
and
=SUMPRODUCT(--(MOD(COLUMN(F5:BL5),3)=0),--(F5:BL5<""),--(F5:BL5<TIME(18,,)))


Regards
Claus B.
--
Windows10
Office 2016
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Count of time (attendance)

Thank you for your reply.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Count of time (attendance)

Thank you again for your promptness.

Formula working.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Count of time (attendance)

On Sunday, 10 September 2017 00:24:10 UTC+5:30, Claus Busch wrote:
Hi again,

Am Sat, 9 Sep 2017 20:49:55 +0200 schrieb Claus Busch:

try:
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5TIME(10,,)))
and
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5<TIME(18,,)))


sorry, the second formula in the first answer is wrong.
Try:
=SUMPRODUCT(--(MOD(COLUMN(E5:BL5),3)=2),--(E5:BL5<""),--(E5:BL5TIME(10,,)))
and
=SUMPRODUCT(--(MOD(COLUMN(F5:BL5),3)=0),--(F5:BL5<""),--(F5:BL5<TIME(18,,)))


Regards
Claus B.
--
Windows10
Office 2016


Claus... I am Still Using your work out done for me.... Really Appreciates your Prompt help in this forum
Reply
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
calculate a continuous percent of attendance -if then using count. IrisRandom* Excel Worksheet Functions 2 May 3rd 07 07:23 PM
Count from ATTENDANCE to ANNUAL Pietro Excel Discussion (Misc queries) 6 March 13th 07 05:13 AM
how do i set up a time and attendance database/spreadsheet? gviele Excel Discussion (Misc queries) 0 March 18th 06 12:51 AM
time and attendance JGB Excel Worksheet Functions 0 January 25th 06 05:20 PM
attendance sheet to add time but not..... Erny Meyer Excel Worksheet Functions 0 March 23rd 05 04:11 PM


All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"