Excel, MINIF / MAXIF formula
I am trying to do something similar to a Averageif
with max
and min
.
Current formula :
=IF(J15<0,MAX('CS+MS'!C:C),MIN('CS+MS'!C:C))
When I'm looking in CS+MS Sheet I want to do something like averageif where I can search column B for a word then return column C.
Is this possble?
excel
add a comment |
I am trying to do something similar to a Averageif
with max
and min
.
Current formula :
=IF(J15<0,MAX('CS+MS'!C:C),MIN('CS+MS'!C:C))
When I'm looking in CS+MS Sheet I want to do something like averageif where I can search column B for a word then return column C.
Is this possble?
excel
add a comment |
I am trying to do something similar to a Averageif
with max
and min
.
Current formula :
=IF(J15<0,MAX('CS+MS'!C:C),MIN('CS+MS'!C:C))
When I'm looking in CS+MS Sheet I want to do something like averageif where I can search column B for a word then return column C.
Is this possble?
excel
I am trying to do something similar to a Averageif
with max
and min
.
Current formula :
=IF(J15<0,MAX('CS+MS'!C:C),MIN('CS+MS'!C:C))
When I'm looking in CS+MS Sheet I want to do something like averageif where I can search column B for a word then return column C.
Is this possble?
excel
excel
asked Nov 20 at 20:17
excelguy
79119
79119
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you have OFFICE 365:
=IF(J15<0,MAXIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"),MINIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"))
IF You have Excel 2010 or later:
=IF(J15<0,AGGREGATE(14,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1),AGGREGATE(15,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1))
If neither use this array formula:
=IF(J15<0,MAX(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)),MIN(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)))
Being an array formula one must use Ctrl-Shift-Enter instead of Enter when exiting edit mode.
no office 365 :(
– excelguy
Nov 20 at 20:19
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
The first criteria in the aggregate tell it what it is.14
is Large and15
is Small.
– Scott Craner
Nov 20 at 20:30
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
|
show 1 more 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%2f53400878%2fexcel-minif-maxif-formula%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
If you have OFFICE 365:
=IF(J15<0,MAXIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"),MINIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"))
IF You have Excel 2010 or later:
=IF(J15<0,AGGREGATE(14,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1),AGGREGATE(15,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1))
If neither use this array formula:
=IF(J15<0,MAX(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)),MIN(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)))
Being an array formula one must use Ctrl-Shift-Enter instead of Enter when exiting edit mode.
no office 365 :(
– excelguy
Nov 20 at 20:19
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
The first criteria in the aggregate tell it what it is.14
is Large and15
is Small.
– Scott Craner
Nov 20 at 20:30
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
|
show 1 more comment
If you have OFFICE 365:
=IF(J15<0,MAXIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"),MINIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"))
IF You have Excel 2010 or later:
=IF(J15<0,AGGREGATE(14,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1),AGGREGATE(15,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1))
If neither use this array formula:
=IF(J15<0,MAX(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)),MIN(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)))
Being an array formula one must use Ctrl-Shift-Enter instead of Enter when exiting edit mode.
no office 365 :(
– excelguy
Nov 20 at 20:19
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
The first criteria in the aggregate tell it what it is.14
is Large and15
is Small.
– Scott Craner
Nov 20 at 20:30
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
|
show 1 more comment
If you have OFFICE 365:
=IF(J15<0,MAXIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"),MINIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"))
IF You have Excel 2010 or later:
=IF(J15<0,AGGREGATE(14,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1),AGGREGATE(15,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1))
If neither use this array formula:
=IF(J15<0,MAX(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)),MIN(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)))
Being an array formula one must use Ctrl-Shift-Enter instead of Enter when exiting edit mode.
If you have OFFICE 365:
=IF(J15<0,MAXIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"),MINIFS('CS+MS'!C:C,'CS+MS'!B:B,"SomeString"))
IF You have Excel 2010 or later:
=IF(J15<0,AGGREGATE(14,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1),AGGREGATE(15,7,'CS+MS'!C:C/('CS+MS'!B:B="SomeString"),1))
If neither use this array formula:
=IF(J15<0,MAX(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)),MIN(IF('CS+MS'!B:B="SomeString",'CS+MS'!C:C)))
Being an array formula one must use Ctrl-Shift-Enter instead of Enter when exiting edit mode.
edited Nov 20 at 20:20
answered Nov 20 at 20:18
Scott Craner
88.4k82449
88.4k82449
no office 365 :(
– excelguy
Nov 20 at 20:19
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
The first criteria in the aggregate tell it what it is.14
is Large and15
is Small.
– Scott Craner
Nov 20 at 20:30
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
|
show 1 more comment
no office 365 :(
– excelguy
Nov 20 at 20:19
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
The first criteria in the aggregate tell it what it is.14
is Large and15
is Small.
– Scott Craner
Nov 20 at 20:30
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
no office 365 :(
– excelguy
Nov 20 at 20:19
no office 365 :(
– excelguy
Nov 20 at 20:19
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
@excelguy time to upgrade, but see edit.
– Scott Craner
Nov 20 at 20:22
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
Thanks scott, but what if I want to do max? will this also work the same way? or do I reverse the aggregates?
– excelguy
Nov 20 at 20:28
The first criteria in the aggregate tell it what it is.
14
is Large and 15
is Small.– Scott Craner
Nov 20 at 20:30
The first criteria in the aggregate tell it what it is.
14
is Large and 15
is Small.– Scott Craner
Nov 20 at 20:30
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
So I would just switch these up in the aggregate function?
– excelguy
Nov 20 at 20:36
|
show 1 more 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.
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%2fstackoverflow.com%2fquestions%2f53400878%2fexcel-minif-maxif-formula%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