Repeats a given text string a specified number of times.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
REPT(text, number_times)The REPT function allows you to fill a cell with a repeated character or string. It is commonly used to create simple in-cell data visualizations, such as progress bars or star ratings.
=REPT("-", 5)ผลลัพธ์: -----
Repeats the hyphen character five times.
=REPT("★", 3)ผลลัพธ์: ★★★
Repeats the star symbol three times to create a rating visual.
The function will return an empty string.
Yes, but the number will be treated as text and repeated as a string.