---
title: List.Skip – ข้ามสมาชิก N ตัวแรกจาก List
url: https://www.thepexcel.com/functions/power-query/list-functions/list-skip/
type: function-explainer
program: Power Query
syntax: "List.Skip(list as list, count as number, optional countOrCondition as any) as list"
date: 2025-12-12
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 4
  usefulness: 5
---

# List.Skip – ข้ามสมาชิก N ตัวแรกจาก List

> ข้ามสมาชิก N ตัวแรกและคืนส่วนที่เหลือของรายการ

## คำอธิบาย

List.Skip ข้ามสมาชิกจำนวน N ตัวแรกจากรายการและคืนส่วนที่เหลือ ฟังก์ชันนี้มีประโยชน์เมื่อต้องการลบแถวหัวตารางที่ไม่ต้องการ หรือข้ามข้อมูลบางส่วนจากจุดเริ่มต้น

## Syntax

```excel
List.Skip(list as list, count as number, optional countOrCondition as any) as list
```

**Variant**

```excel
List.Skip(list, 2)
```

ข้าม 2 สมาชิกแรก

**Variant**

```excel
List.Skip(list, 2, 3)
```

ข้าม 2 สมาชิกแรก แล้วคืนเพียง 3 สมาชิกถัดไป

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| list | Yes | list |  | รายการที่ต้องการข้ามสมาชิก |
| count | Yes | number |  | จำนวนสมาชิกที่ต้องการข้าม |
| countOrCondition | No | any | null | จำนวนสมาชิกที่ต้องการคืน (ตัวเลือก) |

## เคสการใช้งาน

### ตัดแถวหัวตาราง

ข้ามแถวหัวตารางที่ไม่ต้องการและเก็บเฉพาะข้อมูลสินค้า

_เหมาะกับ:_ header-removal

### ข้ามระเบียนไม่ต้องการ

ข้ามระเบียนแรกหลาย ๆ ตัวที่ไม่ใช่ข้อมูลหลัก

_เหมาะกับ:_ record-filtering

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: ข้าม 2 สมาชิกแรก

```excel
List.Skip({10, 20, 30, 40, 50}, 2)
```

**ผลลัพธ์:** `{30, 40, 50}`

ข้าม 10 และ 20 ได้ผลลัพธ์เป็น {30, 40, 50}

### 2. ตัวอย่างที่ 2: ข้าม 3 สมาชิกแรกแล้วเก็บ 2 ตัว

```excel
let
    SkipAndTake = List.Range(List.Skip({"A", "B", "C", "D", "E"}, 3), 0, 2)
in
    SkipAndTake
```

**ผลลัพธ์:** `{"D", "E"}`

ข้าม A, B, C (3 ตัวแรก) แล้วเก็บ D และ E (2 ตัวถัดไป)

### 3. ตัวอย่างที่ 3: ข้ามแถวหัวตารางเพิ่มเติม

```excel
let
    RawData = {"Metadata", "Info", 100, 200, 300},
    CleanData = List.Skip(RawData, 2)
in
    CleanData
```

**ผลลัพธ์:** `{100, 200, 300}`

ข้าม Metadata และ Info (บรรทัดหัวตาราง) เก็บเฉพาะข้อมูลตัวเลข

## หมายเหตุเพิ่มเติม

⚠️ ข้อสังเกต: List.Skip เหมาะสำหรับการตัดแถวหัวตาราง การข้ามข้อมูลไม่ต้องการ หรือการสร้าง pagination ร่วมกับ List.FirstN หรือ List.Range

## คำถามที่พบบ่อย

**Q: ความแตกต่างระหว่าง List.Skip กับ List.FirstN คืออะไร**

List.FirstN ดึงสมาชิก N ตัวแรก ส่วน List.Skip ข้าม N ตัวแรกและคืนส่วนที่เหลือ

**Q: ถ้า count มากกว่าจำนวนสมาชิก จะเกิดอะไร**

ฟังก์ชันจะคืนรายการว่างเปล่า เพราะข้ามสมาชิกทั้งหมด

## ฟังก์ชันที่เกี่ยวข้อง

- [List.FirstN – ดึงสมาชิก N ตัวแรกจาก List](https://www.thepexcel.com/functions/power-query/list-functions/list-firstn/)
- [List.Range – ดึงช่วงของสมาชิกจาก List](https://www.thepexcel.com/functions/power-query/list-functions/list-range/)
- [List.LastN – ดึงสมาชิก N ตัวท้ายจาก List](https://www.thepexcel.com/functions/power-query/list-functions/list-lastn/)

## แหล่งข้อมูลเพิ่มเติม

- [Microsoft Learn: List.Skip](https://learn.microsoft.com/en-us/powerquery-m/list-skip) _(documentation)_

---

_Source: [https://www.thepexcel.com/functions/power-query/list-functions/list-skip/](https://www.thepexcel.com/functions/power-query/list-functions/list-skip/)_
