EPFO Challan Calculator & ECR TXT File Generator
Calculate PF, EPS, EDLI and generate your monthly EPFO ECR text file using Excel and VBA.
⬇ DOWNLOAD EXCEL WORKBOOKDownload the workbook and follow the instructions below.
Introduction
Preparing monthly EPFO contributions manually can take time, especially when you have multiple employees. Calculating employee PF, employer PF, pension contributions and EDLI separately can also lead to calculation mistakes.
To make this process easier, I have prepared an Excel-based EPFO Challan Calculator with automatic calculations and an ECR TXT file generation facility.
This workbook is intended for school administrators, accountants, HR professionals, payroll operators, business owners and employers who handle monthly EPFO returns.
Features of the EPFO Excel Workbook
- Employee-wise PF contribution calculation.
- Automatic employee PF calculation.
- Automatic employer PF calculation.
- EPS (Employees' Pension Scheme) calculation.
- EDLI contribution calculation.
- Monthly EPFO challan summary.
- Automatic generation of ECR text lines.
- Excel VBA macro to export the ECR TXT file.
- Support for maintaining employee master information.
Download the Excel Workbook
Click the button below to download the workbook from Google Drive.
EPFO Monthly Challan Calculator
Excel workbook with automatic PF calculations and ECR TXT generation.
DOWNLOAD EXCEL FILEHow to Use the Excel Workbook
Download the Excel workbook from the link above. Save it on your Windows computer.
The workbook is designed for desktop Microsoft Excel with VBA macro support.
Open the Employee Master sheet and enter the employee details:
- Employee ID
- UAN
- Employee name
- Date of birth
- Date of joining
- EPS eligibility
- Active employee status
Check every UAN and employee name carefully against EPFO records.
Open the Monthly Calculation sheet.
Enter the applicable statutory gross wages in the yellow input column. The workbook calculates the PF wage base and contribution amounts using its configured formulas.
Check NCP days and EPS eligibility. These details must be correct for each employee.
Open the Challan Summary sheet to review:
- Employee contribution
- Employer EPF contribution
- EPS contribution
- EDLI contribution
- EPF administrative charges
- Total estimated challan amount
Compare the calculations with the applicable statutory requirements and EPFO portal figures.
Open the ECR Output sheet. It generates the employee-wise ECR text lines.
Check that all required employees show READY – CHECK PORTAL in the validation column.
Each employee record contains 11 fields separated by #~#.
How to Enable and Use the VBA Macro
The workbook uses an Excel VBA macro to export the generated ECR text lines into a .txt file.
Excel formulas can generate the ECR text lines, but VBA automates the process of saving those lines into a separate plain-text file.
Step 1: Open the VBA-enabled workbook
Open the downloaded .xlsm file using Microsoft Excel desktop on Windows.
Step 2: Check whether Windows has blocked the file
Files downloaded from the internet may be marked as untrusted by Windows. Excel may therefore block the macros.
- Close the Excel workbook.
- Open File Explorer and locate the downloaded workbook.
- Right-click the
.xlsmfile. - Click Properties.
- Under the General tab, look at the bottom for a Security section.
- If you see an Unblock checkbox, select it.
- Click Apply and then OK.
- Open the workbook again.
Step 3: If the workbook is inside a ZIP file
- Extract the ZIP file first.
- Locate the extracted Excel workbook.
- Right-click the extracted
.xlsmfile. - Select Properties.
- Use Unblock if the option is available.
- Open the workbook again.
Step 4: Check Excel macro security
If the macro is still unavailable, check the Excel Trust Center settings:
- Open Excel.
- Click File.
- Click Options.
- Select Trust Center.
- Click Trust Center Settings.
- Open Macro Settings.
- Use a suitable notification-based macro setting for trusted files, subject to your organisation's security policy.
- Click OK.
How to Import the VBA Module (If Required)
If your workbook does not already contain the ECR export macro, you can import the separate VBA module.
- Open the Excel workbook.
- Press
ALT + F11to open the VBA Editor. - Click File in the VBA Editor.
- Select Import File.
- Choose the
EPFO_ECR_Export.basmodule, if supplied separately. - Click Open.
- Close the VBA Editor.
- Save the workbook as Excel Macro-Enabled Workbook (
.xlsm).
If the macro is already included, you do not need to import the module again.
How to Export the ECR TXT File
- Complete the employee and monthly wage details.
- Open ECR Output.
- Check the validation status of each employee.
- Press
ALT + F8on your keyboard. - Select
ExportECRToTXT. - Click Run.
- Choose the folder where you want to save the file.
- Save the file with the
.txtextension.
Example filename:
After exporting, open the TXT file in Notepad. Check that each employee has one complete line and that the 11 fields are separated correctly.
How to Upload the ECR File to EPFO
Once your TXT file is ready, visit the official EPFO Employer Portal.
Open EPFO Employer Unified Portal
- Log in using your Employer / Establishment credentials.
- Open the return filing section.
- Select the relevant wage month.
- Choose the ECR upload option.
- Select your generated TXT file.
- Wait for EPFO validation.
- Review the employee-wise return statement.
- Approve the return only after checking all figures.
- Generate the TRRN challan.
- Complete payment through the available payment option.
- Download the challan and payment receipt.
Frequently Asked Questions
1. Can I use this workbook without VBA?
You can use the Excel formulas and view the generated ECR lines without running the export macro. VBA is needed for the automatic TXT file export.
2. Why is Excel blocking macros?
Microsoft Office blocks VBA macros from many internet-downloaded files by default to protect users against malicious code. Check the file's source and use the Windows Unblock procedure described above when appropriate.
3. Can I use this workbook on mobile?
The workbook is intended for desktop Microsoft Excel. VBA macros do not run in Excel for the web or Excel mobile apps. Use Excel desktop on Windows for the export macro.
4. Can I use it for multiple employees?
Yes, the workbook contains an employee master and employee-wise calculation rows. Check the available rows and formulas before adding more employees.
5. Does this workbook directly submit my EPFO return?
No. It prepares calculations and the ECR text file. You must upload, validate, approve and pay through the official EPFO Employer Portal.
6. Is the Excel workbook an official EPFO product?
No. It is an independently prepared Excel tool for calculation and file preparation. It is not developed, approved or issued by EPFO.
Important Disclaimer
Official EPFO Resources
Download the EPFO Excel Workbook
Simplify your monthly PF calculations and ECR file preparation.
⬇ DOWNLOAD NOW
No comments:
Post a Comment