Making a running 365 absence tracker

HorizonHunter

New Member
Joined
Nov 2, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Building a staff absence tracker for easier management. Column A is names. Column B is a running total. Column C is the date of an absence and Column D is the reason (excused or not). Column C and D essentially repeat for each subsequent absence a person has. I am using data validation to standardize the excuse options.

I'm currently using COUNT in Column B to count all numbers in the row, but that is returning excused absences as well. Ideally it would check each excuse column (D), and if not excused, count that date (C) towards the total (B).

Second complication is making it a running year count. So if someone has an absence on 11/2/2022, it would no longer be counted 11/2/2023.

Third complication is Tardy, which every 3 count as 1 absence.

NameTotalDateReasonDateReason
John112/15/22Sick
Mary011/6/22Excused
Sue010/31/22Sick
Dave112/22/22Sick12/3/22Tardy

I've looked in to DCOUNT, INDEX, MATCH, and VLOOKUP, but either I'm implementing them wrong, or I need to reconsider the current layout of the sheet.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about:

(This doesn't take the 3*Tardys into consideration, sorry)

Mr Excel Questions 71.xlsm
ABCDEF
1NameTotalDateReasonDateReason
2John12022-12-15Sick
3Mary02011-06-22Excused
4Sue12022-10-31Sick
5Dave22022-12-22Sick2012-03-22Tardy
6Bill12022-12-23Excused2012-03-23Tardy
HorizonHunter
Cell Formulas
RangeFormula
B2:B6B2=SUM(ISEVEN(COLUMN(D2:F2))*(D2:F2<>"Excused")*(ISBLANK(D2:F2)=FALSE))
 
Upvote 0
Try this, I think it uses all 3 criteria. But, I do strongly agree with you that your layout is problematic as you will always need to adjust your formulas.
If you input data into 3 columns (Name, Date, Excuse) you can develop PIVOT tables and other Summarizations more easily.

Mr Excel Questions 71.xlsm
ABCDEFGHIJKL
1NameTotalDateReasonDateReasonDateReasonDateReasonDateReason
2John12022-12-15Sick
3Mary02011-06-22Excused
4Sue12022-10-31Sick
5Dave32022-12-22Sick2022-03-22Tardy2022-03-22Sick2022-03-22Sick2022-03-22Tardy
6Bill12022-12-23Excused2022-03-23Tardy2023-03-23Tardy2022-03-23Tardy2022-03-23Tardy
7Ron12022-12-24Excused2022-03-24Sick2023-03-24Tardy2022-03-24Tardy2022-03-24Tardy
HorizonHunter
Cell Formulas
RangeFormula
B2:B7B2=SUM(ISEVEN(COLUMN(D2:L2))*(D2:L2<>"Excused")*(D2:L2<>"Tardy")*(ISBLANK(D2:L2)=FALSE) *ISODD(COLUMN(C2:K2))*IFERROR(YEAR(C2:K2)=2022,0)) + INT(SUM((IFERROR(YEAR(C2:K2)=2022,0))*(D2:L2="Tardy"))/3)
 
Upvote 0
Try this, I think it uses all 3 criteria. But, I do strongly agree with you that your layout is problematic as you will always need to adjust your formulas.
If you input data into 3 columns (Name, Date, Excuse) you can develop PIVOT tables and other Summarizations more easily.
I'm gonna try this later after I wrap my head around it. Request comes from my tech illiterate spouse, so trying to make her job easier, using the format she's used to.
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

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