Export & Import Attendance
Navigation Path
Export & Import → Attendance
URL
/export-import/export-import-attendance
Page Description
- Allows bulk export and import of employee attendance data via Excel files
- Supports filtering attendance by month, year, employee, client, and unit
- Provides two import methods: standard attendance and exported sheet
- Validates attendance data before importing into the system
- Provides sample Excel template with built-in instructions for proper data format
- Streamlines attendance management and data migration
1. Page Components
Export Example Link
| Element | Description |
|---|---|
| Export Example In Excel | Link to download sample Excel template |
| Location | Top-right corner of the page |
| Function | Downloads pre-formatted Excel file with required attendance columns, built-in instructions, and data format examples |
| File Format | Excel (.xlsx) |
| Contents | Column headers, field descriptions, validation rules, sample attendance data, and usage instructions |
Important: The downloaded Excel template is a comprehensive guide that includes:
- All required and optional columns for attendance data
- Detailed instructions for each field (date, employee, attendance status, hours, etc.)
- Data format examples and sample attendance records
- Validation rules and requirements
- Color coding for required vs optional fields
- Attendance status codes and their meanings
- Date and time format guidelines
Always refer to the template instructions before filling attendance data.
2. Filter Section
Search & Filter Fields
| Field Name | Type | Description |
|---|---|---|
| Month | Dropdown | Select attendance month (e.g., DECEMBER) |
| Year | Dropdown | Select attendance year (e.g., 2025) |
| Employee | Multi-select Search | Filter by employee(s) - supports multiple selection |
| Client | Multi-select Search | Filter by client(s) - supports multiple selection |
| Unit | Multi-select Search | Filter by unit(s) - supports multiple selection |
Filter Field Details
Month Field
- Type: Single select dropdown
- Options: All 12 months
- Required: Yes (for export)
- Purpose: Specify which month's attendance to export/import
Year Field
- Type: Single select dropdown
- Options: Available years in system
- Required: Yes (for export)
- Purpose: Specify which year's attendance to export/import
Employee Field
- Type: Multi-select dropdown with search
- Features:
- Search employees by name or code
- Select multiple employees
- Clear button (X) to remove selections
- Upload icon for bulk selection
- Display Format:
[Employee Code] | [Employee Name] - Examples:
PFSBBAN691 | GOWRAMMAPFSBHYD119 | SK JAHIDUL ALMO SK JAHIDUL ALMOPFSBDDN229 | BINESH DEVIPFSBS5763 | RAM GOCHHAYAT
Client Field
- Type: Multi-select dropdown with search
- Features:
- Search clients by company name
- Select multiple clients
- Clear button (X) to remove selections
- Upload icon for bulk selection
- Display: Shows "NULL" if no client assigned
- Purpose: Filter attendance by specific client(s)
Unit Field
- Type: Multi-select dropdown with search
- Features:
- Search units by name or code
- Select multiple units
- Clear button (X) to remove selections
- Upload icon for bulk selection
- Display Format:
[Unit Code] | [Unit Name] - Examples:
UNT00007683 | TATA TELE SERVICES, NOIDAUNTPFS00008321 | BLS INTERNATIONAL SERVICES LTD.UNT004989 | GOLDEN SPARROW KESSEL MALL, KURUKSHETRA
Filter Action Buttons
| Button | Color | Description |
|---|---|---|
| View | Purple/Blue | Generates attendance data based on selected filters |
| Reset | Gray | Clears all filter selections |
View Button Behavior:
- Applies selected filters
- Generates attendance records matching criteria
- Prepares data for export (if using export function)
- Shows filtered attendance count
Reset Button Behavior:
- Clears all month, year, employee, client, and unit selections
- Resets page to default state
- Does not affect uploaded files
3. Import Section 1: Attendance Excel File
Section Label
"Select (Attendance Excel) File:"
Upload Area
| Element | Type | Description |
|---|---|---|
| File Selection Area | Drag & Drop / Click to Browse | Dashed border box for file upload |
| Accepted Formats | .xlsx, .xls | Excel file formats only |
| Upload Methods | Drag-and-drop or Click to browse | Two ways to select file |
| File Icon | Upload cloud icon | Visual indicator for file upload |
Upload Instructions
Text Display: "Upload or drag and drop (.xlsx, .xls)"
Upload Methods:
-
Drag and Drop
- Drag Excel file from file explorer
- Drop into the dashed border area
- File name appears after selection
-
Click to Browse
- Click anywhere in the upload area
- System opens file browser dialog
- Navigate and select Excel file
- Click "Open" to select file
Import Button (Section 1)
| Button | Color | Description |
|---|---|---|
| Import | Purple/Blue | Processes and imports attendance data from selected Excel file |
Function: Import standard attendance data Requirements: Valid Excel file must be selected Process:
- Validates file format (.xlsx or .xls)
- Reads Excel attendance data
- Validates date formats and attendance codes
- Checks employee existence in system
- Validates against business rules
- Imports valid attendance records
- Shows success/error summary
4. Import Section 2: Attendance Excel Exported Sheet
Section Label
"Select (Attendance Excel) Exported Sheet File:"
Upload Area
| Element | Type | Description |
|---|---|---|
| File Selection Area | Drag & Drop / Click to Browse | Dashed border box for file upload |
| Accepted Formats | .xlsx, .xls | Excel file formats only |
| Upload Methods | Drag-and-drop or Click to browse | Two ways to select file |
| File Icon | Upload cloud icon | Visual indicator for file upload |
Purpose of Exported Sheet Import
This section is specifically for importing attendance data that was:
- Previously exported from this system using the "View" button
- Modified/corrected offline
- Ready to be re-imported back into the system
Use Cases:
- Bulk attendance corrections
- Offline attendance editing
- Data migration from previous periods
- Reconciliation of attendance records
Import Button (Section 2)
| Button | Color | Description |
|---|---|---|
| Import | Purple/Blue | Processes and imports attendance from exported sheet |
Function: Import previously exported attendance data Difference from Section 1: This import expects the exact format that was exported from the system Requirements: File must be in exported sheet format
5. Excel Template Download
Template Contents
The downloadable Excel template includes:
- Pre-formatted columns with all required attendance data fields
- Built-in instructions explaining each column and data format
- Attendance status codes (Present, Absent, Leave, Holiday, etc.)
- Date format guidelines (DD/MM/YYYY)
- Time format specifications (for in-time, out-time, hours)
- Sample attendance records showing correct data format
- Color-coded headers indicating required vs optional fields
- Notes section with important attendance rules
- Validation rules embedded in the Excel file
How to Use Template
- Click "Export Example In Excel" to download
- Open the downloaded file in Microsoft Excel or compatible software
- Review the instructions sheet/row in the template
- Fill attendance data starting from the designated row
- Use correct attendance codes as specified in the template
- Follow the date and time format guidelines provided
- Save the file and upload for import
Note: Do not modify the template structure, column names, or column order. The Excel file contains all necessary instructions and attendance codes.
Template Features
The Excel template is designed to be self-explanatory and includes:
| Feature | Description |
|---|---|
| Header Row | Column names with clear labels (Date, Employee Code, Status, etc.) |
| Instruction Row/Sheet | Detailed explanation of each attendance field |
| Format Examples | Sample attendance records showing correct format |
| Attendance Codes | List of valid status codes (P, A, WO, PH, CL, SL, etc.) |
| Required Field Markers | Visual indicators (colors/symbols) for mandatory fields |
| Data Validation | Drop-downs for attendance status (if applicable) |
| Comments/Notes | Helpful tips and attendance rules within cells |
| Time Format Guide | Instructions for entering in-time, out-time, and hours |
Expected Template Structure
When you open the downloaded template, you will find:
- Instructions Section - Guidelines on how to fill attendance data
- Attendance Codes Legend - Explanation of all status codes
- Column Headers - Date, Employee Code, Employee Name, Status, Hours, etc.
- Sample Rows - Example attendance records in correct format
- Empty Rows - Space to enter attendance information
- Notes/Rules - Attendance policies and special requirements
6. Common Attendance Fields
Typical Attendance Data Structure
The Excel template typically includes the following fields:
| Field Name | Data Type | Required | Description |
|---|---|---|---|
| Date | Date | Yes | Attendance date (DD/MM/YYYY) |
| Employee Code | Text | Yes | Unique employee identifier |
| Employee Name | Text | Yes | Employee full name (for reference) |
| Attendance Status | Text/Code | Yes | P (Present), A (Absent), WO (Week Off), etc. |
| In Time | Time | No | Check-in time (HH:MM format) |
| Out Time | Time | No | Check-out time (HH:MM format) |
| Total Hours | Number | No | Total working hours |
| Overtime Hours | Number | No | Overtime hours worked |
| Unit | Text | Yes | Unit/Branch name or code |
| Shift | Text | No | Shift type (if applicable) |
| Remarks | Text | No | Additional notes or comments |
Note: The actual structure is defined in the downloadable template with complete field descriptions.
7. Attendance Status Codes
Common Attendance Codes
| Code | Full Form | Description |
|---|---|---|
| P | Present | Employee was present |
| A | Absent | Employee was absent |
| WO | Week Off | Weekly off day |
| PH | Public Holiday | Public/National holiday |
| CL | Casual Leave | Casual leave taken |
| SL | Sick Leave | Sick leave taken |
| EL | Earned Leave | Earned leave taken |
| LWP | Leave Without Pay | Unpaid leave |
| HD | Half Day | Half day present |
| PL | Privilege Leave | Privilege leave taken |
| OD | On Duty | On official duty outside |
| ML | Maternity Leave | Maternity leave (if applicable) |
Note: The complete list of valid attendance codes is provided in the downloadable Excel template. Always refer to the template for organization-specific codes.
8. Data Validation Rules
The system validates all imported attendance data against the following criteria:
Basic Validations
- Required Fields: Date, Employee Code, and Attendance Status must be filled
- Date Format: Must be in DD/MM/YYYY format and valid calendar date
- Employee Validation: Employee Code must exist in the system
- Status Code: Must match one of the valid attendance status codes
- Time Format: In-time and Out-time must be in HH:MM format (if provided)
Common Field Validations
| Field Type | Validation Rules |
|---|---|
| Date | DD/MM/YYYY format, valid calendar date, not future date |
| Employee Code | Must exist in system, alphanumeric |
| Attendance Status | Must match valid codes (P, A, WO, PH, etc.) |
| In Time | HH:MM format (00:00 to 23:59) |
| Out Time | HH:MM format, must be after In Time |
| Total Hours | Numeric, 0-24 hours, calculated from In/Out time |
| Overtime Hours | Numeric, 0-24 hours |
Business Validations
- Date Range: Attendance date must be within allowed date range
- Duplicate Check: No duplicate attendance for same employee on same date
- Leave Balance: Leave codes validated against available leave balance
- Unit Match: Employee must be assigned to the specified unit
- Shift Rules: Attendance must comply with shift timings (if applicable)
- Holiday Validation: Cannot mark present on system-defined holidays (unless override allowed)
- Past Date Lock: Cannot import attendance for locked periods
Note: Detailed validation rules and formats are provided in the downloadable Excel template.
9. Master Data Validation
Referenced Master Data
The following fields must match existing master data:
| Field | Master Reference | Validation |
|---|---|---|
| Employee Code | Employee Master | Must exist and be active |
| Unit | Unit Master | Must exist and match employee's unit |
| Shift | Shift Master | Must exist (if shift-based attendance) |
| Holiday | Holiday Master | System checks against holiday calendar |
| Leave Type | Leave Type Master | Leave codes must match configured types |
10. Import Process Flow
Method 1: Standard Attendance Import
-
Download Template
- Click "Export Example In Excel"
- Save template file to local system
- Keep original template structure intact
-
Fill Attendance Data
- Open downloaded template in Excel
- Read the built-in instructions in the template
- Fill attendance data row by row according to template guidelines
- Use correct attendance status codes from the template
- Ensure all required fields (marked in template) are filled
- Follow date and time format examples
- Validate data before saving
-
Save Excel File
- Save file in .xlsx or .xls format
- Use meaningful filename (e.g., "Attendance_December_2025.xlsx")
- Note file location
-
Upload File
- Navigate to Export & Import Attendance page
- Locate "Select (Attendance Excel) File:" section
- Drag file to upload area OR click to browse
- Select saved Excel file
- Verify file name appears
-
Import Data
- Click "Import" button in Section 1
- Wait for processing
- System validates all attendance data
-
Review Results
- Success message with imported attendance count
- Error list (if any validation fails)
- Download error report (if applicable)
-
Verify Imported Data
- Check Attendance module/reports
- Verify all dates and statuses imported correctly
- Confirm attendance reflects in employee records
Method 2: Exported Sheet Import
-
Export Existing Attendance
- Select Month, Year, and other filters
- Click "View" button
- System generates attendance data
- Export to Excel (if export option available)
-
Modify Attendance Offline
- Open exported Excel file
- Make necessary corrections
- Update attendance status or hours
- Add remarks if needed
- Save modifications
-
Re-import Modified Data
- Navigate to "Select (Attendance Excel) Exported Sheet File:" section
- Upload the modified exported file
- Click "Import" button in Section 2
- System processes the re-import
-
Verify Changes
- Check that modifications are reflected
- Verify attendance updates
11. Export Process Flow
Exporting Attendance Data
-
Select Filters
- Choose Month (e.g., DECEMBER)
- Choose Year (e.g., 2025)
- Optionally select Employee(s)
- Optionally select Client(s)
- Optionally select Unit(s)
-
Generate Data
- Click "View" button
- System fetches attendance matching filters
- Data is prepared for viewing/export
-
Export to Excel (if applicable)
- Use export functionality to download
- Save exported file
- Use for offline analysis or modifications
12. Success/Error Messages
Success Scenarios
| Scenario | Message | Details |
|---|---|---|
| All records imported | "Successfully imported attendance for [X] records" | All rows processed without errors |
| Partial import | "Imported [X] of [Y] records. [Z] records failed" | Some rows had errors |
| File uploaded | "File selected: [filename]" | File ready for import |
| Export successful | "Attendance data generated for [X] employees" | Data ready for export |
Error Scenarios
| Error Type | Message | Solution |
|---|---|---|
| No file selected | "Please select a file to import" | Upload Excel file first |
| Invalid file format | "Invalid file format. Please upload .xlsx or .xls file" | Use Excel format only |
| Empty file | "File contains no attendance data" | Add attendance records to Excel |
| Missing required columns | "Required columns missing: [column names]" | Download fresh template and use correct structure |
| Invalid date format | "Row [X]: Invalid date format" | Use DD/MM/YYYY format as shown in template |
| Invalid attendance code | "Row [X]: Invalid attendance status '[code]'" | Refer to template for valid codes |
| Employee not found | "Row [X]: Employee code '[code]' not found in system" | Verify employee exists or add to system |
| Duplicate attendance | "Row [X]: Attendance already exists for [employee] on [date]" | Remove duplicate or update existing |
| Invalid time format | "Row [X]: Invalid time format for In/Out time" | Use HH:MM format (e.g., 09:30) |
| Future date | "Row [X]: Cannot import attendance for future dates" | Check date values |
| Locked period | "Row [X]: Attendance period is locked" | Contact admin to unlock period |
| Leave balance insufficient | "Row [X]: Insufficient leave balance for [leave type]" | Check leave balance |
13. Import Error Report
Error Report Format
When import fails for some records, system generates error report:
Report Contents:
- Row number with error
- Date and Employee Code of failed record
- Field name causing error
- Error description
- Original value from Excel
- Suggested correction
Export Options:
- Download as Excel file
- Review offline
- Correct errors in original file
- Re-import corrected file
14. Best Practices
Before Import
-
Download Fresh Template
- Always download template from the system (don't reuse old templates)
- Read all instructions provided within the Excel file carefully
- Understand attendance codes and their meanings
- Don't modify column structure, headers, or column order
- Don't delete or add columns
- Keep the template format exactly as provided
-
Prepare Master Data
- Ensure all employees exist in system
- Verify employee codes match exactly
- Confirm units/branches are set up
- Check holiday calendar is configured
- Verify leave types are defined
-
Validate Data Offline
- Check for duplicate date+employee combinations
- Verify all dates are in correct format
- Ensure attendance codes are valid
- Validate time formats (if using in/out times)
- Cross-check against actual attendance records
- Verify leave applications exist for leave codes
-
Check Date Range
- Ensure attendance period is not locked
- Verify dates are not in future
- Confirm dates fall within allowed import range
-
Test with Small Batch
- Import 5-10 attendance records first
- Verify successful import
- Check data appears correctly in system
- Then proceed with bulk import
During Import
-
Single File at a Time
- Import one file completely
- Wait for confirmation message
- Don't upload multiple files simultaneously
- Complete one import before starting another
-
Monitor Progress
- Wait for processing to complete
- Don't close browser window during import
- Don't navigate away from page
- Note the progress messages
-
Choose Correct Import Section
- Use Section 1 for fresh attendance data
- Use Section 2 for re-importing exported sheets
- Don't mix the two import methods
-
Note Error Details
- Screenshot error messages
- Download error report immediately
- Note row numbers with issues
- Save error report for correction
After Import
-
Verify Imported Data
- Check Attendance module
- Verify all dates imported correctly
- Confirm attendance status matches
- Check in/out times (if applicable)
- Verify hours calculation
-
Handle Errors
- Review error report thoroughly
- Correct errors in Excel file
- Understand why errors occurred
- Re-import only failed records (if supported)
- Or re-import entire corrected file
-
Run Attendance Reports
- Generate attendance summary reports
- Verify data consistency
- Check for any anomalies
- Confirm calculations are correct
-
Update Related Data
- Process attendance for salary calculation
- Update leave balances (if applicable)
- Generate attendance reports for approval
- Notify supervisors/managers
-
Maintain Records
- Keep copies of imported files
- Maintain error reports
- Document any corrections made
- Archive monthly attendance files
15. Two Import Methods Explained
When to Use Each Method
Method 1: Attendance Excel File (Section 1)
Use When:
- Importing fresh attendance data
- Adding new attendance records
- Using the standard template format
- First-time data entry
- Migrating attendance from external sources
Process:
- Download template
- Fill according to template instructions
- Upload to Section 1
- System validates against all rules
Method 2: Attendance Excel Exported Sheet (Section 2)
Use When:
- Re-importing previously exported data
- Making bulk corrections to existing attendance
- Reconciling attendance discrepancies
- Updating multiple records offline
- Data migration from one period to another
Process:
- Export attendance using View/Export function
- Modify exported file offline
- Upload modified file to Section 2
- System updates existing records
Key Differences
| Aspect | Section 1 Import | Section 2 Import |
|---|---|---|
| Purpose | New attendance entry | Update existing attendance |
| File Source | Template or fresh data | Previously exported data |
| Validation | Full validation (all rules) | Validation + update rules |
| Duplicate Handling | Rejects duplicates | May update existing records |
| Format Flexibility | Must match template | Must match export format |
| Use Case | Initial data entry | Corrections and updates |
16. Filter Usage for Export
How Filters Work
The filter section (Month, Year, Employee, Client, Unit) is primarily used for:
-
Exporting Specific Attendance
- Select criteria to narrow down data
- Click "View" to generate filtered attendance
- Export the filtered data
-
Previewing Data
- Verify attendance exists for period
- Check employee attendance status
- Review before import/export
-
Bulk Operations
- Export attendance for specific employees
- Export unit-wise attendance
- Export client-wise attendance
Filter Combinations
| Filter Combination | Use Case |
|---|---|
| Month + Year only | Export all attendance for the month |
| Month + Year + Employee | Export specific employee(s) attendance |
| Month + Year + Unit | Export unit-wise attendance |
| Month + Year + Client | Export client-wise attendance |
| All filters combined | Very specific attendance export |
17. Important Notes
Template Usage
- Always use the downloaded template - It contains the most up-to-date structure and instructions
- Read attendance code instructions carefully - Wrong codes will cause import failures
- Follow date format strictly - Date format errors are common import issues
- Don't skip the sample rows - They demonstrate correct format for all attendance fields
- Follow the color coding - Template uses colors to indicate required vs optional fields
- Preserve template structure - Any modification to column structure will cause import failures
Data Preparation
- The Excel template is your primary reference guide
- All attendance codes, formats, and validations are documented within the template
- When in doubt about a status code, always refer back to the template instructions
- Sample attendance records in template show real-world examples of correct formatting
- Time formats are critical - follow template examples exactly
Attendance Period Management
- Check with admin about locked/unlocked periods before importing
- Attendance for past months may be locked and cannot be imported
- Future-dated attendance typically cannot be imported
- Month-end closures may restrict imports
Data Accuracy
- Attendance data directly impacts salary calculation
- Verify data accuracy before importing
- Double-check leave codes against actual leave applications
- Ensure overtime hours are approved before importing
- Cross-reference with actual shift rosters
System Integration
- Imported attendance affects multiple modules (salary, leave, reports)
- Ensure consistency with leave management system
- Verify integration with payroll processing
- Check impact on attendance-based calculations
- Coordinate with HR/Payroll teams before bulk imports
End of Documentation