简体   繁体   中英

Range of numbers in a row in Google Sheets

I want to fill in a row with the following range in each cell: 1-5, 6-10, 11-15,..., 596-600

ie 1-5 in 1st cell of the row, 6-10 in the 2nd cell of the row and so on.

Is there some formula or some functionality in Google sheets to do this?

Sorry if this is a silly question. I don't really use spreadsheets much.

try:

=INDEX(TRANSPOSE(
 FILTER(ROW(A1:A600), MOD(ROW(A1:A600), 5)=0)-4&"-"&
 FILTER(ROW(A1:A600), MOD(ROW(A1:A600), 5)=0)))

在此处输入图像描述

You can use:

谷歌表格使用序列

Or maybe:

谷歌表格使用序列

You can even try:

谷歌表格使用序列

Please read more about SEQUENCE

In cell A1, type "1-5." In cell A2, use the formula:

=ROW(A1)*5+1&"-"&ROW(A1)*5+5

Copy that formula down to the remaining rows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM