Excel FIELDVALUE Function
If you want to follow along with this tutorial, please download the example spreadsheet.
The FIELDVALUE function retrieves field data from linked data types like Stocks or Geography data types.
Note: For creating the data type like geography data type, please do as this:
In Excel 365 worksheet, type a city name like New York in a cell, keep the cell selected and click Data tab, then choose Geography from the Data Types group, then a card symbol is inserted at the front of the city.
For more information about data types, please visit Microsoft Support.
Syntax and arguments
The FIELDVALUE function returns the matched field value from the linked data type.
#FIELD! error value occurs when the argument field_name is not available in the linked data type
#NAME? error value occurs when the argument field_nane is not valid, supposing is not enclosed with double quotation marks.
For displaying the error value as blank, you can add the ISERROR function in the FIELDVALUE function like this:
Usage and Examples
Example: basic usage
The list B4:B6 contains city names, then in the column C and column D, to list the corresponding latitudes and longitudes of the cities, please use formulas as below:
=FIELDVALUE($B4,"latitude") //to get the latitude value of the city name in B4
=FIELDVALUE($B4,"longitude") //to get the longitude value of the city name in B4
Excel VLOOKUP Function
The Excel VLOOKUP function searches for a value by matching on the first column of a table and returns the corresponding value from a certain column in the same row.
Excel LOOKUP Function
Excel LOOKUP function finds certain value in a one column or one row range, and return the corresponding value from another (one row or one column) range.
Excel GETPIVOTDATA Function
The GETPIVOTDATA function queries a pivot table and returns data based on the pivot table structure.
Excel ADDRESS Function
The ADDRESS function returns the cell address reference as text, based on the given column number and row number.