logo elektroda
logo elektroda
X
logo elektroda

[EXCEL] - Creation of a formula for templates with attendance list

Darekstw 5730 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16854728
    Darekstw
    Level 8  
    Hello

    I have a problem, I work on the template as in the attachment, and I would like to add a formula to it in one line that, after entering the date in another line, will determine whether or not a given employee is at work on that day:

    [EXCEL] - Creation of a formula for templates with attendance list

    I don't quite know how to tackle the topic below is the formula that counts the total number of days in the year of absence:

    = SUM OF CONDITIONS (Absence_eventory [Days]; Absence_reading [Employee's first and last name]; Employee_Val; Absence_check [Start Date]; "> =" & DATE (Calendar_year; 1; 1); Absence_of [End Date]; "
  • ADVERTISEMENT
  • #2 16855121
    rajszym
    Level 21  
    Darekstw wrote:
    I don't quite know how to tackle the topic below is the formula that counts the total number of days in the year of absence:
    = SUM OF CONDITIONS (Absence_eventory [Days]; Absence_reading [Employee's first and last name]; Employee_Val; Absence_check [Start Date]; "> =" & DATE (Calendar_year; 1; 1); Absence_of [End Date]; "
  • ADVERTISEMENT
  • #3 16855147
    Prot
    Level 38  
    Darekstw wrote:
    I act :not: on the template as in the attachment, and I would like to add a formula to it in one line


    Your buddy activities with such a spreadsheet should start with "tidying up" it before you start "improving" it :cunning:

    The formulas presented in the attached file (both those in the "first weeks" of the Calendar View and those in the "next weeks") generate for me - Excel 2007 - almost only errors :( .

    I can see that these errors made in Excel 2013 appear in several places, e.g .:
    -criterion TEXT (DATE (Calendar_year, ROW ($ A1), 1), "ddd") = LEFT (C $ 5, 5) only coincidentally in a few lines it is true - because you don't know why you made the column headings 2-5 characters against the "ddd" format;
    - criterion AK7 + 1
  • ADVERTISEMENT
  • #4 16855199
    Darekstw
    Level 8  
    rajszym wrote:
    Darekstw wrote:
    I don't quite know how to tackle the topic below is the formula that counts the total number of days in the year of absence:
    = SUM OF CONDITIONS (Absence_eventory [Days]; Absence_reading [Employee's first and last name]; Employee_Val; Absence_check [Start Date]; "> =" & DATE (Calendar_year; 1; 1); Absence_of [End Date]; "
  • ADVERTISEMENT
  • Helpful post
    #5 16855387
    rajszym
    Level 21  
    Darekstw wrote:
    My point here is that after giving on 31/01/2017, in the above case, I will get 1 and the same result for 02/01/2017 and 02/02/2017, while for working days the value is 0

    Ok. I admit I didn't even read the formula thoroughly. Maybe yes:
    Code: Bash
    Log in, to see the code
  • #6 16869489
    Darekstw
    Level 8  
    And are we able to bite it with a formula so that we give two dates, i.e. the period from - to, e.g. the range in 5 days from 01/01/2017 to 01/01/2017 and we get the value 1 for each day separately when not present and 0 when present? Ie.
    01-01-2017 -> 1
    02-01-2017 -> 0
    03-01-2017 -> 0
    04-01-2017 -> 1
    05-01-2017 -> 0
ADVERTISEMENT