# How to Use Excel DSTDEV Function?

Excel DSTDEV Function: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It uses spreadsheets to store, organize, or perform operations with formulas and functions. If you want to find the standard deviation of sample data extracted from records that match the given criteria, use the Excel DSTDEV function.

This article describes the usage of Excel DSTDEV Function with its syntax, explanation, and example. Get an official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

## Description of DSTDEV Function

• It is one of the built-in functions in Microsoft Excel.
• This function returns the standard deviation of sample data taken from the list or database based on the given condition or criteria.

## Syntax

• Here, you will see the syntax of the DSTDEV function.
• To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
• Once you enter the formula, just click on the button to get the result.

=DSTDEV(database, field, criteria)

Arguments Explanation:

• Database – It is the database range including table headers.
• Field – This is the field name or index to count.
• Criteria – It is the criteria range including table headers.

Note:
1) You need to give the field argument as a name within the double quotes (” “) or a number representing the field index.
2) The database and criteria range must include the matching headers.
3) If you didn’t give the field argument as a name within the double quotes (” “), then it returns #NAME? Error.

## Example

Let’s see some examples to understand how DSTDEV Function will work.

• Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
• For example, we have given a range of input values in B5:E10 and the criteria range (B2:E3). The given condition is “Product=Pencil, Qty>5” and the output is displayed in Cell G6.
• Then, we have to apply the above-mentioned formula to get the result, as shown in the following screenshot.
• Finally, we need to click on the button to get the result.
• If you didn’t give the field argument as a name within the double quotes (” “), then it returns #NAME? Error.

### Multi-row Criteria

• Multi-row criteria have one or more rows below the headers. These are joined by using OR logic.
• The expressions in a given criteria row are joined with AND logic.