EPFO Challan Calculator in Excel – Automatic PF Calculation & ECR TXT File Generator

EPFO EXCEL AUTOMATION TOOL

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 WORKBOOK

Download 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.
Important: The workbook is a calculation and file-generation aid. It does not submit the return or make payment automatically. You must upload and validate the ECR through the official EPFO Employer Portal.

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 FILE

How to Use the Excel Workbook

1Download and open the 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.

2Complete the Employee Master

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.

3Enter Monthly Gross Wages

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.

Important: Enter statutory wages after applying the applicable wage definition and 50% allowance rule. Do not automatically treat CTC, take-home salary or every salary component as PF wages.
4Check the Challan Summary

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.

5Generate the ECR TXT File

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.

Why is a macro required?

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.

  1. Close the Excel workbook.
  2. Open File Explorer and locate the downloaded workbook.
  3. Right-click the .xlsm file.
  4. Click Properties.
  5. Under the General tab, look at the bottom for a Security section.
  6. If you see an Unblock checkbox, select it.
  7. Click Apply and then OK.
  8. Open the workbook again.
Note: The Unblock checkbox may not appear on every computer. This depends on Windows security settings and how the file was downloaded.

Step 3: If the workbook is inside a ZIP file

  1. Extract the ZIP file first.
  2. Locate the extracted Excel workbook.
  3. Right-click the extracted .xlsm file.
  4. Select Properties.
  5. Use Unblock if the option is available.
  6. Open the workbook again.

Step 4: Check Excel macro security

If the macro is still unavailable, check the Excel Trust Center settings:

  1. Open Excel.
  2. Click File.
  3. Click Options.
  4. Select Trust Center.
  5. Click Trust Center Settings.
  6. Open Macro Settings.
  7. Use a suitable notification-based macro setting for trusted files, subject to your organisation's security policy.
  8. Click OK.
Security warning: Do not select Enable all macros globally. Only allow macros in files whose source and contents you have checked. If your organisation blocks macros through an administrator policy, contact the administrator instead of bypassing that policy.

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.

Follow these steps:
  1. Open the Excel workbook.
  2. Press ALT + F11 to open the VBA Editor.
  3. Click File in the VBA Editor.
  4. Select Import File.
  5. Choose the EPFO_ECR_Export.bas module, if supplied separately.
  6. Click Open.
  7. Close the VBA Editor.
  8. 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

  1. Complete the employee and monthly wage details.
  2. Open ECR Output.
  3. Check the validation status of each employee.
  4. Press ALT + F8 on your keyboard.
  5. Select ExportECRToTXT.
  6. Click Run.
  7. Choose the folder where you want to save the file.
  8. Save the file with the .txt extension.

Example filename:

Skyview_November_2026_ECR.txt

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

  1. Log in using your Employer / Establishment credentials.
  2. Open the return filing section.
  3. Select the relevant wage month.
  4. Choose the ECR upload option.
  5. Select your generated TXT file.
  6. Wait for EPFO validation.
  7. Review the employee-wise return statement.
  8. Approve the return only after checking all figures.
  9. Generate the TRRN challan.
  10. Complete payment through the available payment option.
  11. Download the challan and payment receipt.
Important: The exact portal menu and upload requirements may change. Follow the current ECR help file and validation instructions displayed in your employer login. Never approve a return without checking the figures.

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