Forum Discussion
Cornellj730
Jan 28, 2024Copper Contributor
How to autofill with non-adjacent cells
Hi all,
I'm currently attempting to create a column with referenced cells that are separated by a row. For example, In column 😧 D1 would contain "=J4" , D2 would contain "=J6" , D3 would contain "=J8" , and so on. Autofill doesn't recognize this pattern when I try to use it; is there any way to get around this/get it to recognize the pattern?
Cornellj730 Try either of following formulas-
=INDEX(J:J,SEQUENCE(10,1,4,2)) ="=J"&SEQUENCE(100,1,4,2)
- PeterBartholomew1Silver Contributor
With 365 you can use array shaping formulas as an alternative to INDEX.
= CHOOSECOLS(WRAPROWS(testData, step), step)
will return the final column of each record.
- SergiuszCopper Contributor
Hi, Cornellj730
Try this way in Column 😧
=INDIRECT($B$1&ROW()*$B$3)
where the values in column B are variablesRegards,
Sergiusz - Harun24HRBronze Contributor
Cornellj730 Try either of following formulas-
=INDEX(J:J,SEQUENCE(10,1,4,2)) ="=J"&SEQUENCE(100,1,4,2)
- Cornellj730Copper ContributorHarun24HR I ended up using this formula because the sequence formula allows me to be a little more flexible in the values I need to call. Thank you for the help!
- Harun24HRBronze ContributorGlad to know! If it helps then please mark this answer as best response to treat the question as solved.
- Cornellj730Copper Contributor
HansVogelaarThank you so much for the help! This formula works well, but I quickly figured out that I needed something that I could manipulate a little easier (like the suggestion in the comment below). I appreciate the introduction to INDEX however. 🙂