Using = to copy info from a cell to another sheet, but the 2 sheets have different layouts

mickyd67

Board Regular
Joined
Jul 13, 2011
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hi All - this one has been driving me mad.

In Sheet 1 I have a list of 200 item codes. Basically running from Cell A1 to A200

In Sheet 2 I have rows of data related to each of the 200 item codes - but this data set has 9 different elements. So between each item code on the sheet there are 9 rows. Every 10th row has a new item code.

So in Cell A1 I have the formula =Sheet1!A1, In Cell A10 the formula needs to be =Sheet1!A2

However, which will come as no surprise, when I copy the formula down from the above cell it automatically comes up as: =Sheet1!A10.

Is there a way for Excel to automatically reference the next row on my source data to save me from copying the formula down and manually going into each row and changing the formula manually? I am sure there must be a way.

Thanks all
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
assuming the codes go in A10, A20, A30 etc besides the first code in A1 then you can try putting this formula into all of column A in Sheet2

Book4.xlsm
A
11
22
33
44
55
66
Sheet1


Book4.xlsm
A
11
2 
3 
4 
5 
6 
7 
8 
9 
102
11 
12 
13 
14 
15 
16 
17 
18 
19 
203
21 
22 
23 
24 
25 
26 
27 
28 
29 
304
Sheet2
Cell Formulas
RangeFormula
A1:A30A1=IF(AND((QUOTIENT(ROW(),10)=0),MOD(ROW(),10)=1),INDIRECT("Sheet1!"&"R"&QUOTIENT(ROW(),10)+1&"C1",FALSE),IF(AND(QUOTIENT(ROW(),10)>0,MOD(ROW(),10)=0),INDIRECT("Sheet1!"&"R"&QUOTIENT(ROW(),10)+1&"C1",FALSE),""))
 
Upvote 0
Hi at
assuming the codes go in A10, A20, A30 etc besides the first code in A1 then you can try putting this formula into all of column A in Sheet2

Book4.xlsm
A
11
22
33
44
55
66
Sheet1


Book4.xlsm
A
11
2 
3 
4 
5 
6 
7 
8 
9 
102
11 
12 
13 
14 
15 
16 
17 
18 
19 
203
21 
22 
23 
24 
25 
26 
27 
28 
29 
304
Sheet2
Cell Formulas
RangeFormula
A1:A30A1=IF(AND((QUOTIENT(ROW(),10)=0),MOD(ROW(),10)=1),INDIRECT("Sheet1!"&"R"&QUOTIENT(ROW(),10)+1&"C1",FALSE),IF(AND(QUOTIENT(ROW(),10)>0,MOD(ROW(),10)=0),INDIRECT("Sheet1!"&"R"&QUOTIENT(ROW(),10)+1&"C1",FALSE),""))
Hi there.

Firstly - thanks for this. I have no idea how it works (I did try and decipher it) but it works!

So... can I ask for something else please?

Let's say I want to start this in the following tab / cell & look in another tab / cell as follows:

My source data is on a tab called: 02) Lookup Tables
The data starts in Cell F7 on that tab, and runs down the page F8, F9 and so on...

The sheet I want the data to appear on is a tab called: 04) Supply & Demand
The data starts in Cell A4, the next cell down will be A12, then A20 and so on....

If you can chanve what you typed above to meet that criteria I will be one happy Scotsman! :)
 
Upvote 0
Is this what you mean?
+Fluff 1.xlsm
ABCDEF
1
2
3
4
5
6
7F7
8F8
9F9
10F10
11F11
12F12
13F13
14F14
15F15
16
Lookup Tables


+Fluff 1.xlsm
A
1
2
3
4F7
5 
6 
7 
8 
9 
10 
11 
12F8
13 
14 
15 
16 
17 
18 
19 
20F9
21 
22 
23 
24 
25 
26 
27 
28F10
29 
30 
Sheet3
Cell Formulas
RangeFormula
A4:A30A4=IF(MOD(ROWS(A$4:A4)-1,8)=0,INDEX('Lookup Tables'!$F$7:$F$15,INT((ROWS(A$4:A4)-1)/8)+1),"")
 
Upvote 0
Solution
Another thing, what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Is this what you mean?
+Fluff 1.xlsm
ABCDEF
1
2
3
4
5
6
7F7
8F8
9F9
10F10
11F11
12F12
13F13
14F14
15F15
16
Lookup Tables


+Fluff 1.xlsm
A
1
2
3
4F7
5 
6 
7 
8 
9 
10 
11 
12F8
13 
14 
15 
16 
17 
18 
19 
20F9
21 
22 
23 
24 
25 
26 
27 
28F10
29 
30 
Sheet3
Cell Formulas
RangeFormula
A4:A30A4=IF(MOD(ROWS(A$4:A4)-1,8)=0,INDEX('Lookup Tables'!$F$7:$F$15,INT((ROWS(A$4:A4)-1)/8)+1),"")
This works!!

Many many thanks. Really helpful.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Hi all - I have another question in relation to this formula, hoping someone can help:

I'm using the formula like this: =IF(MOD(ROWS(A$8:A8)-1,14)=0,INDEX('02) Safety Level Status'!$B$5:$B$5000,INT((ROWS(A$8:A8)-1)/14)+1),"")

In the tab "Safety Level Status" if someone deletes rows I want the red part of the formula to remain intact.

I've been using 'indirect' in my formulas to stop those values changing - which I got help with on this thread: =SUM formula changing when I delete rows

However I am not sure where to add the indirect formula above. Anyone any ideas?

@Joe4 - wondering if you'll know this one? I owe you a virtual Scotch Whisky at this rate! :)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Hello - Excel for MS365 (it's on my work laptop)
 
Upvote 0

Forum statistics

Threads
1,215,267
Messages
6,123,963
Members
449,137
Latest member
yeti1016

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