---
title: CELL – ดูข้อมูลเซลล์ (Format/Type)
url: https://www.thepexcel.com/functions/excel/information/cell/
type: function-explainer
program: Excel
syntax: "=CELL(info_type, [reference])"
date: 2025-12-02
updated: 2025-12-17
scores:
  popularity: 3
  difficulty: 2
  usefulness: 2
---

# CELL – ดูข้อมูลเซลล์ (Format/Type)

> ดูข้อมูลเซลล์ (Format/Type)

## คำอธิบาย

ข้อมูลเซลล์

## Syntax

```excel
=CELL(info_type, [reference])
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| info_type | Yes | Text |  | ประเภทข้อมูล (เช่น "address", "type") |
| reference | Yes | Reference |  | เซลล์ที่ต้องการดูข้อมูล |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: แสดง Path และชื่อไฟล์ของ Workbook

```excel
=CELL("filename", MyWorkbook)
```

**ผลลัพธ์:** `C:\Docs\[Book1.xlsx]Sheet1`

สมมติ MyWorkbook คือ Named Range ที่อ้างอิงถึงเซลล์ใดๆ ใน Workbook
- สูตรจะคืนค่า Path เต็มของไฟล์ Excel และชื่อ Sheet ที่ใช้งานอยู่ (ต้องบันทึกไฟล์ก่อน)

### 2. ตัวอย่างที่ 2: ตรวจสอบรูปแบบการจัดรูปแบบเซลล์

```excel
=CELL("format", TargetCell)
```

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

สมมติ TargetCell คือ Named Range ที่อ้างถึงเซลล์
- สูตรจะคืนค่ารหัสของรูปแบบการจัดรูปแบบ เช่น "G" (General), "D1" (วันที่), "C2" (สกุลเงินมี 2 ทศนิยม)

### 3. ตัวอย่างที่ 3: ตรวจสอบความกว้างของคอลัมน์

```excel
=CELL("width", ColumnA)
```

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

สมมติ ColumnA คือ Named Range ที่อ้างถึงเซลล์ในคอลัมน์ A
- สูตรจะคืนค่าความกว้างของคอลัมน์ A เป็นตัวเลข (หน่วยคือจำนวนตัวอักษรของ Font Standard)

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

- [COLUMN – บอกเลขคอลัมน์](https://www.thepexcel.com/functions/excel/lookup-and-reference/column/)
- [INDIRECT – อ้างอิงเซลล์แบบไดนามิก](https://www.thepexcel.com/functions/excel/lookup-and-reference/indirect/)
- [INFO – ดึงข้อมูลระบบและสภาพแวดล้อม Excel](https://www.thepexcel.com/functions/excel/information/info/)
- [ROW – บอกเลขแถว](https://www.thepexcel.com/functions/excel/lookup-and-reference/row/)
- [SHEET – ค้นหาหมายเลขลำดับชีท](https://www.thepexcel.com/functions/excel/information/sheet/)
- [SHEETS – นับจำนวนแผ่นงาน](https://www.thepexcel.com/functions/excel/information/sheets/)
- [TYPE – ตรวจสอบชนิดข้อมูล](https://www.thepexcel.com/functions/excel/information/type/)

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

- [Official Documentation](https://support.microsoft.com/en-us/office/cell-function-51bd39a5-f338-4dbe-a33f-955d67c2b2cf) _(official)_
- [ExcelJet](https://exceljet.net/excel-functions/excel-cell-function) _(guide)_

---

_Source: [https://www.thepexcel.com/functions/excel/information/cell/](https://www.thepexcel.com/functions/excel/information/cell/)_
