Contact

Zoho Sheet DEVSQ: Sum of Squared Deviations Explained

Statistical Intermediate Zoho Sheet

Calculate the sum of squared deviations from the mean in Zoho Sheet, with checked data, relationships to VAR and STDEV, and error guidance.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Zoho Sheet. How formula examples are checked

Quick answer: =DEVSQ(B2:B9) adds the squares of the distances between each numeric entry and the mean of those entries. With the weekly demand dataset below, the independently calculated expected answer is 718 squared units. The official function and formula syntax were researched, but no formula was executed inside Zoho Sheet.

DEVSQ is a building block for variance and standard deviation. It does not return variance by itself and does not return an ordinary-unit difference. If the source measures products sold per week, DEVSQ’s value is in (products per week)². That squared unit is why DEVSQ is useful inside further calculations but is often less intuitive than AVEDEV or STDEV for dashboard readers.

Official syntax and parameters

DEVSQ(number; [number1]; ...)
Argument Required? What it represents Example
number Yes Number, numeric cell or range containing the observations. Zoho’s documentation illustrates A2:A10. B2:B9
number1, etc. Optional Additional numeric values or input references included in the calculation. E2:E9

Zoho’s reference writes semicolons between arguments. Example: =DEVSQ(-13;5;27;-1.5) is included in the official documentation with a displayed result of 848.6875. A contiguous reference is normally simpler than supplying every value as a separate argument.

Unlike functions such as VAR and VARP, DEVSQ does not ask whether the recorded values represent a sample or an entire population. It calculates the shared sum of squared deviations first. The sample/population convention matters later, when that sum is divided by nāˆ’1 or n. Zoho describes DEVSQ as operating on a sample, but the underlying arithmetic does not use either variance denominator.

Zoho’s DEVSQ page explicitly says text, logical values and empty cells are ignored. That is a function-specific policy; do not generalise it to nearby functions such as VARA or STDEVA, which Zoho documents differently. Cells containing zero are legitimate numerical entries and should not be omitted simply because zero is visually similar to an absence.

This current online vendor description does not establish a first supported product version, account entitlement or identical behaviour across old web, mobile or desktop releases. Any version/platform claim beyond the official reference remains unverified.

A step-by-step eight-week example

Create a sheet with Week in A1, Units in B1, and then populate A2:B9:

Row Week Units Difference from mean 22.5 Squared difference
2 W1 10 āˆ’12.5 156.25
3 W2 14 āˆ’8.5 72.25
4 W3 18 āˆ’4.5 20.25
5 W4 18 āˆ’4.5 20.25
6 W5 22 āˆ’0.5 0.25
7 W6 26 3.5 12.25
8 W7 30 7.5 56.25
9 W8 42 19.5 380.25
  1. Enter =AVERAGE(B2:B9) in E2. Adding the eight values gives 180 and dividing by eight gives a mean of 22.5.
  2. Enter =DEVSQ(B2:B9) in E3. The hand-calculated expected result is 718.
  3. To reproduce the arithmetic without trusting DEVSQ itself, put =B2-$E$2 in C2. Copy down through C9. You should obtain the signed differences listed above.
  4. Put =C2^2 in D2 and copy it down through D9. All the squares are nonnegative, including for weeks with below-average demand.
  5. =SUM(D2:D9) should produce 718. That matches the independent DEVSQ expectation.

The largest term is 380.25, contributed by week W8 (42 units), which lies 19.5 above the mean. That single week’s squared term constitutes more than half of the 718 total. This shows why a squared-deviation measure is sensitive to extreme values. A negative deviation still contributes a positive squared term.

The output is an expected mathematical outcome, not an observed native Zoho Sheet execution. If a result differs, inspect the actual type and contents of the source cells, not merely the appearance of a chart.

Understand the equation, including the denominator

DEVSQ sums the squared distances from the mean:

DEVSQ = (x1 āˆ’ xĢ„)^2 + (x2 āˆ’ xĢ„)^2 + ... + (xn āˆ’ xĢ„)^2

Here, x̄ is the mean of the numeric observations and n is their count. For the worked example:

156.25 + 72.25 + 20.25 + 20.25 + 0.25 + 12.25 + 56.25 + 380.25 = 718

Variance is not 718. If the eight values are a sample, the usual sample variance divides the 718 total by nāˆ’1 = 7, giving 102.571428571…. If the eight values are the complete population of interest, population variance divides by n = 8, giving 89.75. Their square roots are the corresponding standard deviations. Neither sample nor population variance should be labelled simply ā€œ718.ā€

There is a second conceptual difference from AVEDEV: DEVSQ squares each distance, while AVEDEV uses each absolute distance and then divides by the number of included observations. On the same eight observations AVEDEV has an expected 7.625 units; DEVSQ has 718 squared units. These outputs are not interchangeable or directly comparable without understanding their units.

Advanced application: confirm variance and construct an audit check

DEVSQ is especially useful when independently verifying a statistical workbook. Suppose weekly sales feed a risk-reporting worksheet and you want to confirm the variance shown elsewhere in the file. With the data in B2:B9:

Purpose Zoho Sheet expression Expected arithmetic output
Squared deviation sum =DEVSQ(B2:B9) 718
Count of recorded numbers =COUNT(B2:B9) 8
Sample variance from DEVSQ =DEVSQ(B2:B9)/(COUNT(B2:B9)-1) 102.571428571…
Population variance from DEVSQ =DEVSQ(B2:B9)/COUNT(B2:B9) 89.75
Documented VAR comparison =VAR(B2:B9) Predicted 102.571428571…
Documented VARP comparison =VARP(B2:B9) Predicted 89.75

