Cell reference, pick up 2 cells then skip 3 rows....

ljubo_gr

Active Member
Joined
Dec 6, 2014
Messages
251
Office Version
  1. 2013
Platform
  1. Windows
Hello dear MrExcel!

Indirect values from sheet1, but it needs to skip 3 rows, pattern is always 3 rows, and there will always be 2 rows to pick up;)

Thanks in advance!

RNb6SBA.jpg
[/IMG]
7lVXOfv.jpg
[/IMG]
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about if we just ignore blank cells in the column?

in Sheet2:A2 (as you haven't mentioned where the output should go)
=IFERROR(INDEX(Sheet1!$A$2:$A$1000,SMALL(IF((Sheet1!$A$2:$A$1000<>""),ROW($A$2:$A$1000)),ROW(A1))-(ROW(A$2)-1),1),"")
Array formula, use Ctrl-Shift-Enter

Copy down for as many rows as you have in Sheet1 column A
 
Last edited:
Upvote 0
Sorry, i google it, i know for INDEX(SMALL---, problem is, sorry i didn't mentioned, there is other data in between.
 
Upvote 0
Or if you really want to use INDIRECT()

in Sheet2!A2
=INDIRECT("Sheet1!A"&QUOTIENT((ROW()-2),2)*5+MOD((ROW()-2),2)+2)
 
Upvote 0
There will be 2000 rows, what is better? Indirect or some kind of Index(small solution?
 
Upvote 0
QUOTIENT i never knew, THANKS Special-K99, please help, I need to start from Sheet1!A26 pick up 18 rows A43 then jump 52 rows, then A78:A95 then jump 52....
 
Upvote 0
Looks like this will work

=INDIRECT("Sheet1!A"&QUOTIENT((ROW()-26),18)*26+MOD((ROW()-26),18)+26)

Formula seems to be

=QUOTIENT((ROW()-x),z)*y+MOD((ROW()-x),y)+x

where
x= is start output row
y is number of jumps
z= is number of rows to pick up
 
Last edited:
Upvote 0
Looks like this will work

=INDIRECT("Sheet1!A"&QUOTIENT((ROW()-26),18)*26+MOD((ROW()-26),18)+26)

Formula seems to be

=QUOTIENT((ROW()-x),z)*y+MOD((ROW()-x),y)+x

where
x= is start output row
y is number of jumps
z= is number of rows to pick up

I'm so sorry, not working! Data are in Sheet1!A26:A43-A78:A95-A130:A147..... On Sheet2!A2 is output column, no blanks, no jumps, just your formula in A2 copy down 1000 rows. After row 18(A19) it isn't "jump" from Sh1A43 to Sh1A78. :(

Diff between A43-A78 is 35 rows, I was wrong(52), sorry :B
 
Last edited:
Upvote 0
A43-A78 is 36 rows

You have the general formula now so you can do it yourself.

A26 - A78 - A130 is a jump of 52 each time
A26-A43 is 36 rows
A2 is the output row
So just replace the letters with the cell references above

=QUOTIENT((ROW()-x),z)*y+MOD((ROW()-x),y)+x

where
x= is start output row
y is number of jumps
z= is number of rows to pick up

Am starting to lose interest in this when you have the means to do it yourself but havem't done so.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top