To get Indian stock prices into Excel, install MarketXLS India, connect your broker and enter:
Try it in your own spreadsheet
Get the free MarketXLS sample workbook (.xlsx).
No account needed. MarketXLS live data requires a paid plan. Preview workbook
=MXLSIN.ZerodhaLast("RELIANCE:IN")
=MXLSIN.AngelOneLast("SBIN:IN")
Choose an India subscription, then connect the broker named in the formula. These examples return a single price; keep the symbol in a worksheet cell when building a reusable watchlist.
Build a live watchlist — India
Put supported symbols such as RELIANCE:IN and SBIN:IN in column A. In B2 enter =MXLSIN.ZerodhaLast(A2) and fill down. With Angel One, use =MXLSIN.AngelOneLast(A2) instead. Add headings so you can distinguish price, volume and other outputs.
For Zerodha, use =MXLSIN.ZerodhaVolume(A2) for volume and =MXLSIN.ZerodhaPreviousClose(A2) for the previous close. Use the matching Angel One functions when connected to Angel One. Check the catalog for each output's units: similar names do not always imply identical units across brokers.
Get historical candles — India
=MXLSIN.ZerodhaHistory("RELIANCE", "day", "2026-01-01 09:15", "2026-03-31 15:30")
=MXLSIN.AngelOneHistory("SBIN", "day", "2026-01-01 09:15", "2026-03-31 15:30")
These are sample historical date ranges. Replace them with the period you need. Leave the table's output area empty and confirm the returned timestamps and candles before charting. History availability, interval support and limits depend on the broker and instrument.
A live quote is a current snapshot or stream; a history function returns a date-bounded dataset. Keep the two in separate sections so a current price is not mistaken for an earlier day's close.
Add indicators without writing code — India
Use the RSI guide or Supertrend guide when you want indicator calculations. Use the Nifty 50 screener to work with a defined watchlist. Select the same interval across comparisons.
Check the connection — India
If data is missing, reconnect in the India add-in and test one known symbol. For #NAME?, check the function spelling and India namespace. For #SPILL!, clear the output cells. Broker access and market-data permissions are prerequisites; an Excel formula cannot bypass them.
Can I use generic US MarketXLS formulas? — India
Use the India MXLSIN. catalog for this workflow. US-market examples such as generic Last or QuoteMedia historical formulas are not substitutes for the broker-connected India functions.
Next step — India
Get MarketXLS India and use the India function library to check each formula. Continue with the India Excel workflow series.
