Extracts a single record from a database that matches specified conditions.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
DGET(database, field, criteria)The DGET function searches a database for a record that matches the criteria you define. If exactly one record is found, it returns the value from the specified field; if no records or multiple records match, it returns an error.
=DGET(A1:C10, "Price", E1:E2)ผลลัพธ์: 150
Returns the price from the database where the criteria in E1:E2 match a unique item.
DGET will return the #NUM! error if more than one record matches the criteria.