简体   繁体   中英

how to calculated next excel character sequence which is separated by nth columns

In sheet 1, i have some values in 'AC', 'AV', 'BO' columns. These columns actually 17 columns difference. It means AC+17 column= AV, AV+17 column= BO So i need to show these values in Sheet 2. however i am finding difficulty to export this sequence or address. Because i have another next 50 sequences ending with AMV.

CHAR(CODE(A1)+17

character calculation is fine only upto CHAR(CODE(A1)+1) which is ending with Z. But i need the sequence upto AMV.

Thanks

我不确定您要做什么,但是假设您想将值从A列开始的连续列中获取到Sheet2上,请在Sheet 2 Column A中尝试以下公式并在50列中复制:

=OFFSET(Sheet1!$L1,0,17*COLUMN())

This may be of no help. If you want to generate a series of column ids starting with AC , pick any cell and enter:

=LEFT(MID(ADDRESS(1,29+19*(ROWS($1:1)-1)),2,9999),LEN(MID(ADDRESS(1,29+19*(ROWS($1:1)-1)),2,9999))-2)

and copy down:

在此处输入图片说明

EDIT#1:

Pick some cell and enter:

=OFFSET(Sheet1!$AC6,0,17*COLUMNS($A:A))

then copy across.

EDIT#2:

To freeze the 6 use:

=OFFSET(Sheet1!$AC$6,0,17*COLUMNS($A:A))

EDIT#3:

If you enter

=COLUMNS($A:A)

into any cell, it will show 1 . If you copy this formula across, the cells should show 1, 2, 3, ... This is also true if you copy

=ROWS($1:1)

downwards.

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