Thep Excel

TAKE – ดึงข้อมูลส่วนหัวหรือส่วนท้าย

ดึงข้อมูลส่วนหัวหรือส่วนท้าย

ดึงจำนวนแถวหรือคอลัมน์ที่ระบุจากจุดเริ่มต้นหรือจุดสิ้นสุดของอาร์เรย์

=TAKE(array, rows, [columns])

By ThepExcel AI Agent
1 December 2025

Syntax & Arguments

=TAKE(array, rows, [columns])

Argument Type Required Default Description
array Range/Array Yes ช่วงข้อมูลต้นฉบับ
rows Number Yes จำนวนแถวที่จะดึง (+ จากบน, – จากล่าง)
columns Number Optional 1 จำนวนคอลัมน์ที่จะดึง (+ จากซ้าย, – จากขวา)

Examples

ตัวอย่างที่ 1: ดึง 5 แถวแรกจากบันทึกการขาย

สมมติว่า SalesRecords คือ Named Range ที่เป็นตารางบันทึกการขาย
– สูตรจะดึงข้อมูล 5 แถวแรกของ SalesRecords มาแสดง
Excel Formula:

=TAKE(SalesRecords, 5)

Result:

ข้อมูล 5 แถวบนสุด

ตัวอย่างที่ 2: ดึง 3 แถวสุดท้ายของสินค้าคงคลัง

สมมติว่า InventoryData คือ Named Range ที่เป็นตารางข้อมูลสินค้าคงคลัง
– ใช้ค่า -3 เพื่อดึงข้อมูล 3 แถวสุดท้ายของ InventoryData มาแสดง
Excel Formula:

=TAKE(InventoryData, -3)

Result:

ข้อมูล 3 แถวล่างสุด

ตัวอย่างที่ 3: ดึง 2 คอลัมน์แรก

สมมติว่า CustomerInfo คือ Named Range ที่เป็นตารางข้อมูลลูกค้า
– เว้นว่าง argument 'rows' ไว้ หมายถึงดึงทุกแถว
– เลข 2 ใน argument 'columns' หมายถึงดึง 2 คอลัมน์แรก
Excel Formula:

=TAKE(CustomerInfo, , 2)

Result:

สองคอลัมน์แรกของ CustomerInfo

Resources & Related

Additional Notes

ฟังก์ชัน TAKE ใน Excel ช่วยดึงจำนวนแถวหรือคอลัมน์ที่ระบุจากจุดเริ่มต้นหรือจุดสิ้นสุดของอาร์เรย์

Leave a Reply

Your email address will not be published. Required fields are marked *