---
title: HYPERLINK – สร้างลิงก์
url: https://www.thepexcel.com/functions/excel/lookup-and-reference/hyperlink/
type: function-explainer
program: Excel
syntax: "=HYPERLINK(link_location, [friendly_name])"
date: 2025-12-02
updated: 2025-12-17
scores:
  popularity: 7
  difficulty: 5
  usefulness: 9
---

# HYPERLINK – สร้างลิงก์

> สร้างลิงก์ที่คลิกได้

## คำอธิบาย

HYPERLINK สร้างลิงก์ที่คลิกได้ไปยังเว็บไซต์ ไฟล์ เซลล์ใน Sheet อื่น หรืออีเมล สามารถกำหนดข้อความที่แสดงต่างจาก URL จริงได้

## Syntax

```excel
=HYPERLINK(link_location, [friendly_name])
```

**excel**

```excel
=HYPERLINK("https://example.com", "Click Here")
```

ลิงก์ไปเว็บไซต์

**excel**

```excel
=HYPERLINK("#Sheet2!A1", "Go to Sheet2")
```

ลิงก์ไปเซลล์ใน Sheet อื่น

**excel**

```excel
=HYPERLINK("mailto:name@email.com", "Send Email")
```

ลิงก์เปิดอีเมล

**excel**

```excel
=HYPERLINK("C:\\Reports\\file.xlsx", "Open File")
```

