Contact

BINOM.DIST.RANGE in ONLYOFFICE: Inclusive Success Intervals

Statistical Intermediate ONLYOFFICE

Find binomial interval probabilities, distinguish omitted and equal bounds, and verify answers by summing exact-count probabilities.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =BINOM.DIST.RANGE(4,0.5,1,3) has the independent target 0.875: the probability of one, two or three successes in four independent trials. Both endpoints are included.

Syntax and argument order

=BINOM.DIST.RANGE(trials, probability_s, number_s, [number_s2])

The first two arguments are trial count n and per-trial success probability p. The third is lower success count a. The optional fourth is upper success count b. This order differs from BINOM.DIST, whose first argument is a success count. Do not transfer argument positions mechanically.

Use whole-number counts satisfying 0≤a≤b≤n and a probability 0≤p≤1. The same fixed-count, independent-trial, constant-probability assumptions as any binomial model apply. The output is a probability between 0 and 1, not an expected success count.

There is a small but important documentation distinction. The official help describes the upper bound as greater than the lower. The tagged implementation rejects upper<lower, so equality is permitted; when the fourth argument is omitted it substitutes the lower bound. The equal-bound and omission examples below are therefore source-supported expectations, not native observations.

Set up an interval calculator

Create BinomialInterval and enter:

Cell Label Value
B2 Trials 4
B3 Success probability 0.5
B4 Lower count 1
B5 Upper count 3

In E2 enter =BINOM.DIST.RANGE(B2,B3,B4,B5). Its target is 0.875, or 87.5%. Independently, the probabilities of counts 1,2,3 are 4/16,6/16,4/16. Their sum is 14/16.

A delivery team could use such a model to describe the chance that a batch has a count within a specified band. The band itself is a decision input. The formula neither chooses a sensible tolerance nor validates the independence assumption.

Compare interval, exact count and omitted upper bound

Cell Formula Target Interpretation
E3 =BINOM.DIST.RANGE(4,0.5,2,2) 0.375 Exactly two
E4 =BINOM.DIST.RANGE(4,0.5,2) 0.375 Upper defaults to lower in source
E5 =BINOM.DIST.RANGE(4,0.5,0,2) 0.6875 At most two
E6 =BINOM.DIST.RANGE(4,0.5,0,4) 1 All possible counts

Omitting the upper bound does not request the full cumulative distribution up to the lower bound. That common misunderstanding would confuse 0.375 with 0.6875 in this example. Supply both bounds when you want the interval to remain visible to a reader.

Independent check with a different success probability

Enter n=5, p=0.2 and the band 1..2 in B2:B5. E2 now has target 0.6144.

Exactly one success contributes C(5,1)×0.2×0.8^4=0.4096. Exactly two contributes C(5,2)×0.2^2×0.8^3=0.2048. Adding them yields 0.6144. A matching manual formula is =COMBIN(5,1)*0.2*0.8^4+COMBIN(5,2)*0.2^2*0.8^3.

For an auditable table, enter 0..5 in A9:A14 and use =BINOM.DIST(A9,$B$2,$B$3,FALSE) in B9, filled down. The mathematical targets are 0.32768,0.4096,0.2048,0.0512,0.0064,0.00032. Sum B10:B11 for the band. The table makes it clear which outcomes were included.

Advanced: cumulative subtraction and disjoint events

For the five-trial model, =BINOM.DIST(2,5,0.2,TRUE)-BINOM.DIST(0,5,0.2,TRUE) also has target 0.6144. In general, an inclusive band a..b is F(b)−F(a−1), provided a≥1. When a=0, use F(b) directly rather than calling a negative success count.

If the allowed counts are 0 or at least 3, use the complement =1-BINOM.DIST.RANGE(5,0.2,1,2), with target 0.3856. That is a union of two disjoint regions, not a single continuous interval. Avoid adding overlapping intervals, which double-counts shared outcomes.

Errors and implementation limits

The source rejects n<0, p outside 0..1, negative lower bounds, lower>n, uppern. Reversing the interval in =BINOM.DIST.RANGE(4,0.5,3,1) is source-predicted #NUM!, not automatic bound swapping. Equal bounds are a valid exact-count case in the inspected code.

Use integer endpoints. The implementation increments the supplied lower value by 1 while calculating each mass with integer-parsed counts. Fractional endpoints therefore deserve a separate version-specific test; do not promise that arbitrary fractional bounds behave like a clean truncation of both endpoints.

This function is not a spelling alias of BINOM.DIST: its argument order and interval interface differ. BINOM.DIST is useful for an exact count or cumulative threshold; BINOM.INV asks for the count needed to reach a probability. Imported files may retain names or compatibility prefixes differently, so test the destination application before sharing a critical model.

References checked October 18, 2026

Availability, version scope and verification

This function is currently documented in ONLYOFFICE’s rolling Spreadsheet Editor help. Its original introduction version/date and final supported-version endpoint are not established here. A legacy spelling does not by itself mean that a function is deprecated or retired.

The implementation evidence is official SDKJS tag v10.0.0.169, pinned to commit 3679e0375a758d7dc59d31337a45461be3525ed8. That identifies the inspected source revision, not proof of identical behavior in every Docs server, Desktop Editors build, mobile client or exported workbook. Sources were checked on October 18, 2026.

These examples were not tested in the application. Numerical answers in this guide are independently calculated mathematical targets; implementation-specific cases are explicitly source-predicted. No ONLYOFFICE calculation engine was executed for these examples. No native screenshot, recalculated workbook or successful GUI workflow is claimed. Formulas use English names and comma separators; a localized installation may require different separators or translated names.