The last two expected outcomes are calculated from standard statistical definitions and the separate Zoho function descriptions; they have not been native-tested in this particular workbook. A useful audit is to compare the output of VAR(B2:B9) with the explicit DEVSQ formula above. If they do not agree under clean numeric input, investigate whether the range, data types or software semantics differ from the assumptions.

Guard against an invalid denominator: The sample-variance expression divides by COUNT(B2:B9)-1. With fewer than two valid numerical observations, that denominator is zero or negative. This is a mathematical guard, not a claim about Zoho’s exact error message. In production, choose a clear missing-data policy and test the client-specific behaviour before using the expression as a dashboard feed.

For an operational flag with a deliberately chosen reference limit, a sample-variance rule might read:

=IF(DEVSQ(B2:B9)/(COUNT(B2:B9)-1)>100;"Investigate variance";"Within threshold")

Using the worked numeric values, the expected message is Investigate variance, because 102.5714 exceeds 100 squared units. A limit of 100 here is illustrative, not a vendor-defined alert level; set any real threshold based on the process, units, time window and business consequences of unusually high variation.

Comparing two four-week segments

Splitting the eight observations exposes how both the mean and dispersion change:

Range Observations Mean DEVSQ result
B2:B5 10, 14, 18, 18 15 44
B6:B9 22, 26, 30, 42 30 224

For W1–W4, the squared differences are 25 + 1 + 9 + 9 = 44. For W5–W8, they are 64 + 16 + 0 + 144 = 224. This demonstrates a meaningful within-period increase, particularly from the last observed 42-unit week.

Do not compare unnormalised DEVSQ values from groups of different sizes as though they were variances. All else equal, more observations usually increase a sum of squared distances. Divide by the appropriate denominator before comparing variance across differently sized periods. The example deliberately uses four weeks in each segment so the question is easier to interpret.

Common mistakes and errors

Mistake: interpreting 718 as a typical 718-unit weekly swing. DEVSQ uses squared distances. For an intuitive ordinary-unit description, use AVEDEV or STDEV as appropriate; for sample variance use VAR or the correctly normalised DEVSQ calculation.

Mistake: treating text statuses as zeros. Zoho says DEVSQ ignores text, logical values and blanks. If a source column includes cancelled, TRUE, or other labels, such inputs do not enter the documented calculation as the zero values that the A-suffixed family may use. Do not confuse 0 (a valid measurement) with a blank or an error.

Mistake: including a subtotal inside the raw range. If B10 contains a sum or average and you reference B2:B10 rather than B2:B9, the calculation can remain mathematically valid but become conceptually wrong. Confirm the endpoints of each range.

Mistake: using too few numeric observations for a variance calculation. DEVSQ itself is a sum, but sample variance has a denominator of nāˆ’1. The documentation does not determine the exact returned code of every empty or single-element DEVSQ input; distinguish the sum from the downstream division and verify degenerate cases in the actual client.

#NAME! appears. Check spelling DEVSQ, missing range colons, defined names and punctuation. This is one of the generic errors listed on Zoho’s reference.

#REF! appears. Check whether a referenced cell or range was deleted, renamed or pasted over. Fix the reference rather than replacing it with a numeric constant that masks the data problem.

#VALUE! or #N/A! appears. Zoho lists these among possible errors with general explanations. That does not establish which exact combinations of errors, strings, arrays or blanks trigger each one in DEVSQ. Minimise the input until the failing row or type is identified; reproduce it in the intended Zoho client.

Unexpected discrepancies after a workbook import. Numbers stored as text may not behave as numbers. A consistent method is to verify the input type of each imported observation and keep nonnumeric status notes in a separate field. This guide contains no native import test.

Excel and Google Sheets comparisons

Zoho’s reference writes DEVSQ(number; [number1]; ...); Microsoft Excel and Google Sheets’ English-language descriptions show DEVSQ(number1, [number2], ...) and DEVSQ(value1, [value2, ...]) respectively. The visible separator differs in their published examples; actual formula delimiters may vary with locale. The underlying description is a sum of squared deviations from a mean, but text conversion, limit handling and edge cases require application-specific verification.

Google explicitly documents that DEVSQ gives 0 for fewer than two supplied values and that DEVSQ can be expressed in terms of sample variance and the count. Zoho’s single-function reference does not make the same explicit edge-case statement. You should not copy that Google-specific behaviour into a Zoho troubleshooting guarantee. Google also describes an unrestricted number of arguments for its implementation; it is not evidence of a corresponding Zoho maximum. Microsoft’s Excel implementation describes additional rules for direct arguments versus referenced cells; do not assume all coercion details match Zoho.

These documents are current online references; they do not certify how the formula behaved in historical releases or on all platforms.

Official sources checked October 12, 2026:

AVERAGE establishes the centre; AVEDEV measures absolute distances; VAR and VARP divide squared deviations using sample or population denominators; STDEV/STDEVP return standard deviations in ordinary units.

Verification status

Verification status: Official Zoho Sheet documentation checked October 12, 2026; calculations independently verified from explicit data, including the relationship with sample and population variance. Not executed in Zoho Sheet. No formula output is represented as native Zoho execution.

No genuine Zoho Sheet screenshots are included; this guide does not use mock application images. Import parsing, single-value handling, empty ranges, conversion of text numerals and exact error messages require separate native testing.