Guide · Google Sheets

A mutual fund portfolio tracker in Google Sheets, from your CAS

Your Consolidated Account Statement (CAS) from CAMS or KFintech lists every mutual fund transaction under your PAN. This guide turns it into a Google Sheet that shows each fund's units, what you put in, what it is worth at today's NAV, the gain and the XIRR. No code: you copy one script.

Tried on a real CAS Google Sheets PDF not stored

1. Ask for your CAS

  1. Open the CAMS CAS page; it covers funds serviced by both CAMS and KFintech. The KFintech page works too.
  2. Pick Detailed (with transactions), a period starting 01-Jan-1990 so nothing is left out, and the email on your folios.
  3. Choose a password for the PDF and keep it. The PDF arrives by email in a few minutes.

2. Build the workbook

You need a free API key. Then, on the Sheets Lab, choose Import CAS statement and either:

The PDF and its password are read in memory for that one request: nothing is stored or logged, and the PAN comes back masked.

3. What is in it

Every figure except the statement's own rows is a formula, so you can see how it is worked out. With Live NAV ticked, the NAV column is =EJI_MF_NAV(code) and refreshes from EJI API.

Google Sheets
Summary!B5    =SUM(Holdings!K2:K21)              current value of every fund
Holdings!I2   =IFERROR(EJI_MF_NAV(C2),"")       latest NAV by AMFI code
Holdings!K2   =IF(I2="","",G2*I2)               units × latest NAV

How the numbers are worked out

We tried it on a real statement

We ran the parser on a real CAMS detailed CAS covering 2017 to 2026: 8 fund houses, 12 folios, 35 schemes (20 still held) and 3,415 transaction rows, including 213 SIPs, 775 switch-ins, 211 STP-ins and 974 fee rows. Every row was read with no problems, and the Statement check matched the printed closing units for all 35 schemes. The investor's amounts are not shown here.

For developers

The workbook is built on one endpoint, which you can call yourself. See the CAS parser reference.

curl
curl -H "x-api-key: YOUR_KEY" -F "file=@cas.pdf" -F "password=YOUR_CAS_PASSWORD" \
  https://fin.ejiapi.com/api/mf/cas/parse

Related guides

Open the Sheets Lab Get a free API key

Values, not advice. The workbook relies on what your statement prints; check the Statement check tab after each import.