Increment ROW, not COLUMN when dragging formula horizontally
I'd like to drag the formula
=if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
right to adjacent columns about 1,000 times. I only want statusSheet!$A1
to increase, and it needs to increase in rows instead of columns.
For instance, if the formula is in A1
, and I drag it to B1
, it should be in cell B2
. [?]
=if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
google-sheets google-sheets-formula
add a comment |
I'd like to drag the formula
=if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
right to adjacent columns about 1,000 times. I only want statusSheet!$A1
to increase, and it needs to increase in rows instead of columns.
For instance, if the formula is in A1
, and I drag it to B1
, it should be in cell B2
. [?]
=if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
google-sheets google-sheets-formula
add a comment |
I'd like to drag the formula
=if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
right to adjacent columns about 1,000 times. I only want statusSheet!$A1
to increase, and it needs to increase in rows instead of columns.
For instance, if the formula is in A1
, and I drag it to B1
, it should be in cell B2
. [?]
=if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
google-sheets google-sheets-formula
I'd like to drag the formula
=if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
right to adjacent columns about 1,000 times. I only want statusSheet!$A1
to increase, and it needs to increase in rows instead of columns.
For instance, if the formula is in A1
, and I drag it to B1
, it should be in cell B2
. [?]
=if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
google-sheets google-sheets-formula
google-sheets google-sheets-formula
edited Dec 31 '18 at 17:32
Federico Grandi
3,08821229
3,08821229
asked Dec 30 '18 at 20:05
driggersdriggers
6
6
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Maybe:
=if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
1
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
add a comment |
You could also use an array formula if you don't want to drag the formula.
=ARRAYFORMULA(IF(
(AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
* (AHTpivot!$B1="wrap-up")
,AHTpivot!$C1, "")
The * acts as an and.
Change AAA1
to the column reference you desire. Or, change to COLUMN(A1:1)
if you want to go to the end of the sheet.
Credit to pnuts for the INDIRECT idea. :)
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2fstackoverflow.com%2fquestions%2f53981025%2fincrement-row-not-column-when-dragging-formula-horizontally%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Maybe:
=if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
1
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
add a comment |
Maybe:
=if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
1
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
add a comment |
Maybe:
=if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")
Maybe:
=if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")
answered Dec 30 '18 at 20:11
pnutspnuts
48.7k76297
48.7k76297
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
1
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
add a comment |
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
1
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
perfect! thank you!
– driggers
Dec 30 '18 at 20:18
1
1
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
@driggers if this answer helps you I think you should vote it up instead of "thank you"
– Dima Kozhevin
Dec 31 '18 at 0:35
add a comment |
You could also use an array formula if you don't want to drag the formula.
=ARRAYFORMULA(IF(
(AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
* (AHTpivot!$B1="wrap-up")
,AHTpivot!$C1, "")
The * acts as an and.
Change AAA1
to the column reference you desire. Or, change to COLUMN(A1:1)
if you want to go to the end of the sheet.
Credit to pnuts for the INDIRECT idea. :)
add a comment |
You could also use an array formula if you don't want to drag the formula.
=ARRAYFORMULA(IF(
(AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
* (AHTpivot!$B1="wrap-up")
,AHTpivot!$C1, "")
The * acts as an and.
Change AAA1
to the column reference you desire. Or, change to COLUMN(A1:1)
if you want to go to the end of the sheet.
Credit to pnuts for the INDIRECT idea. :)
add a comment |
You could also use an array formula if you don't want to drag the formula.
=ARRAYFORMULA(IF(
(AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
* (AHTpivot!$B1="wrap-up")
,AHTpivot!$C1, "")
The * acts as an and.
Change AAA1
to the column reference you desire. Or, change to COLUMN(A1:1)
if you want to go to the end of the sheet.
Credit to pnuts for the INDIRECT idea. :)
You could also use an array formula if you don't want to drag the formula.
=ARRAYFORMULA(IF(
(AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
* (AHTpivot!$B1="wrap-up")
,AHTpivot!$C1, "")
The * acts as an and.
Change AAA1
to the column reference you desire. Or, change to COLUMN(A1:1)
if you want to go to the end of the sheet.
Credit to pnuts for the INDIRECT idea. :)
answered Dec 31 '18 at 14:45
s1c0j1s1c0j1
9501616
9501616
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f53981025%2fincrement-row-not-column-when-dragging-formula-horizontally%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