Question about multiple sheets to one

readsalot

New Member
Joined
Jan 13, 2018
Messages
14
I have 10 sheets that i am moving data from to a master sheet


on each sheet there is multiple rows that the data is on.

ex sheets 1-10 column b rows 10-30 have data I want moved to master sheet column T rows 25-45
if I write =if(isblank('sheet1'!b10," ",'sheet1'!b10), so if there is data it moves it to master column T row 25
how can I write or copy the above formula to increase the sheet by one, but leave the column and row the same.
Thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Into row 1
Code:
=IF(ISBLANK(INDIRECT("Sheet"&ROW()&"!B10"))," ",INDIRECT("Sheet"&ROW()&"!B10"))
to get data from Sheet1
and when you copy down you will get from Sheet2, Sheet3, etc.
 
Upvote 0
You can do this by using the indirect function like this:
Code:
=IF(ISBLANK(INDIRECT("Sheet" & D2 & "!B10"))," ",INDIRECT("Sheet" & D2 & "!B10"))
Note the sheet number is in D2 so if you copy this equation down and put 1 in d2 and 2 in D3 etc you will get the different sheets.
alternatively you could use the ROW() function of the COLUMNN() to calculate the sheet number you want.
 
Last edited:
Upvote 0
If you are going to put the formula in T25, then try this:

<b>Sheet master</b><table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:144.48px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >S</td><td >T</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >24</td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >25</td><td > </td><td > </td><td >value sheet1 cell b10</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >26</td><td > </td><td > </td><td >value sheet2 cell b10</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >T25</td><td >=IF(ISBLANK(INDIRECT("Sheet"&ROW()-24&"!B10")),"",INDIRECT("Sheet"&ROW()-24&"!B10"))</td></tr><tr><td >T26</td><td >=IF(ISBLANK(INDIRECT("Sheet"&ROW()-24&"!B10")),"",INDIRECT("Sheet"&ROW()-24&"!B10"))</td></tr></table></td></tr></table>


It means that ROW() gets row 25, because you are putting the formula in cell T25, but you subtract 24, then the result is 1, to complete "Sheet" & 1 = "Sheet1"
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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