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










share|improve this question
























  • 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

















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










share|improve this question
























  • 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















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










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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, 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


















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












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






share|improve this answer





















  • 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












  • @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











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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






share|improve this answer





















  • 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












  • @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















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






share|improve this answer





















  • 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












  • @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













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






share|improve this answer












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







share|improve this answer












share|improve this answer



share|improve this answer










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












  • 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










  • @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












  • 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










  • @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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa