UPPER, PROPER, LOWER
คือชุดฟังก์ชันก์ที่พูดถึง หน้าที่คือเปลี่ยน Text ให้เป็นตัวพิมพ์ใหญ่ หรือ ตัวพิมพ์เล็ก แต่ละตัวทำงานคล้ายกัน แต่คืนค่าต่างกันรูปแบบฟังก์ชัน
| UPPER(text) | : แปลงข้อความใน (text) ไปเป็นตัวพิมพ์ใหญ่ |
| PROPER(text) | : เปลี่ยนตัวอักษรตัวแรกในแต่ละคำใน (text) เป็นตัวพิมพ์ใหญ่ และอื่นเป็นตัวพิมพ์เล็ก |
| LOWER(text) | : แปลงข้อความใน (text) เป็นตัวพิมพ์เล็ก |
ตัวอย่างการใช้งาน
- ส่วนแรกใช้ฟังก์ชันกับ Text
- ส่วนถัดไป สมมุติให้ A6 เป็นประโยค you must be the change You wish to see in the World. และจะใช้ประโยคนี้กับฟังก์ชันทั้งสาม
| Row | Column | ||
|---|---|---|---|
| A | B | C | |
| 1 | ฟังก์ชันที่ใช้ | แทนค่า | ผลลัพท์ |
| 2 | UPPER(text) | UPPER ("Mahatama Gandhi") | MAHATAMA GANDHI |
| 3 | PROPER(text) | PROPER ("good manufacturing practice") | Good Manufacturing Practice |
| 4 | LOWER(text) | LOWER ("Swimsuit-Shopping Demons") | swimsuit-shopping demons |
| 5 | |||
| 6 |
you must be the change You wish to see in the World.
| ||
| 7 | UPPER(A6) | YOU MUST BE THE CHANGE YOU WISH TO SEE IN THE WORLD. | |
| 8 | PROPER(A6) | You Must Be The Change. You Wish To See In The World. | |
| 9 | LOWER(A6) | you must be the change. you wish to see in the world. | |

ไม่มีความคิดเห็น:
แสดงความคิดเห็น