combined 4 formulas into 1
I've tried to cobmine to formules but either get Value or Name Error, also, not sure where to search or search for in google.
Any help will be most appreciated.
===========
Column E4 is filled with one of the 4 things.
Low
Medium
High
Urgent
at the moment I have a separate formula for the above
- this will then calculate if it is in SLA
The code I have is
=IF(AND(E2="Low",P2<'IC SLA'!$F$6),"IN SLA","OUT SLA")
=IF(AND(E2="Medium",P2<'IC SLA'!$F$5),"IN SLA","OUT SLA")
=IF(AND(E2="High",P2<'IC SLA'!$F$4),"IN SLA","OUT SLA")
=IF(AND(E2="Urgent",P2<'IC SLA'!$F$3),"IN SLA","OUT SLA")
P2 = time
IC SLA'!$F$3
IC SLA(sheet)'!$F$3/4/5/6(time)
microsoft-excel worksheet-function
add a comment |
I've tried to cobmine to formules but either get Value or Name Error, also, not sure where to search or search for in google.
Any help will be most appreciated.
===========
Column E4 is filled with one of the 4 things.
Low
Medium
High
Urgent
at the moment I have a separate formula for the above
- this will then calculate if it is in SLA
The code I have is
=IF(AND(E2="Low",P2<'IC SLA'!$F$6),"IN SLA","OUT SLA")
=IF(AND(E2="Medium",P2<'IC SLA'!$F$5),"IN SLA","OUT SLA")
=IF(AND(E2="High",P2<'IC SLA'!$F$4),"IN SLA","OUT SLA")
=IF(AND(E2="Urgent",P2<'IC SLA'!$F$3),"IN SLA","OUT SLA")
P2 = time
IC SLA'!$F$3
IC SLA(sheet)'!$F$3/4/5/6(time)
microsoft-excel worksheet-function
add a comment |
I've tried to cobmine to formules but either get Value or Name Error, also, not sure where to search or search for in google.
Any help will be most appreciated.
===========
Column E4 is filled with one of the 4 things.
Low
Medium
High
Urgent
at the moment I have a separate formula for the above
- this will then calculate if it is in SLA
The code I have is
=IF(AND(E2="Low",P2<'IC SLA'!$F$6),"IN SLA","OUT SLA")
=IF(AND(E2="Medium",P2<'IC SLA'!$F$5),"IN SLA","OUT SLA")
=IF(AND(E2="High",P2<'IC SLA'!$F$4),"IN SLA","OUT SLA")
=IF(AND(E2="Urgent",P2<'IC SLA'!$F$3),"IN SLA","OUT SLA")
P2 = time
IC SLA'!$F$3
IC SLA(sheet)'!$F$3/4/5/6(time)
microsoft-excel worksheet-function
I've tried to cobmine to formules but either get Value or Name Error, also, not sure where to search or search for in google.
Any help will be most appreciated.
===========
Column E4 is filled with one of the 4 things.
Low
Medium
High
Urgent
at the moment I have a separate formula for the above
- this will then calculate if it is in SLA
The code I have is
=IF(AND(E2="Low",P2<'IC SLA'!$F$6),"IN SLA","OUT SLA")
=IF(AND(E2="Medium",P2<'IC SLA'!$F$5),"IN SLA","OUT SLA")
=IF(AND(E2="High",P2<'IC SLA'!$F$4),"IN SLA","OUT SLA")
=IF(AND(E2="Urgent",P2<'IC SLA'!$F$3),"IN SLA","OUT SLA")
P2 = time
IC SLA'!$F$3
IC SLA(sheet)'!$F$3/4/5/6(time)
microsoft-excel worksheet-function
microsoft-excel worksheet-function
asked Jan 24 at 10:39
SSPSSP
125
125
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can combine your four AND within an OR statement. The general pattern would be:
=IF(OR(AND1, AND2, AND3, AND4), "IN SLA", "OUT SLA")
Using your existing formulas this would be:
=IF(OR(AND(E2="Low",P2<'IC SLA'!$F$6), AND(E2="Medium",P2<'IC SLA'!$F$5), AND(E2="High",P2<'IC SLA'!$F$4), AND(E2="Urgent",P2<'IC SLA'!$F$3)), "IN SLA", "OUT SLA")
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
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%2f1397864%2fcombined-4-formulas-into-1%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
You can combine your four AND within an OR statement. The general pattern would be:
=IF(OR(AND1, AND2, AND3, AND4), "IN SLA", "OUT SLA")
Using your existing formulas this would be:
=IF(OR(AND(E2="Low",P2<'IC SLA'!$F$6), AND(E2="Medium",P2<'IC SLA'!$F$5), AND(E2="High",P2<'IC SLA'!$F$4), AND(E2="Urgent",P2<'IC SLA'!$F$3)), "IN SLA", "OUT SLA")
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
add a comment |
You can combine your four AND within an OR statement. The general pattern would be:
=IF(OR(AND1, AND2, AND3, AND4), "IN SLA", "OUT SLA")
Using your existing formulas this would be:
=IF(OR(AND(E2="Low",P2<'IC SLA'!$F$6), AND(E2="Medium",P2<'IC SLA'!$F$5), AND(E2="High",P2<'IC SLA'!$F$4), AND(E2="Urgent",P2<'IC SLA'!$F$3)), "IN SLA", "OUT SLA")
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
add a comment |
You can combine your four AND within an OR statement. The general pattern would be:
=IF(OR(AND1, AND2, AND3, AND4), "IN SLA", "OUT SLA")
Using your existing formulas this would be:
=IF(OR(AND(E2="Low",P2<'IC SLA'!$F$6), AND(E2="Medium",P2<'IC SLA'!$F$5), AND(E2="High",P2<'IC SLA'!$F$4), AND(E2="Urgent",P2<'IC SLA'!$F$3)), "IN SLA", "OUT SLA")
You can combine your four AND within an OR statement. The general pattern would be:
=IF(OR(AND1, AND2, AND3, AND4), "IN SLA", "OUT SLA")
Using your existing formulas this would be:
=IF(OR(AND(E2="Low",P2<'IC SLA'!$F$6), AND(E2="Medium",P2<'IC SLA'!$F$5), AND(E2="High",P2<'IC SLA'!$F$4), AND(E2="Urgent",P2<'IC SLA'!$F$3)), "IN SLA", "OUT SLA")
answered Jan 24 at 10:44
RickyTillsonRickyTillson
32718
32718
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
add a comment |
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
Thanks dude!, When comparing it with my original combines formula, I didn't include the OR :)
– SSP
Jan 24 at 11:00
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.
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%2f1397864%2fcombined-4-formulas-into-1%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