ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel copy down changing sheet number (https://www.excelbanter.com/excel-worksheet-functions/135626-excel-copy-down-changing-sheet-number.html)

tor

Excel copy down changing sheet number
 
Hi, i need to be able to copy down a formula that changes the sheet number
but not the cell reference. How can I do this?
E.g.
=Sheet2!A2
=Sheet3!A2
=Sheet4!A2

I thought about concatenating this together but don't know how to change to
a formula. Any other way of doing this?

If there is no way to copy surely there is a way to change a concatenation
into a formula -
="Sheet"&row()&"!A2"
but then what?



Elkar

Excel copy down changing sheet number
 
You've almost got it. Just enclose your formula inside the INDIRECT()
function.

=INDIRECT("Sheet"&row()&"!A2")

HTH,
Elkar


"tor" wrote:

Hi, i need to be able to copy down a formula that changes the sheet number
but not the cell reference. How can I do this?
E.g.
=Sheet2!A2
=Sheet3!A2
=Sheet4!A2

I thought about concatenating this together but don't know how to change to
a formula. Any other way of doing this?

If there is no way to copy surely there is a way to change a concatenation
into a formula -
="Sheet"&row()&"!A2"
but then what?




All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com