Get NSE best bid, best ask and quoted quantities in Excel with MarketXLS India. Connect your broker and put the quote fields beside each instrument in your watchlist.
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
Get MarketXLS India: plans and subscription · See the India Excel add-in
Start with this formula
After connecting the required broker in the India add-in, enter:
=MXLSIN.ZerodhaBidPrice("RELIANCE:IN")
Use the example as a starting point and replace its instrument, date range or cell references with your own inputs. Historical dates in examples are sample periods; expiry-specific symbols must refer to a valid contract.
Set up the worksheet
- Open Excel and install MarketXLS India from the add-in marketplace.
- Sign in with your MarketXLS India account. For broker data, connect Zerodha or Angel One using the add-in panel. Use the broker named by a broker-specific formula.
- Enter the formula in an empty area. Leave adjacent cells clear for any table or multi-cell output.
- Confirm the instrument and settings before extending the worksheet.
Create columns for symbol, bid, ask, bid quantity, ask quantity and last-trade time. Calculate the spread as ask minus bid. To compare instruments with different prices, divide the spread by the midpoint, provided both quotes are valid and positive.
Build the working example
Keep last-trade time distinct from a quote-update timestamp. A market can update its quotes without a new trade. A last-traded price is also not necessarily available for an immediate purchase or sale; the bid and ask describe the current quoted sides.
Functions and syntax
These examples use the India namespace, MXLSIN.. Square brackets in a syntax line indicate optional arguments; do not type the brackets into Excel. Keep text arguments in quotation marks and use cell references when you want editable inputs.
ZerodhaBidPrice
Streams the live best bid price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.
Syntax:
MXLSIN.ZerodhaBidPrice(symbol)
Example:
=MXLSIN.ZerodhaBidPrice("RELIANCE:IN")
ZerodhaAskPrice
Streams the live best ask price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.
Syntax:
MXLSIN.ZerodhaAskPrice(symbol)
Example:
=MXLSIN.ZerodhaAskPrice("RELIANCE:IN")
ZerodhaBidSize
Streams the live best bid quantity for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.
Syntax:
MXLSIN.ZerodhaBidSize(symbol)
Example:
=MXLSIN.ZerodhaBidSize("RELIANCE:IN")
ZerodhaAskSize
Streams the live best ask quantity for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.
Syntax:
MXLSIN.ZerodhaAskSize(symbol)
Example:
=MXLSIN.ZerodhaAskSize("RELIANCE:IN")
ZerodhaLastTradeTime
Streams the live time of the last trade for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.
Syntax:
MXLSIN.ZerodhaLastTradeTime(symbol)
Example:
=MXLSIN.ZerodhaLastTradeTime("RELIANCE:IN")
Check the result
These fields describe the best quoted levels, not a full depth-of-book feed. Displayed quantities can change before execution. Missing or zero quotes should remain flagged rather than being treated as a narrow spread.
If Excel reports #NAME?, confirm the India add-in is loaded and the function name is spelled correctly. If a table reports #SPILL!, clear the cells in its output area. For missing broker data, check the connection in the add-in panel, verify the symbol, and test one request before expanding the sheet. Do not replace an error with zero when zero would change your analysis.
Does Angel One also have bid and ask functions?
Yes. The India function reference includes AngelOneBidPrice, AngelOneAskPrice, AngelOneBidSize and AngelOneAskSize. Use the functions for your connected broker.
Get this working in your Excel
Choose a MarketXLS India subscription, install the India add-in, and follow the steps above. The pricing page lists the current subscription options; broker access requirements are separate from the spreadsheet formulas.
Use the India function library for the complete parameter reference, or contact the India team with the formula, instrument and error message if you need setup help. Never send broker passwords or access tokens.
Continue with the India Excel workflow series for related guides.

