=QUERY(ImportRange — Can I bring Col14 and Col15 of original sheet into the new sheet at a diff cell?

Multi tool use
Current function, working perfectly so far:
=QUERY(ImportRange("doclink", "Info!A2:S"), "Select Col1,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col12 WHERE Col18='At Risk' order by Col1 asc")
In my original sheet I have Col14 and Col15 with relevant info I'd like to transpose into my new sheet's Col13.
Is this even possible to input 2 cells' info into 1 new cell?
How would I pull from those and "skip" inputting in Col10, Col11, Col12 of the new sheet? (new info needs to go there that is not pulled from original sheet)
Feel free to point me in the right direction or even let me know if this is possible. I've been googling for a bit but I think my lack of vernacular is limiting what I find.
Many thanks!
google-sheets google-sheets-query google-sheets-formula
add a comment |
Current function, working perfectly so far:
=QUERY(ImportRange("doclink", "Info!A2:S"), "Select Col1,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col12 WHERE Col18='At Risk' order by Col1 asc")
In my original sheet I have Col14 and Col15 with relevant info I'd like to transpose into my new sheet's Col13.
Is this even possible to input 2 cells' info into 1 new cell?
How would I pull from those and "skip" inputting in Col10, Col11, Col12 of the new sheet? (new info needs to go there that is not pulled from original sheet)
Feel free to point me in the right direction or even let me know if this is possible. I've been googling for a bit but I think my lack of vernacular is limiting what I find.
Many thanks!
google-sheets google-sheets-query google-sheets-formula
I think whatever you try to do you will get "array result was not expanded because it would overwrite data..." error so will need two separate importrange's.
– Tom Sharpe
Dec 30 '18 at 13:00
add a comment |
Current function, working perfectly so far:
=QUERY(ImportRange("doclink", "Info!A2:S"), "Select Col1,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col12 WHERE Col18='At Risk' order by Col1 asc")
In my original sheet I have Col14 and Col15 with relevant info I'd like to transpose into my new sheet's Col13.
Is this even possible to input 2 cells' info into 1 new cell?
How would I pull from those and "skip" inputting in Col10, Col11, Col12 of the new sheet? (new info needs to go there that is not pulled from original sheet)
Feel free to point me in the right direction or even let me know if this is possible. I've been googling for a bit but I think my lack of vernacular is limiting what I find.
Many thanks!
google-sheets google-sheets-query google-sheets-formula
Current function, working perfectly so far:
=QUERY(ImportRange("doclink", "Info!A2:S"), "Select Col1,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col12 WHERE Col18='At Risk' order by Col1 asc")
In my original sheet I have Col14 and Col15 with relevant info I'd like to transpose into my new sheet's Col13.
Is this even possible to input 2 cells' info into 1 new cell?
How would I pull from those and "skip" inputting in Col10, Col11, Col12 of the new sheet? (new info needs to go there that is not pulled from original sheet)
Feel free to point me in the right direction or even let me know if this is possible. I've been googling for a bit but I think my lack of vernacular is limiting what I find.
Many thanks!
google-sheets google-sheets-query google-sheets-formula
google-sheets google-sheets-query google-sheets-formula
edited Dec 30 '18 at 7:31


AS Mackay
1,9854819
1,9854819
asked Dec 29 '18 at 22:01


Valerie WheelerValerie Wheeler
32
32
I think whatever you try to do you will get "array result was not expanded because it would overwrite data..." error so will need two separate importrange's.
– Tom Sharpe
Dec 30 '18 at 13:00
add a comment |
I think whatever you try to do you will get "array result was not expanded because it would overwrite data..." error so will need two separate importrange's.
– Tom Sharpe
Dec 30 '18 at 13:00
I think whatever you try to do you will get "array result was not expanded because it would overwrite data..." error so will need two separate importrange's.
– Tom Sharpe
Dec 30 '18 at 13:00
I think whatever you try to do you will get "array result was not expanded because it would overwrite data..." error so will need two separate importrange's.
– Tom Sharpe
Dec 30 '18 at 13:00
add a comment |
1 Answer
1
active
oldest
votes
So far it looks as if your column 15 would need 2 separate imports joined together like this which is a bit ugly I'm afraid:
=ArrayFormula({query(importrange("...","sheet6!a:s"),"Select Col14 where Col18='At Risk'")&
query(importrange("...","sheet6!a:s"),"Select Col15 where Col18='At Risk'")})
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
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%2f53973673%2fqueryimportrange-can-i-bring-col14-and-col15-of-original-sheet-into-the-new%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
So far it looks as if your column 15 would need 2 separate imports joined together like this which is a bit ugly I'm afraid:
=ArrayFormula({query(importrange("...","sheet6!a:s"),"Select Col14 where Col18='At Risk'")&
query(importrange("...","sheet6!a:s"),"Select Col15 where Col18='At Risk'")})
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
add a comment |
So far it looks as if your column 15 would need 2 separate imports joined together like this which is a bit ugly I'm afraid:
=ArrayFormula({query(importrange("...","sheet6!a:s"),"Select Col14 where Col18='At Risk'")&
query(importrange("...","sheet6!a:s"),"Select Col15 where Col18='At Risk'")})
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
add a comment |
So far it looks as if your column 15 would need 2 separate imports joined together like this which is a bit ugly I'm afraid:
=ArrayFormula({query(importrange("...","sheet6!a:s"),"Select Col14 where Col18='At Risk'")&
query(importrange("...","sheet6!a:s"),"Select Col15 where Col18='At Risk'")})
So far it looks as if your column 15 would need 2 separate imports joined together like this which is a bit ugly I'm afraid:
=ArrayFormula({query(importrange("...","sheet6!a:s"),"Select Col14 where Col18='At Risk'")&
query(importrange("...","sheet6!a:s"),"Select Col15 where Col18='At Risk'")})
answered Dec 30 '18 at 13:38


Tom SharpeTom Sharpe
12.4k31224
12.4k31224
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
add a comment |
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
This does indeed make sense and you're right; it's ugly. Bah! Appreciate the help, I'll keep learning as I go and hopefully find some better long term solutions.
– Valerie Wheeler
Dec 31 '18 at 14:20
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%2f53973673%2fqueryimportrange-can-i-bring-col14-and-col15-of-original-sheet-into-the-new%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
xoz l Zt4hboF89nWaAOLEkRxU,PyseoWwRxOUAaJ9hrZRixSTnTO9 id WCqW5YS
I think whatever you try to do you will get "array result was not expanded because it would overwrite data..." error so will need two separate importrange's.
– Tom Sharpe
Dec 30 '18 at 13:00