Excel - Combining two cell formulas into one cell
Is there any easier way to combine formulas into one cell other than just copy and paste the formula text?
I have a long complicated formula that I split into two distinct formulas and then combined them in a third cell. But now I want everything in one cell, one formula.
This is an over simplification but say I have: A2=A1^2; B2=B1*A1; C2=MAX(A2,B2)
But I want to switch to have: C2=MAX(A1^2,B1*A1)
Without having to go in and copy/paste each individual formula into C2.
Using a mouse or arrow keys to select just the right text to replace is obnoxious.
microsoft-excel
add a comment |
Is there any easier way to combine formulas into one cell other than just copy and paste the formula text?
I have a long complicated formula that I split into two distinct formulas and then combined them in a third cell. But now I want everything in one cell, one formula.
This is an over simplification but say I have: A2=A1^2; B2=B1*A1; C2=MAX(A2,B2)
But I want to switch to have: C2=MAX(A1^2,B1*A1)
Without having to go in and copy/paste each individual formula into C2.
Using a mouse or arrow keys to select just the right text to replace is obnoxious.
microsoft-excel
VBA code can easily solve your problem. But if the formulas in A and B are row-dependent only, you can build one formula by copy-paste, and then use drag down to fill all the range.
– Akina
Oct 2 at 17:09
If you want to use the shown Formula without reach to CellC2orCopy & Patsethen you many try like this in Immediate WindowRange("C2").Formula= "=MAX(A1^2,B1*A1)"
– Rajesh S
Oct 8 at 10:58
add a comment |
Is there any easier way to combine formulas into one cell other than just copy and paste the formula text?
I have a long complicated formula that I split into two distinct formulas and then combined them in a third cell. But now I want everything in one cell, one formula.
This is an over simplification but say I have: A2=A1^2; B2=B1*A1; C2=MAX(A2,B2)
But I want to switch to have: C2=MAX(A1^2,B1*A1)
Without having to go in and copy/paste each individual formula into C2.
Using a mouse or arrow keys to select just the right text to replace is obnoxious.
microsoft-excel
Is there any easier way to combine formulas into one cell other than just copy and paste the formula text?
I have a long complicated formula that I split into two distinct formulas and then combined them in a third cell. But now I want everything in one cell, one formula.
This is an over simplification but say I have: A2=A1^2; B2=B1*A1; C2=MAX(A2,B2)
But I want to switch to have: C2=MAX(A1^2,B1*A1)
Without having to go in and copy/paste each individual formula into C2.
Using a mouse or arrow keys to select just the right text to replace is obnoxious.
microsoft-excel
microsoft-excel
asked Oct 2 at 17:00
Jack Hupp
1
1
VBA code can easily solve your problem. But if the formulas in A and B are row-dependent only, you can build one formula by copy-paste, and then use drag down to fill all the range.
– Akina
Oct 2 at 17:09
If you want to use the shown Formula without reach to CellC2orCopy & Patsethen you many try like this in Immediate WindowRange("C2").Formula= "=MAX(A1^2,B1*A1)"
– Rajesh S
Oct 8 at 10:58
add a comment |
VBA code can easily solve your problem. But if the formulas in A and B are row-dependent only, you can build one formula by copy-paste, and then use drag down to fill all the range.
– Akina
Oct 2 at 17:09
If you want to use the shown Formula without reach to CellC2orCopy & Patsethen you many try like this in Immediate WindowRange("C2").Formula= "=MAX(A1^2,B1*A1)"
– Rajesh S
Oct 8 at 10:58
VBA code can easily solve your problem. But if the formulas in A and B are row-dependent only, you can build one formula by copy-paste, and then use drag down to fill all the range.
– Akina
Oct 2 at 17:09
VBA code can easily solve your problem. But if the formulas in A and B are row-dependent only, you can build one formula by copy-paste, and then use drag down to fill all the range.
– Akina
Oct 2 at 17:09
If you want to use the shown Formula without reach to Cell
C2 or Copy & Patse then you many try like this in Immediate Window Range("C2").Formula= "=MAX(A1^2,B1*A1)"– Rajesh S
Oct 8 at 10:58
If you want to use the shown Formula without reach to Cell
C2 or Copy & Patse then you many try like this in Immediate Window Range("C2").Formula= "=MAX(A1^2,B1*A1)"– Rajesh S
Oct 8 at 10:58
add a comment |
1 Answer
1
active
oldest
votes
I suggest to use substitute() & concatenate()
E2 ---> '=max(
F2 ---> =SUBSTITUTE(C2,"=","")
G2 ---> ,
H2 ---> =SUBSTITUTE(FORMULATEXT(B2),"=","")
I2 ---> )
J2 ---> =CONCATENATE(E2,F2,G2,H2,I2)
Then.. you can copy the contents of J2 as the formula to fill in C2.
Hope it helps. ( :
Op's issue is,,Without having to go in and copy/paste each individual formula into C2.
– Rajesh S
Oct 8 at 11:22
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
add a comment |
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',
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%2fsuperuser.com%2fquestions%2f1363329%2fexcel-combining-two-cell-formulas-into-one-cell%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
I suggest to use substitute() & concatenate()
E2 ---> '=max(
F2 ---> =SUBSTITUTE(C2,"=","")
G2 ---> ,
H2 ---> =SUBSTITUTE(FORMULATEXT(B2),"=","")
I2 ---> )
J2 ---> =CONCATENATE(E2,F2,G2,H2,I2)
Then.. you can copy the contents of J2 as the formula to fill in C2.
Hope it helps. ( :
Op's issue is,,Without having to go in and copy/paste each individual formula into C2.
– Rajesh S
Oct 8 at 11:22
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
add a comment |
I suggest to use substitute() & concatenate()
E2 ---> '=max(
F2 ---> =SUBSTITUTE(C2,"=","")
G2 ---> ,
H2 ---> =SUBSTITUTE(FORMULATEXT(B2),"=","")
I2 ---> )
J2 ---> =CONCATENATE(E2,F2,G2,H2,I2)
Then.. you can copy the contents of J2 as the formula to fill in C2.
Hope it helps. ( :
Op's issue is,,Without having to go in and copy/paste each individual formula into C2.
– Rajesh S
Oct 8 at 11:22
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
add a comment |
I suggest to use substitute() & concatenate()
E2 ---> '=max(
F2 ---> =SUBSTITUTE(C2,"=","")
G2 ---> ,
H2 ---> =SUBSTITUTE(FORMULATEXT(B2),"=","")
I2 ---> )
J2 ---> =CONCATENATE(E2,F2,G2,H2,I2)
Then.. you can copy the contents of J2 as the formula to fill in C2.
Hope it helps. ( :
I suggest to use substitute() & concatenate()
E2 ---> '=max(
F2 ---> =SUBSTITUTE(C2,"=","")
G2 ---> ,
H2 ---> =SUBSTITUTE(FORMULATEXT(B2),"=","")
I2 ---> )
J2 ---> =CONCATENATE(E2,F2,G2,H2,I2)
Then.. you can copy the contents of J2 as the formula to fill in C2.
Hope it helps. ( :
edited Dec 6 at 7:38
answered Oct 8 at 10:33
p._phidot_
56429
56429
Op's issue is,,Without having to go in and copy/paste each individual formula into C2.
– Rajesh S
Oct 8 at 11:22
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
add a comment |
Op's issue is,,Without having to go in and copy/paste each individual formula into C2.
– Rajesh S
Oct 8 at 11:22
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
Op's issue is,,
Without having to go in and copy/paste each individual formula into C2.– Rajesh S
Oct 8 at 11:22
Op's issue is,,
Without having to go in and copy/paste each individual formula into C2.– Rajesh S
Oct 8 at 11:22
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
noted.. I have no way of doing it via formulas.. so I suggested these to reduce the number of <select-copy-paste> from 3 to 1. I'm a noob in vba. | :
– p._phidot_
Oct 8 at 11:25
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%2f1363329%2fexcel-combining-two-cell-formulas-into-one-cell%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
VBA code can easily solve your problem. But if the formulas in A and B are row-dependent only, you can build one formula by copy-paste, and then use drag down to fill all the range.
– Akina
Oct 2 at 17:09
If you want to use the shown Formula without reach to Cell
C2orCopy & Patsethen you many try like this in Immediate WindowRange("C2").Formula= "=MAX(A1^2,B1*A1)"– Rajesh S
Oct 8 at 10:58