---
title: COLUMN – บอกเลขคอลัมน์
url: https://www.thepexcel.com/functions/excel/lookup-and-reference/column/
type: function-explainer
program: Excel
syntax: "=COLUMN([reference])"
date: 2025-12-02
updated: 2025-12-17
scores:
  popularity: 8
  difficulty: 3
  usefulness: 9
---

# COLUMN – บอกเลขคอลัมน์

> บอกเลขคอลัมน์ของเซลล์ที่ระบุ

## คำอธิบาย

COLUMN ส่งคืนหมายเลขคอลัมน์ (Column Number) ของเซลล์หรือช่วงที่ระบุ ส่งคืนตัวเลขคอลัมน์ 1, 2, 3... (A=1, B=2 เป็นต้น) มีประโยชน์ในการระบุตำแหน่งคอลัมน์แบบไดนามิก

## Syntax

```excel
=COLUMN([reference])
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| reference | No | Reference | current_column | เซลล์ที่ต้องการทราบเลขคอลัมน์ (ว่าง = เซลล์ปัจจุบัน) |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: หาเลขคอลัมน์ของเซลล์เฉพาะ

```excel
=COLUMN(CellC5)
```

**ผลลัพธ์:** `3`

สมมติว่า CellC5 เป็น Named Range ที่อ้างถึงเซลล์ C5
- สูตรจะคืนค่า 3 ซึ่งเป็นหมายเลขคอลัมน์ของ CellC5

### 2. ตัวอย่างที่ 2: หาเลขคอลัมน์ของเซลล์ปัจจุบัน

```excel
=COLUMN()
```

**ผลลัพธ์:** `เลขคอลัมน์ปัจจุบัน`

หากไม่ระบุ Reference สูตรจะคืนค่าหมายเลขคอลัมน์ของเซลล์ที่ใส่สูตรนี้

### 3. ตัวอย่างที่ 3: สร้างลำดับเลขคอลัมน์ (Spill Range)

```excel
=COLUMN(MyRange)
```

**ผลลัพธ์:** `{1,2,3}`

สมมติว่า MyRange เป็น Named Range ที่อ้างถึงช่วง A1:C1
- สูตรจะคืนค่าหมายเลขคอลัมน์เป็น Array {1,2,3} สำหรับช่วง MyRange
- หากต้องการผลลัพธ์แบบ Spill ที่เป็นค่าเดียวแล้วลาก: ใส่ `=COLUMN(NamedCell)` แล้วลากสูตรไปทางขวา

### 4. ตัวอย่างที่ 4: ดึงหมายเลขคอลัมน์ปัจจุบัน

```excel
=COLUMN()
```

**ผลลัพธ์:** `3 (ถ้าอยู่คอลัมน์ C)`

ไม่มีอาร์กิวเมนต์ จะส่งคืนหมายเลขคอลัมน์ปัจจุบัน

### 5. ตัวอย่างที่ 5: แปลงเลขคอลัมน์เป็นตัวอักษร

```excel
=CHAR(64+COLUMN())
```

**ผลลัพธ์:** `C (ถ้าอยู่คอลัมน์ 3)`

ใช้ CHAR เพื่อแปลง 1=A, 2=B, 3=C เป็นต้น

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

**Q: COLUMN() ส่งคืนอะไร?**

COLUMN ส่งคืนหมายเลขคอลัมน์เป็นตัวเลข (1-16384 สำหรับ Excel modern, A=1, B=2)

**Q: ความแตกต่างระหว่าง COLUMN() กับ COLUMN(A1)?**

COLUMN() ส่งคืนคอลัมน์ปัจจุบัน COLUMN(A1) ส่งคืนคอลัมน์ของเซลล์ A1 (เสมอ 1)

**Q: COLUMN ใช้ได้กับ range ไหม?**

ได้ แต่ถ้า range มีหลายคอลัมน์ จะส่งคืนหมายเลขคอลัมน์แรก

**Q: สามารถแปลงเลขคอลัมน์เป็นตัวอักษร (A, B, C)?**

ใช้ CHAR(64+COLUMN()) สำหรับ A-Z หรือใช้ Regex/VBA สำหรับ A-ZZ

**Q: ROW กับ COLUMN สามารถใช้ร่วมกันได้ไหม?**

ได้ครับ สร้าง unique ID เช่น =ROW()&"_"&COLUMN() ได้ "5_3"

**Q: จะอ้างอิง cell ตามหมายเลข row/column?**

ใช้ INDEX() หรือ INDIRECT() เช่น =INDEX(Range, ROW()-header, COLUMN()-1)

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

- [ADDRESS – แปลงแถวและคอลัมน์เป็นชื่อเซลล์](https://www.thepexcel.com/functions/excel/lookup-and-reference/address/)
- [CELL – ดูข้อมูลเซลล์ (Format/Type)](https://www.thepexcel.com/functions/excel/information/cell/)
- [CHOOSECOLS – เลือกและจัดเรียงคอลัมน์จากตาราง](https://www.thepexcel.com/functions/excel/lookup-and-reference/choosecols/)
- [COLUMNS – นับจำนวนคอลัมน์ทั้งหมด](https://www.thepexcel.com/functions/excel/lookup-and-reference/columns/)
- [INDIRECT – อ้างอิงเซลล์แบบไดนามิก](https://www.thepexcel.com/functions/excel/lookup-and-reference/indirect/)
- [ROW – บอกเลขแถว](https://www.thepexcel.com/functions/excel/lookup-and-reference/row/)
- [ROWS – นับจำนวนแถวทั้งหมด](https://www.thepexcel.com/functions/excel/lookup-and-reference/rows/)
- [SEQUENCE – สร้างตารางตัวเลขเรียงลำดับแบบ Dynamic Array](https://www.thepexcel.com/functions/excel/math-and-trigonometry/sequence/)
- [SHEET – ค้นหาหมายเลขลำดับชีท](https://www.thepexcel.com/functions/excel/information/sheet/)
- [SHEETS – นับจำนวนแผ่นงาน](https://www.thepexcel.com/functions/excel/information/sheets/)

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

- [Official Documentation](https://support.microsoft.com/en-us/office/column-function-44e8c754-711c-4df3-9da4-47a55042554b) _(official)_
- [ExcelJet](https://exceljet.net/excel-functions/excel-column-function) _(guide)_

---

_Source: [https://www.thepexcel.com/functions/excel/lookup-and-reference/column/](https://www.thepexcel.com/functions/excel/lookup-and-reference/column/)_
