# HistHeadPercentage

Returns the greyscale value that is greater than the specified Percentage of pixels in the specified range of the histogram.

## HistHeadPercentage Inputs

Parameter | Description
Structure | This argument must reference a spreadsheet cell containing a Histogram or ColorHist data structure.
Percentage | Specifies the percentage of the total pixels represented in the histogram that exist within a specified range of greyscale values.
FirstBin | Specifies the first "bin" (0 to 255; default = 0) used to define the Histogram.
LastBin | Specifies the last "bin" (0 to 255; default = 255) used to define the Histogram.

## HistHeadPercentage Outputs

Returns | A value representing the brightest greyscale value, or #ERR if any of the input parameters are invalid.