Get intraday VWAP in Excel with MarketXLS India and your connected broker. Put it beside the live stock price to measure the price's distance from its session reference.
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.VWAP("RELIANCE", "5m")
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.
Choose a traded equity such as RELIANCE and request VWAP on an intraday interval. Put the current stock price in a separate cell. Calculate distance as price divided by VWAP minus one, and format the result as a percentage.
Build the working example
Use the same instrument for price and VWAP. An index does not have the same traded-volume meaning as an equity or futures contract, so do not substitute an index into a volume-based worksheet without checking its data. Label your quote and candle intervals clearly.
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.
VWAP
Intraday volume-weighted average price on live broker candles. Resets each trading day.
Syntax:
MXLSIN.VWAP(symbol, [interval], [output], [mode], [broker])
Example:
=MXLSIN.VWAP("RELIANCE", "5m")
ZerodhaLast
Streams the live last traded price for an Indian stock, index, future or option from your Zerodha connection. Updates on every tick while the workbook is open.
Syntax:
MXLSIN.ZerodhaLast(symbol)
Example:
=MXLSIN.ZerodhaLast("RELIANCE:IN")
Candles
Spills the last N candles (Date, Open, High, Low, Close, Volume, OI) from your connected broker and keeps them updating.
Syntax:
MXLSIN.Candles(symbol, [interval], [bars], [mode], [broker])
Example:
=MXLSIN.Candles("INFY", "15m", 50)
Check the result
This VWAP calculation resets each trading day. It is not an anchored VWAP starting from an arbitrary date. A price above VWAP describes a relationship to the session average; it is not by itself a buy signal.
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.
Why is VWAP different from a moving average?
VWAP weights prices by volume within the session. A moving average follows its own lookback and weighting rules. Use the measure that matches the question your worksheet is answering.
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.

