Article ID: 152265
Article Last Modified on 8/17/2005
=OFFSET(<Starting_Cell>,(ROW()-<Current_Row>)*<Inc>,0)where <Starting_Cell> is the absolute reference to the first cell in the range of interest, <Current_Row> is the row of the cell in which the formula is being entered, and <Inc> is the number of rows to increment.
=OFFSET(<Starting_Cell>,0,(COLUMN()-<Current_Column>)*<Inc>)where <Starting_Cell> is the absolute reference to the first cell in the range of interest, <Current_Column> is the number associated with the column of the cell in which the formula is being entered, and <Inc> is the number of columns to increment.
A1: Patrick B1:
A2: 79 B2:
A3: Ricky B3:
A4: 68 B4:
A5: Matt B5:
A6: 23 B6:
A7: John B7:
A8: 15 B8:
A9: Mary B9:
A10: 40 B10:B1: =OFFSET($A$2,(ROW()-1)*2,0)
B1: 79
B2: 68
B3: 23
B4: 15
B5: 40
A1: Patrick B1: 79 C1: Ricky D1: 68 E1: Matt F1: 23
A2: B2: C2: D2: E2: F2:A2: =OFFSET($B$1,0,(COLUMN()-1)*2)
A2: 79 B2: 68 C2: 23
=IF(ISEVEN(OFFSET(<Starting_Cell>,(ROW()-<Current_Row>)*<Inc>,0),
"EVEN","ODD")
where <Starting_Cell> is the absolute reference to the first cell in the
range of interest, <Current_Row> is the row of the cell in which the
formula is being entered, and <Inc> is the number of rows to increment.
A1: Patrick B1:
A2: 79 B2:
A3: Ricky B3:
A4: 68 B4:
A5: Matt B5:
A6: 23 B6:
A7: John B7:
A8: 15 B8:
A9: Mary B9:
A10: 40 B10:B1: =IF(ISEVEN(OFFSET($A$2,(ROW()-1)*4,0)),"EVEN","ODD")
B1: ODD
B2: ODD
B3: EVEN
151337 Incrementing Relative References by More Than One Cell in VBA
Additional query words: 5.00c 7.00a 5.00a 97 8.00 98 XL98 XL97 XL7 XL5 howto database mailing labels mail nth multiple multiples XL
Keywords: kbhowto kbualink97 KB152265