Ekstrak nilai bidang dari tipe data
=FIELDVALUE(value, field_name)
| Parameter | Deskripsi |
|---|---|
value |
The data type with field values. |
field_name |
The field name provided as a text value. |
To retrieve a field value from a linked data type, provide the field name as text in double quotes (""). For example, with a city in cell A1, linked t
=FIELDVALUE(A1,"city population")
In the example shown, the formula in cell C5, copied down, is:
=FIELDVALUE(B5,"city population")
The FIELDVALUE function is an alternative the "dot" syntax for retrieving a field value from a data type. The two formulas below return the same resul
=FIELDVALUE(B5,"area")
=B5.area
Note square brackets ([]) are required for field names that contain spaces:
=FIELDVALUE(B5,"city population")
=B5.[city population]
In column D of the example, FIELDVALUE is used to extract "Area" like this:
FIELDVALUE(B5,"area")
This returns a #FIELD! error for cities where area is not available. To trap this error and return an empty string ("") where there are errors, the IF
=IFERROR(FIELDVALUE(B5,"area"),"")