Increase the Row referenced in INDIRECT when dragging a formula down











up vote
0
down vote

favorite
1












Just wondering if anyone knows how to increase the row referenced in the INDIRECT when dragging a formula down a column.



To elaborate the formula is below, i'd like the cell referenced i.e. B5, C5 & D5 to increase the row referenced by +1 each time when i use drag to copy the formula e.g. so it'd go



B5, C5 & D5
B6, C6 & D6
B7, C7 & D7


etc.



As opposed to having alter the formula on each row.



=IF(SUM(INDIRECT("'"&A2&"'!b5")+INDIRECT("'"&A2&"'!C5")+INDIRECT("'"&A2&"'!D5"))>=1,"Yes","No")


I'm sure it's just something like the ROW function that'll do it but I can't seem to crack it.



Any help would be much appreciated and thanks in advance.



Cheers,



Danny



P.S. The INDIRECT is being used to reference a different sheet as determined by what is in cell A2










share|improve this question
























  • The A2 ref. should also be locked i.e. $A$2 forgot i'd took those out for a second before pasting
    – Danny
    Feb 6 '17 at 13:30















up vote
0
down vote

favorite
1












Just wondering if anyone knows how to increase the row referenced in the INDIRECT when dragging a formula down a column.



To elaborate the formula is below, i'd like the cell referenced i.e. B5, C5 & D5 to increase the row referenced by +1 each time when i use drag to copy the formula e.g. so it'd go



B5, C5 & D5
B6, C6 & D6
B7, C7 & D7


etc.



As opposed to having alter the formula on each row.



=IF(SUM(INDIRECT("'"&A2&"'!b5")+INDIRECT("'"&A2&"'!C5")+INDIRECT("'"&A2&"'!D5"))>=1,"Yes","No")


I'm sure it's just something like the ROW function that'll do it but I can't seem to crack it.



Any help would be much appreciated and thanks in advance.



Cheers,



Danny



P.S. The INDIRECT is being used to reference a different sheet as determined by what is in cell A2










share|improve this question
























  • The A2 ref. should also be locked i.e. $A$2 forgot i'd took those out for a second before pasting
    – Danny
    Feb 6 '17 at 13:30













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





Just wondering if anyone knows how to increase the row referenced in the INDIRECT when dragging a formula down a column.



To elaborate the formula is below, i'd like the cell referenced i.e. B5, C5 & D5 to increase the row referenced by +1 each time when i use drag to copy the formula e.g. so it'd go



B5, C5 & D5
B6, C6 & D6
B7, C7 & D7


etc.



As opposed to having alter the formula on each row.



=IF(SUM(INDIRECT("'"&A2&"'!b5")+INDIRECT("'"&A2&"'!C5")+INDIRECT("'"&A2&"'!D5"))>=1,"Yes","No")


I'm sure it's just something like the ROW function that'll do it but I can't seem to crack it.



Any help would be much appreciated and thanks in advance.



Cheers,



Danny



P.S. The INDIRECT is being used to reference a different sheet as determined by what is in cell A2










share|improve this question















Just wondering if anyone knows how to increase the row referenced in the INDIRECT when dragging a formula down a column.



To elaborate the formula is below, i'd like the cell referenced i.e. B5, C5 & D5 to increase the row referenced by +1 each time when i use drag to copy the formula e.g. so it'd go



B5, C5 & D5
B6, C6 & D6
B7, C7 & D7


etc.



As opposed to having alter the formula on each row.



=IF(SUM(INDIRECT("'"&A2&"'!b5")+INDIRECT("'"&A2&"'!C5")+INDIRECT("'"&A2&"'!D5"))>=1,"Yes","No")


I'm sure it's just something like the ROW function that'll do it but I can't seem to crack it.



Any help would be much appreciated and thanks in advance.



Cheers,



Danny



P.S. The INDIRECT is being used to reference a different sheet as determined by what is in cell A2







microsoft-excel worksheet-function microsoft-excel-2010






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 9:04









PeterH

3,15632245




3,15632245










asked Feb 6 '17 at 13:19









Danny

32




32












  • The A2 ref. should also be locked i.e. $A$2 forgot i'd took those out for a second before pasting
    – Danny
    Feb 6 '17 at 13:30


















  • The A2 ref. should also be locked i.e. $A$2 forgot i'd took those out for a second before pasting
    – Danny
    Feb 6 '17 at 13:30
















The A2 ref. should also be locked i.e. $A$2 forgot i'd took those out for a second before pasting
– Danny
Feb 6 '17 at 13:30




The A2 ref. should also be locked i.e. $A$2 forgot i'd took those out for a second before pasting
– Danny
Feb 6 '17 at 13:30










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Pull the row number out of the quotes and use ROW():



=IF(SUM(INDIRECT("'"&$A$2&"'!B" & ROW(5:5))+INDIRECT("'"&$A$2&"'!C" & ROW(5:5))+INDIRECT("'"&$A$2&"'!D" & ROW(5:5)))>=1,"Yes","No")


Now it will iterate as the formula is dragged/copied down.






share|improve this answer























  • Brilliant thanks for that!
    – Danny
    Feb 6 '17 at 13:56











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%2f1175800%2fincrease-the-row-referenced-in-indirect-when-dragging-a-formula-down%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
1
down vote



accepted










Pull the row number out of the quotes and use ROW():



=IF(SUM(INDIRECT("'"&$A$2&"'!B" & ROW(5:5))+INDIRECT("'"&$A$2&"'!C" & ROW(5:5))+INDIRECT("'"&$A$2&"'!D" & ROW(5:5)))>=1,"Yes","No")


Now it will iterate as the formula is dragged/copied down.






share|improve this answer























  • Brilliant thanks for that!
    – Danny
    Feb 6 '17 at 13:56















up vote
1
down vote



accepted










Pull the row number out of the quotes and use ROW():



=IF(SUM(INDIRECT("'"&$A$2&"'!B" & ROW(5:5))+INDIRECT("'"&$A$2&"'!C" & ROW(5:5))+INDIRECT("'"&$A$2&"'!D" & ROW(5:5)))>=1,"Yes","No")


Now it will iterate as the formula is dragged/copied down.






share|improve this answer























  • Brilliant thanks for that!
    – Danny
    Feb 6 '17 at 13:56













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Pull the row number out of the quotes and use ROW():



=IF(SUM(INDIRECT("'"&$A$2&"'!B" & ROW(5:5))+INDIRECT("'"&$A$2&"'!C" & ROW(5:5))+INDIRECT("'"&$A$2&"'!D" & ROW(5:5)))>=1,"Yes","No")


Now it will iterate as the formula is dragged/copied down.






share|improve this answer














Pull the row number out of the quotes and use ROW():



=IF(SUM(INDIRECT("'"&$A$2&"'!B" & ROW(5:5))+INDIRECT("'"&$A$2&"'!C" & ROW(5:5))+INDIRECT("'"&$A$2&"'!D" & ROW(5:5)))>=1,"Yes","No")


Now it will iterate as the formula is dragged/copied down.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 6 '17 at 13:49

























answered Feb 6 '17 at 13:40









Scott Craner

10.7k1814




10.7k1814












  • Brilliant thanks for that!
    – Danny
    Feb 6 '17 at 13:56


















  • Brilliant thanks for that!
    – Danny
    Feb 6 '17 at 13:56
















Brilliant thanks for that!
– Danny
Feb 6 '17 at 13:56




Brilliant thanks for that!
– Danny
Feb 6 '17 at 13:56


















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%2f1175800%2fincrease-the-row-referenced-in-indirect-when-dragging-a-formula-down%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

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар