The Excel Areas function takes an Excel reference and returns the number of areas that make up the reference.
The syntax of the function is:
Where the reference argument can be a standard Excel reference (or list of references), or a named range.
If the reference argument is input directly, the different areas of cells are entered as a list, separated by commas and surrounded by brackets. This is seen in the examples below.
The following spreadsheets show simple examples of the Excel Areas function, where the function argument is input directly, as a list of areas.
The following spreadsheet shows another example of the AREAS function, where the supplied reference is a named range (called 'TestRange'), which is made up of the 3 areas shown on the 'Formula' spreadsheet below.
As shown in the 'Results' spreadsheet, the Areas function returns the result 3.
('TestRange' is the named range ( B1:C4, E1:E2, D5:E6 ) )
Further examples of the Excel Areas function are provided on the Microsoft Office website.