ibmy
Board Regular
- Joined
- Mar 4, 2020
- Messages
- 134
- Office Version
- 2016
- Platform
- Windows
Hi,
Result in G4, I was thinking formula of "Row(6)-3 +1" or "Row(6)+1 -3" but do not know how to implement in vba code.
Data of 100k row.
offset copy.xlsb | ||||
---|---|---|---|---|
F | G | |||
1 | expected result | |||
2 | ||||
3 | ||||
4 | 3 | |||
5 | ||||
6 | 3 | |||
7 | ||||
8 | 1 | 1 | ||
9 | ||||
10 | 2 | |||
11 | 2 | |||
12 | ||||
13 | ||||
14 | ||||
15 | 5 | |||
16 | ||||
17 | ||||
18 | ||||
19 | 5 | |||
20 | ||||
21 | ||||
22 | ||||
Sheet1 |
Result in G4, I was thinking formula of "Row(6)-3 +1" or "Row(6)+1 -3" but do not know how to implement in vba code.
Data of 100k row.