Returns the column number of a reference.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
COLUMN([reference])The COLUMN function returns the column index number for a given cell reference. If the reference argument is omitted, the function returns the number of the column where the formula is currently located.
=COLUMN(C1)ผลลัพธ์: 3
Returns 3 because column C is the third column in the worksheet.
=COLUMN()ผลลัพธ์: 1
Returns 1 if the formula is entered in cell A1.
The function will return the column number of the first column in the range.