Most dividend investors never need to pay
Free tier: 10,000 API calls/month • Your 20-stock portfolio uses ~3,000/month
Free tier includes:
Want more? Upgrade for full access (PE ratio, volume, market cap, etc.)
=DIVV("AAPL", "price")
=DIVV("MSFT", "dividendYield")
=DIVV("JNJ", "dayHigh")
' Free tier: price, open, high/low, dividend yield💎 Free tier includes: price, open, dayHigh, dayLow, previousClose, dividendYield, dividendAmount
In Excel, press Alt+F11 (Windows) or Option+F11 (Mac)
In VBA Editor: File → Import File... and select the downloaded DIVV.bas
In the VBA code, update the API_BASE_URL constant:
' For production (recommended)
Const API_BASE_URL As String = "https://api.divv.com"
' For local testing
Const API_BASE_URL As String = {API_CONFIG.baseUrl}Save your workbook as .xlsm (Excel Macro-Enabled Workbook) to preserve the VBA code
In any cell, type:
=DIVV("AAPL", "price")Press Enter. You should see the current price of Apple stock!
=DIVV(symbol, attribute)Get stock data for any attribute
Examples:
=DIVV("AAPL", "price")
=DIVV("MSFT", "dividendYield")
=DIVV("JNJ", "yearHigh")
=DIVV("PG", "peRatio")📝 Note: The Excel VBA implementation includes the same core DIVV() function as Google Sheets. Advanced functions (DIVVBULK, DIVVDIVIDENDS, DIVVARISTOCRAT) can be added to the VBA module if needed.
The VBA module includes a worksheet-based caching system to reduce API calls and improve performance.
_DivvCache💡 Clear Cache: To force fresh data, run this in VBA:
ClearDivvCache
Macros may be disabled. Go to File → Options → Trust Center → Trust Center Settings → Macro Settings and enable macros.
The VBA module may not be imported correctly. Check the VBA Editor (Alt+F11) to ensure the DivvAPI module is present.
Check that the API endpoint URL is correct and the API is running. You can test connectivity by running TestDivvConnection from the VBA Editor.
Make sure the cache worksheet exists. The first call to each symbol will be slower (API request), but subsequent calls should be instant.