Estimates the variance of a population based on a sample from entries in a database that match specified conditions.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
DVAR(database, field, criteria)The DVAR function evaluates a list or database using a sample of the population. It filters data based on criteria you define and calculates the variance of the numbers in the specified field.
=DVAR(A1:C10, "Profit", E1:E2)ผลลัพธ์: 125.4
Calculates the sample variance of the 'Profit' column for rows matching the criteria in E1:E2.
DVAR calculates variance based on a sample, while DVARP calculates variance based on the entire population.