Calculate Ovulation in Google Sheets & Excel
Formula
The API calculates most fertile days, follicular and luteal phases, and provides a comprehensive fertility calendar with day-by-day fertility levels.
=VERVE("ovulationcalculator", A2, "field", "disclaimer")=VERVE.CALL("ovulationcalculator", A2, "field", "disclaimer")A2 holds the last_period you're looking up. Drag the formula down and each row resolves on its own.
With literal values
Nothing has to come from a cell — typed values work the same way.
=VERVE("ovulationcalculator", "2024-01-01", "field", "disclaimer")=VERVE.CALL("ovulationcalculator", "2024-01-01", "field", "disclaimer")Inputs
Required inputs are positional, in the order below. Everything else is passed as a "name", value pair after them — the same shape as SUMIFS.
| Input | Type | Where it goes | Description |
|---|---|---|---|
last_periodRequired | string | argument 2 | First day of last menstrual period (YYYY-MM-DD) (e.g. 2024-01-01) |
cycle_length | integer | "cycle_length", value | Average menstrual cycle length in days (e.g. 28) |
Passing an option
=VERVE("ovulationcalculator", A2, "cycle_length", 28)=VERVE.CALL("ovulationcalculator", A2, "cycle_length", 28)What lands in your sheet
The "field" pair is what makes the formula resolve to one cell. The name is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.
Seeing everything at once
Drop the "field" pair and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.
=VERVE("ovulationcalculator", A2)=VERVE.CALL("ovulationcalculator", A2)Good for finding out what a source returns, but it is not a formula you can fill down: the second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field. Leave the cells below and to the right empty.
Available fields
#PREMIUM(field) rather than a value, so a locked field never looks like a real answer.| Use as "field" | Type | Example cell value | Description |
|---|---|---|---|
last_period | string | The first day of the last menstrual period provided | |
cycle_length | number | The average menstrual cycle length in days | |
ovulation | object | Estimated ovulation date and how many days into the cycle it falls | |
└ ovulation.date | string | Calculated ovulation date in YYYY-MM-DD format | |
└ ovulation.days_from_last_periodPremium | number | Number of days from last period to ovulation | |
fertile_window | object | Range of days conception is possible, with its length | |
└ fertile_window.startPremium | string | Start date of the fertile window period | |
└ fertile_window.endPremium | string | End date of the fertile window period | |
└ fertile_window.duration_daysPremium | number | Total duration of fertile window in days | |
most_fertile_days | object | The narrower range with the highest chance of conception | |
└ most_fertile_days.startPremium | string | Start date of the most fertile days period | |
└ most_fertile_days.endPremium | string | End date of the most fertile days period | |
└ most_fertile_days.duration_daysPremium | number | Duration of the most fertile days in days | |
fertile_daysPremium | array[6] | Array of daily fertility data with levels and descriptions | |
└ fertile_days.0.datePremium | string | Date of the fertile day in YYYY-MM-DD format | |
└ fertile_days.0.day_relative_to_ovulationPremium | number | Days relative to ovulation date (negative before, positive after) | |
└ fertile_days.0.fertility_levelPremium | string | Fertility level classification: low, medium, high | |
└ fertile_days.0.descriptionPremium | string | Human-readable description of fertility status for day | |
next_period | object | Estimated start of the next period and how many days away it is | |
└ next_period.datePremium | string | Estimated date of the next menstrual period | |
└ next_period.days_from_last_periodPremium | number | Days from last period to expected next period | |
cycle_phases | object | The phases of the cycle with their length and what happens in each | |
└ cycle_phases.follicular_phase | object | From the first day of the period to ovulation | |
└ cycle_phases.follicular_phase.duration_daysPremium | number | Duration of follicular phase in days | |
└ cycle_phases.follicular_phase.descriptionPremium | string | Description of the follicular phase | |
└ cycle_phases.ovulation | object | The day the egg is released | |
└ cycle_phases.ovulation.duration_daysPremium | number | Duration of ovulation phase in days | |
└ cycle_phases.ovulation.descriptionPremium | string | Description of the ovulation phase | |
└ cycle_phases.luteal_phase | object | From ovulation to the start of the next period | |
└ cycle_phases.luteal_phase.duration_daysPremium | number | Duration of luteal phase in days | |
└ cycle_phases.luteal_phase.descriptionPremium | string | Description of the luteal phase | |
current_status | object | Where today falls in the cycle, and whether it is a fertile day | |
└ current_status.current_phasePremium | string | Current phase of menstrual cycle relative to today | |
└ current_status.is_fertilePremium | boolean | Whether the user is currently in the fertile window | |
└ current_status.days_until_ovulationPremium | number | Days until ovulation from today (negative if past) | |
└ current_status.days_until_next_periodPremium | number | Days until next period from today (negative if past) | |
disclaimer | string | Medical disclaimer regarding calculator accuracy |
Filling a whole column
Both platforms make one batched call for a column rather than one request per cell, and both cost the same — 1 credit per row looked up. How you write it differs, because the two runtimes batch at different points.
=VERVE("ovulationcalculator", A2:A100, "field", "disclaimer")Give the arguments ranges and the answers spill down from the cell you typed in. Sheets custom functions run synchronously and in isolation, so dragged cells can't be coalesced — the range form is how a column becomes one call.
The "field" pair is required here: a per-row two-column table has nowhere to spill. Use a full column per input (A2:A100, not A2) — a single-cell reference is read as row 1 only, and the rest of the column comes back blank.
=VERVE.CALL("ovulationcalculator", A2, "field", "disclaimer")Drag or double-click the fill handle — no range form and none needed. Excel's runtime is asynchronous, so the add-in coalesces the calls a fill produces into a single batched request on its own.
Don't hand VERVE.CALL a range: Excel flattens it into positional arguments, so A2:A100 arrives as a hundred separate arguments and the cell reads #ERR rather than filling.
Either way, column A holds your last_period values and the answers land beside them, one row each, blank rows skipped.
When a cell doesn't fill
A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() won't catch it; test with LEFT(cell, 4) = "#ERR" instead.
| Cell reads | What happened |
|---|---|
#ERR Not connected | No API key saved. Open the side panel and connect your account. |
#ERR Replace <name> with a cell or value | The preview formula was copied as-is. Swap the placeholder for a cell reference. |
#ERR No "x" in ovulationcalculator | An option name that this source doesn't take. The message lists the ones it does. |
#ERR No data point "…" | The "field" path isn't in the response. Check the dot-path against the table above. |
#PREMIUM(field) | The field exists but your plan doesn't include it. |
#ERR Out of credits | The month's credits are spent. Usage resets on your billing date. |
Before the formula works
The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet doesn't leak it and a collaborator without access simply sees the last calculated values.
- Install the add-in for Google Sheets or Excel.
- Open the side panel and sign in, or paste a key from your dashboard.
- Type the formula above into any cell.
Other ways to use Calculate Ovulation
Set up Calculate Ovulation on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.
Frequently asked questions
Does Calculate Ovulation work in both Google Sheets and Excel?
Yes — the same source, the same arguments, the same result. Google Sheets calls it =VERVE("ovulationcalculator", A2, "field", "disclaimer") and Excel namespaces it as =VERVE.CALL("ovulationcalculator", A2, "field", "disclaimer"). Filling a whole column is the one place the two differ: Sheets takes ranges directly, Excel fills down.
Do the cells recalculate on their own?
They recalculate when the sheet does — on edit, on open, or on a manual recalc. Each recalculation is a fresh call and spends credits, so for a large static column it's worth copying the results and pasting them as values.
How many credits does a filled column cost?
1 credit per row looked up, on both platforms and however you fill it. Repeated identical lookups in the same column are charged once. Batching changes how many HTTP calls are made, never the credit count.
Can I share the sheet without sharing my key?
Yes. The key is stored against your account, not in the file. Collaborators see the values already in the cells; formulas only recalculate for someone who has connected their own account.
Why is a cell showing #ERR instead of an error?
So you can read the reason. Excel can't display a custom message on a real spreadsheet error, so the add-in returns the explanation as text on both platforms instead.