I need to increase sheet number in formula when copying
up vote
1
down vote
favorite
I am currently trying to pull some data together from about 78/79 sheets (they are named Security officer 1, security officer 2 etc etc)
I am using this formula to pull the names onto my main sheet:
='Security Officer 1'!$E$3
How can I change the formula so when I copy down, it automatically changes the sheet name from 1 to 2 to 3 and so on an so forth? I believe it has something to do with the indirect function?
Thanks In advance
microsoft-excel
add a comment |
up vote
1
down vote
favorite
I am currently trying to pull some data together from about 78/79 sheets (they are named Security officer 1, security officer 2 etc etc)
I am using this formula to pull the names onto my main sheet:
='Security Officer 1'!$E$3
How can I change the formula so when I copy down, it automatically changes the sheet name from 1 to 2 to 3 and so on an so forth? I believe it has something to do with the indirect function?
Thanks In advance
microsoft-excel
Why don't you trick it? Separate the formula in text strings in cells, grow the number, thenconcatenate
them? For example A1:='Security Officer
B1:1
C1:'!$E$3
, afterwards useconcatenate(a1,b1,c1)
for each row.
– fragamemnon
Nov 19 at 11:28
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am currently trying to pull some data together from about 78/79 sheets (they are named Security officer 1, security officer 2 etc etc)
I am using this formula to pull the names onto my main sheet:
='Security Officer 1'!$E$3
How can I change the formula so when I copy down, it automatically changes the sheet name from 1 to 2 to 3 and so on an so forth? I believe it has something to do with the indirect function?
Thanks In advance
microsoft-excel
I am currently trying to pull some data together from about 78/79 sheets (they are named Security officer 1, security officer 2 etc etc)
I am using this formula to pull the names onto my main sheet:
='Security Officer 1'!$E$3
How can I change the formula so when I copy down, it automatically changes the sheet name from 1 to 2 to 3 and so on an so forth? I believe it has something to do with the indirect function?
Thanks In advance
microsoft-excel
microsoft-excel
edited Nov 19 at 11:29
PeterH
3,14132245
3,14132245
asked Nov 19 at 11:22
user965166
61
61
Why don't you trick it? Separate the formula in text strings in cells, grow the number, thenconcatenate
them? For example A1:='Security Officer
B1:1
C1:'!$E$3
, afterwards useconcatenate(a1,b1,c1)
for each row.
– fragamemnon
Nov 19 at 11:28
add a comment |
Why don't you trick it? Separate the formula in text strings in cells, grow the number, thenconcatenate
them? For example A1:='Security Officer
B1:1
C1:'!$E$3
, afterwards useconcatenate(a1,b1,c1)
for each row.
– fragamemnon
Nov 19 at 11:28
Why don't you trick it? Separate the formula in text strings in cells, grow the number, then
concatenate
them? For example A1: ='Security Officer
B1:1
C1: '!$E$3
, afterwards use concatenate(a1,b1,c1)
for each row.– fragamemnon
Nov 19 at 11:28
Why don't you trick it? Separate the formula in text strings in cells, grow the number, then
concatenate
them? For example A1: ='Security Officer
B1:1
C1: '!$E$3
, afterwards use concatenate(a1,b1,c1)
for each row.– fragamemnon
Nov 19 at 11:28
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
You can use INDIRECT
& ROWS
for this:
=INDIRECT("'Security Officer "&ROWS($E$4:E4)&"'!E3")
the above will give you Cell E3
from tab Security Officer 1
And when you drag it down, it will go to Security Officer 2
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
SoROWS($E$4:E4)
will count how many rows betweenE4
andE4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomesROWS($E$4:E5)
and gives you a 2, for security officer 2,
– PeterH
Nov 19 at 12:48
@PeterH, maybeROWS($E$3:E3)
would be less confusing.
– Rey Juna
Nov 19 at 20:07
@ReyJuna yeah maybe,ROWS
is only used to generate a number that will increment when dragged down
– PeterH
Nov 20 at 8:08
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
You can use INDIRECT
& ROWS
for this:
=INDIRECT("'Security Officer "&ROWS($E$4:E4)&"'!E3")
the above will give you Cell E3
from tab Security Officer 1
And when you drag it down, it will go to Security Officer 2
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
SoROWS($E$4:E4)
will count how many rows betweenE4
andE4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomesROWS($E$4:E5)
and gives you a 2, for security officer 2,
– PeterH
Nov 19 at 12:48
@PeterH, maybeROWS($E$3:E3)
would be less confusing.
– Rey Juna
Nov 19 at 20:07
@ReyJuna yeah maybe,ROWS
is only used to generate a number that will increment when dragged down
– PeterH
Nov 20 at 8:08
add a comment |
up vote
2
down vote
You can use INDIRECT
& ROWS
for this:
=INDIRECT("'Security Officer "&ROWS($E$4:E4)&"'!E3")
the above will give you Cell E3
from tab Security Officer 1
And when you drag it down, it will go to Security Officer 2
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
SoROWS($E$4:E4)
will count how many rows betweenE4
andE4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomesROWS($E$4:E5)
and gives you a 2, for security officer 2,
– PeterH
Nov 19 at 12:48
@PeterH, maybeROWS($E$3:E3)
would be less confusing.
– Rey Juna
Nov 19 at 20:07
@ReyJuna yeah maybe,ROWS
is only used to generate a number that will increment when dragged down
– PeterH
Nov 20 at 8:08
add a comment |
up vote
2
down vote
up vote
2
down vote
You can use INDIRECT
& ROWS
for this:
=INDIRECT("'Security Officer "&ROWS($E$4:E4)&"'!E3")
the above will give you Cell E3
from tab Security Officer 1
And when you drag it down, it will go to Security Officer 2
You can use INDIRECT
& ROWS
for this:
=INDIRECT("'Security Officer "&ROWS($E$4:E4)&"'!E3")
the above will give you Cell E3
from tab Security Officer 1
And when you drag it down, it will go to Security Officer 2
answered Nov 19 at 11:27
PeterH
3,14132245
3,14132245
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
SoROWS($E$4:E4)
will count how many rows betweenE4
andE4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomesROWS($E$4:E5)
and gives you a 2, for security officer 2,
– PeterH
Nov 19 at 12:48
@PeterH, maybeROWS($E$3:E3)
would be less confusing.
– Rey Juna
Nov 19 at 20:07
@ReyJuna yeah maybe,ROWS
is only used to generate a number that will increment when dragged down
– PeterH
Nov 20 at 8:08
add a comment |
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
SoROWS($E$4:E4)
will count how many rows betweenE4
andE4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomesROWS($E$4:E5)
and gives you a 2, for security officer 2,
– PeterH
Nov 19 at 12:48
@PeterH, maybeROWS($E$3:E3)
would be less confusing.
– Rey Juna
Nov 19 at 20:07
@ReyJuna yeah maybe,ROWS
is only used to generate a number that will increment when dragged down
– PeterH
Nov 20 at 8:08
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
where has the E4 come from??? Sorry. Not an advanced excel user!! thanks for your help
– user965166
Nov 19 at 11:54
So
ROWS($E$4:E4)
will count how many rows between E4
and E4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomes ROWS($E$4:E5)
and gives you a 2, for security officer 2,– PeterH
Nov 19 at 12:48
So
ROWS($E$4:E4)
will count how many rows between E4
and E4
, which is 1, the 1 goes on the end of security officer, then when dragged down it becomes ROWS($E$4:E5)
and gives you a 2, for security officer 2,– PeterH
Nov 19 at 12:48
@PeterH, maybe
ROWS($E$3:E3)
would be less confusing.– Rey Juna
Nov 19 at 20:07
@PeterH, maybe
ROWS($E$3:E3)
would be less confusing.– Rey Juna
Nov 19 at 20:07
@ReyJuna yeah maybe,
ROWS
is only used to generate a number that will increment when dragged down– PeterH
Nov 20 at 8:08
@ReyJuna yeah maybe,
ROWS
is only used to generate a number that will increment when dragged down– PeterH
Nov 20 at 8:08
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376673%2fi-need-to-increase-sheet-number-in-formula-when-copying%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why don't you trick it? Separate the formula in text strings in cells, grow the number, then
concatenate
them? For example A1:='Security Officer
B1:1
C1:'!$E$3
, afterwards useconcatenate(a1,b1,c1)
for each row.– fragamemnon
Nov 19 at 11:28