Search code examples
excelexcel-formulaoffice365ms-office

Dragging Formula should increase cell reference after a specified count in Excel


I have this data

    O
5  421
6  422
7  423

What i Want it in P Column

     P
 5  421
 6  421
 7  421
 8  421
 9  421
10  421
11  421
12  421
13  422
14  422
15  422
16  422
17  422
18  422
19  422
20  422
21  423
22  423
23  423
24  423
25  423
26  423
27  423
28  423

The same number increment is 8 times, then the next number comes and the repeat is same. I have been trying but could not solve the issue. Plz Guide


Solution

  • Use INDEX:

    =INDEX(O:O,INT((ROW($ZZ1)-1)/8)+5)
    

    enter image description here