Skip to content

feat:add export to excel(.xlsx) functionality#69

Merged
MeenakshiAM merged 1 commit into
MeenakshiAM:mainfrom
vaishnavi-rajesh:excel-feature
Mar 4, 2026
Merged

feat:add export to excel(.xlsx) functionality#69
MeenakshiAM merged 1 commit into
MeenakshiAM:mainfrom
vaishnavi-rajesh:excel-feature

Conversation

@vaishnavi-rajesh
Copy link
Copy Markdown
Contributor

@vaishnavi-rajesh vaishnavi-rajesh commented Mar 2, 2026

📌 Description

This PR adds an "Export to Excel (.xlsx)" feature to the Expense Tracker. While PDF exports are great for summaries, this feature allows users to export their data in a structured spreadsheet format for deeper analysis (sorting, filtering, and custom calculations) in tools like Microsoft Excel or Google Sheets


🔗 Related Issue

Closes #60


🛠 Changes Made

  • Library Integration: Added the SheetJS (xlsx) library via CDN in index.html
    to handle file generation.
  • UI Enhancement: Added a new "Export to Excel" button in the filter section, styled with a distinct green theme (including dark mode support).
  • Export Logic: Implemented exportToExcel() in script.js which:
    • Respects all active UI filters (Search, Month, Category) and sorting.
    • Formats data with clear headers: Date, Category, Description, and Amount (₹).
    • Automatically adds a TOTAL row at the bottom.
    • Includes automatic column width adjustments for better readability

📷 Screenshots (if applicable)


✅ Checklist

  • [✅ ] I have tested my changes
  • [ ✅] My code follows project guidelines
  • [ ✅] I have linked the related issue

@MeenakshiAM MeenakshiAM merged commit ad98e10 into MeenakshiAM:main Mar 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Excel Export Functionality for Expense Data

2 participants