ลิงก์ไปไฟล์ในเครื่อง

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| link_location | Yes | Text |  | URL, path ไฟล์, หรืออ้างอิงเซลล์ที่ต้องการลิงก์ไป (ใช้ # นำหน้าสำหรับลิงก์ภายใน workbook) |
| friendly_name | No | Text/Number | link_location | ข้อความหรือค่าที่แสดงในเซลล์ (ถ้าไม่ระบุจะแสดง URL) |

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

### Dashboard Navigation

สร้างเมนูนำทางใน Dashboard ที่คลิกไปยัง Sheet ต่างๆ ได้

_เหมาะกับ:_ reporting

### รายงานที่เชื่อมโยงเอกสาร

สร้างลิงก์ไปยังไฟล์แนบหรือเอกสารอ้างอิงในรายงาน

_เหมาะกับ:_ documentation

### รายชื่อติดต่อ

สร้างลิงก์อีเมลที่คลิกแล้วเปิด email client พร้อมกรอก To อัตโนมัติ

_เหมาะกับ:_ communication

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: ลิงก์ไปเว็บไซต์

```excel
=HYPERLINK("https://www.google.com", "Go to Google")
```

**ผลลัพธ์:** `"Go to Google" (คลิกได้)`

สร้างลิงก์แสดงข้อความ "Go to Google" คลิกแล้วเปิดเว็บ Google

### 2. ตัวอย่างที่ 2: ลิงก์ไปเซลล์ใน Sheet อื่น

```excel
=HYPERLINK("#Sheet2!A1", "ไปข้อมูล")
```

**ผลลัพธ์:** `"ไปข้อมูล" (คลิกได้)`

ใช้ # นำหน้าสำหรับลิงก์ภายใน workbook ไปที่เซลล์ A1 ใน Sheet2

### 3. ตัวอย่างที่ 3: ลิงก์ส่งอีเมล

```excel
=HYPERLINK("mailto:support@example.com?subject=Help", "Contact Support")
```

**ผลลัพธ์:** `"Contact Support" (คลิกได้)`

คลิกแล้วเปิด email client พร้อมกรอก To และ Subject

### 4. ตัวอย่างที่ 4: ลิงก์ไป Named Range

```excel
=HYPERLINK("#SummaryTable", "View Summary")
```

**ผลลัพธ์:** `"View Summary" (คลิกได้)`

ลิงก์ไปยัง Named Range ชื่อ SummaryTable

### 5. ตัวอย่างที่ 5: Dynamic link จากเซลล์

```excel
=HYPERLINK(A1, B1)
```

**ผลลัพธ์:** `ข้อความใน B1 (คลิกไป URL ใน A1)`

สร้างลิงก์โดยดึง URL จาก A1 และข้อความจาก B1

### 6. ตัวอย่างที่ 6: ลิงก์เปิดไฟล์

```excel
=HYPERLINK("C:\\Reports\\Q4Report.xlsx", "Open Q4 Report")
```

**ผลลัพธ์:** `"Open Q4 Report" (คลิกได้)`

คลิกแล้วเปิดไฟล์ Excel จาก path ที่กำหนด (ใช้ \\ แทน \)

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

**Link Location Formats:**\n\n| ประเภท | รูปแบบ |\n|--------|--------|\n| เว็บไซต์ | https://example.com |\n| อีเมล | mailto:name@email.com |\n| Sheet ภายใน | #Sheet2!A1 |\n| Named Range | #RangeName |\n| ไฟล์ local | C:\\\\folder\\\\file.xlsx |\n| Network | \\\\\\\\server\\\\folder\\\\file.xlsx |\n| โทรศัพท์ | tel:+66812345678 |\n\n**Pattern การใช้งาน:**\n```\n=HYPERLINK(URL, "Text")                → ลิงก์เว็บ\n=HYPERLINK("#Sheet!Cell", "Text")      → ลิงก์ภายใน\n=HYPERLINK("mailto:"&A1, "Email")      → ลิงก์อีเมล\n=HYPERLINK("#"&ADDRESS(1,1), "Go")     → Dynamic link\n```\n\n**Tips:**\n- ใช้ # สำหรับลิงก์ภายใน workbook\n- ใช้ \\\\ แทน \\ ใน path ไฟล์\n- ลิงก์จะแสดงเป็นสีน้ำเงินขีดเส้นใต้

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

**Q: ทำไมลิงก์ไป Sheet อื่นไม่ทำงาน?**

ต้องใส่ # นำหน้า เช่น "#Sheet2!A1" ไม่ใช่ "Sheet2!A1" เครื่องหมาย # บอก Excel ว่าเป็นลิงก์ภายใน workbook

**Q: ใช้ path ไฟล์แบบไหนได้บ้าง?**

รองรับทั้ง local path (C:\\folder\\file.xlsx), network path (\\\\server\\folder\\file.xlsx), และ URL (https://...)

**Q: ทำให้ลิงก์ไม่แสดง URL ยาวๆ ได้ไหม?**

ได้ ใช้ friendly_name กำหนดข้อความที่ต้องการแสดง เช่น =HYPERLINK("https://very-long-url.com/path/to/page", "Click")

**Q: สร้างลิงก์โทรศัพท์ได้ไหม?**

ได้ ใช้ tel: protocol เช่น =HYPERLINK("tel:+66812345678", "Call Us") (ทำงานบนมือถือ)

**Q: HYPERLINK รองรับ Excel เวอร์ชันไหน?**

ทุกเวอร์ชันตั้งแต่ Excel 2003 เป็นฟังก์ชันพื้นฐานที่มีใน spreadsheet ทุกโปรแกรม

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

- [ADDRESS – แปลงแถวและคอลัมน์เป็นชื่อเซลล์](https://www.thepexcel.com/functions/excel/lookup-and-reference/address/)
- [INDIRECT – อ้างอิงเซลล์แบบไดนามิก](https://www.thepexcel.com/functions/excel/lookup-and-reference/indirect/)
- [CELL – ดูข้อมูลเซลล์ (Format/Type)](https://www.thepexcel.com/functions/excel/information/cell/)
- [SHEET – ค้นหาหมายเลขลำดับชีท](https://www.thepexcel.com/functions/excel/information/sheet/)
- [CONCATENATE – รวมข้อความ (เวอร์ชันเก่า)](https://www.thepexcel.com/functions/excel/text/concatenate/)
- [TEXTJOIN – เชื่อมข้อความหลายค่าด้วยตัวคั่นที่กำหนด](https://www.thepexcel.com/functions/excel/text/textjoin/)

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

- [Microsoft Support: HYPERLINK function](https://support.microsoft.com/en-us/office/hyperlink-function-333c7ce6-c5ae-4164-9c47-7de9b76f577f) _(official)_
- [ExcelJet: How to use HYPERLINK](https://exceljet.net/excel-functions/excel-hyperlink-function) _(guide)_

---

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