A custom number format has four sections that define how different types of values (positive numbers, negative numbers, zero values, and text) are displayed. Each section can be customized independently to control the appearance of these different value types within a spreadsheet cell or range.