AREAS function and ways to use
This article describes the formula syntax and usage of the AREAS function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Excel.
Description
Objective: Returns the number of areas in a reference. An area is a range of contiguous cells or a single cell.
Syntax
AREAS(reference)The AREAS function syntax has the following argument (argument: A value that provides information to an action, an event, a method, a property, a function, or a procedure.):
Reference Required. A reference to a cell or range of cells and can refer to multiple areas. If you want to specify several references as a single argument, then you must include extra sets of parentheses so that Microsoft Excel will not interpret the comma as a field separator. See the following example. Example 1
.png)
Example 2
.png)
สูตร Excel หรือ ฟังก์ชั่น Areas มีหน้าที่คืนค่าจำนวนพื้นที่ที่เราเลือก กลับมาให้เรา ดังภาพตัวอย่าง เราจะเห็นว่า มันคืนค่า 3 กลับมา นั่นคือ มีพื้นที่ 3 จุดถูกเลือกนั่นเอง โดยหากเราเลือกแค่พื้นที่เดียว เราจะใส่วงเล็บแค่หนึ่งชั้นเท่านั้น แต่หากว่าพื้นที่ที่เราเลือกมากกว่า 1 ก็จะต้องระบุวงเล็บเพิ่มเข้ามาอีกชั้น เพราะฟังก์ชั่น Areas จะกลายเป็นฟังก์ชั่นที่ทำงานแบบอาร์เรย์แล้ว (มีข้อมูลหลายช่วง)