Dot functionMicrosoft 365 Insider Beta

.HasField()

Check whether an Excel entity exposes a particular field.

Syntax

=value.HasField(field_name)

Worked example

In a supported preview build, test whether the batch record contains a field named Units.

=ENTITY("Batch 17","Units",24).HasField("Units")

Result TRUE

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor