Complex nested array in Excel
I'm trying to do a scoresheet lookup in Excel, and want to do it without vba.
Mainly so that the spreadsheet can be used in either Mac or Windows without issue, and also to give the score sheet a "live" feel to it with the updates happening in real time.
What I have so far is:

And using the array formula
{=MAX(IF(B2:B18=F1,C2:C18))}
I can return the best score for team 1 (93)
However although Team 1 can have as many competitors as they want, only nominated competitors scores register.
And as Felix is not a nominated competitor (only the four listed in cells F2 - F5 are)
The best score for Team 1 should be Ryan's score of 64.
So my conundrum is, I want to return the max score (like my formula already does) with the condition that the competitors name is in the Team list in column F.
I've been messing around no luck and am wondering if this is even possible without vba coding.
Many Thanks
Michael
arrays excel
add a comment |
I'm trying to do a scoresheet lookup in Excel, and want to do it without vba.
Mainly so that the spreadsheet can be used in either Mac or Windows without issue, and also to give the score sheet a "live" feel to it with the updates happening in real time.
What I have so far is:

And using the array formula
{=MAX(IF(B2:B18=F1,C2:C18))}
I can return the best score for team 1 (93)
However although Team 1 can have as many competitors as they want, only nominated competitors scores register.
And as Felix is not a nominated competitor (only the four listed in cells F2 - F5 are)
The best score for Team 1 should be Ryan's score of 64.
So my conundrum is, I want to return the max score (like my formula already does) with the condition that the competitors name is in the Team list in column F.
I've been messing around no luck and am wondering if this is even possible without vba coding.
Many Thanks
Michael
arrays excel
1
Can the same name appear against different teams?
– QHarr
Nov 24 '18 at 22:08
Yes the same name would be able to appear against different teams
– Michael Liew
Nov 25 '18 at 7:48
you can use IsNumber Search or add another criteria to pnuts formula.
– QHarr
Nov 25 '18 at 8:31
add a comment |
I'm trying to do a scoresheet lookup in Excel, and want to do it without vba.
Mainly so that the spreadsheet can be used in either Mac or Windows without issue, and also to give the score sheet a "live" feel to it with the updates happening in real time.
What I have so far is:

And using the array formula
{=MAX(IF(B2:B18=F1,C2:C18))}
I can return the best score for team 1 (93)
However although Team 1 can have as many competitors as they want, only nominated competitors scores register.
And as Felix is not a nominated competitor (only the four listed in cells F2 - F5 are)
The best score for Team 1 should be Ryan's score of 64.
So my conundrum is, I want to return the max score (like my formula already does) with the condition that the competitors name is in the Team list in column F.
I've been messing around no luck and am wondering if this is even possible without vba coding.
Many Thanks
Michael
arrays excel
I'm trying to do a scoresheet lookup in Excel, and want to do it without vba.
Mainly so that the spreadsheet can be used in either Mac or Windows without issue, and also to give the score sheet a "live" feel to it with the updates happening in real time.
What I have so far is:

And using the array formula
{=MAX(IF(B2:B18=F1,C2:C18))}
I can return the best score for team 1 (93)
However although Team 1 can have as many competitors as they want, only nominated competitors scores register.
And as Felix is not a nominated competitor (only the four listed in cells F2 - F5 are)
The best score for Team 1 should be Ryan's score of 64.
So my conundrum is, I want to return the max score (like my formula already does) with the condition that the competitors name is in the Team list in column F.
I've been messing around no luck and am wondering if this is even possible without vba coding.
Many Thanks
Michael
arrays excel
arrays excel
edited Nov 24 '18 at 19:58
JohnyL
3,5981923
3,5981923
asked Nov 24 '18 at 19:18
Michael LiewMichael Liew
82
82
1
Can the same name appear against different teams?
– QHarr
Nov 24 '18 at 22:08
Yes the same name would be able to appear against different teams
– Michael Liew
Nov 25 '18 at 7:48
you can use IsNumber Search or add another criteria to pnuts formula.
– QHarr
Nov 25 '18 at 8:31
add a comment |
1
Can the same name appear against different teams?
– QHarr
Nov 24 '18 at 22:08
Yes the same name would be able to appear against different teams
– Michael Liew
Nov 25 '18 at 7:48
you can use IsNumber Search or add another criteria to pnuts formula.
– QHarr
Nov 25 '18 at 8:31
1
1
Can the same name appear against different teams?
– QHarr
Nov 24 '18 at 22:08
Can the same name appear against different teams?
– QHarr
Nov 24 '18 at 22:08
Yes the same name would be able to appear against different teams
– Michael Liew
Nov 25 '18 at 7:48
Yes the same name would be able to appear against different teams
– Michael Liew
Nov 25 '18 at 7:48
you can use IsNumber Search or add another criteria to pnuts formula.
– QHarr
Nov 25 '18 at 8:31
you can use IsNumber Search or add another criteria to pnuts formula.
– QHarr
Nov 25 '18 at 8:31
add a comment |
3 Answers
3
active
oldest
votes
You can use this array-entered function:
=MAX(($A$2:$A$18=TRANSPOSE(F2:F5))*($B$2:$B$18=F1)*$C$2:$C$18)
To enter/confirm an array formula, hold down ctrl + shift while hitting enter. If you do this correctly, Excel will place braces {...} around the formula seen in the formula bar.

Note that I chose to also check that the nominated competitor is in the requisite team, just in case you have two people with the same name on different teams. But that is not necessary.
NOTE: AGGREGATE function solution removed as it did not work properly.
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
add a comment |

=MAX(IF(Scores[Team]=E1,Scores[Score])*(Scores[Competetitor]=TRANSPOSE(Team1[Team 1])))
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
add a comment |
You could also use
=MAX(IF(ISNUMBER(SEARCH(F2:F5,A2:A18)),IF(B2:B18=F1,C2:C18)))
Enter with Ctrl+Shift+Enter
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
1
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
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%2f53461575%2fcomplex-nested-array-in-excel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use this array-entered function:
=MAX(($A$2:$A$18=TRANSPOSE(F2:F5))*($B$2:$B$18=F1)*$C$2:$C$18)
To enter/confirm an array formula, hold down ctrl + shift while hitting enter. If you do this correctly, Excel will place braces {...} around the formula seen in the formula bar.

Note that I chose to also check that the nominated competitor is in the requisite team, just in case you have two people with the same name on different teams. But that is not necessary.
NOTE: AGGREGATE function solution removed as it did not work properly.
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
add a comment |
You can use this array-entered function:
=MAX(($A$2:$A$18=TRANSPOSE(F2:F5))*($B$2:$B$18=F1)*$C$2:$C$18)
To enter/confirm an array formula, hold down ctrl + shift while hitting enter. If you do this correctly, Excel will place braces {...} around the formula seen in the formula bar.

Note that I chose to also check that the nominated competitor is in the requisite team, just in case you have two people with the same name on different teams. But that is not necessary.
NOTE: AGGREGATE function solution removed as it did not work properly.
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
add a comment |
You can use this array-entered function:
=MAX(($A$2:$A$18=TRANSPOSE(F2:F5))*($B$2:$B$18=F1)*$C$2:$C$18)
To enter/confirm an array formula, hold down ctrl + shift while hitting enter. If you do this correctly, Excel will place braces {...} around the formula seen in the formula bar.

Note that I chose to also check that the nominated competitor is in the requisite team, just in case you have two people with the same name on different teams. But that is not necessary.
NOTE: AGGREGATE function solution removed as it did not work properly.
You can use this array-entered function:
=MAX(($A$2:$A$18=TRANSPOSE(F2:F5))*($B$2:$B$18=F1)*$C$2:$C$18)
To enter/confirm an array formula, hold down ctrl + shift while hitting enter. If you do this correctly, Excel will place braces {...} around the formula seen in the formula bar.

Note that I chose to also check that the nominated competitor is in the requisite team, just in case you have two people with the same name on different teams. But that is not necessary.
NOTE: AGGREGATE function solution removed as it did not work properly.
edited Nov 25 '18 at 11:59
answered Nov 24 '18 at 20:51
Ron RosenfeldRon Rosenfeld
23.1k41636
23.1k41636
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
add a comment |
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
Thanks Ron, I'm using an older version of excel, but can get access to Excel 2016 so will definitely try this out when I get the chance. Out of curiosity what other formula could be used here for older versions?
– Michael Liew
Nov 25 '18 at 7:55
add a comment |

=MAX(IF(Scores[Team]=E1,Scores[Score])*(Scores[Competetitor]=TRANSPOSE(Team1[Team 1])))
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
add a comment |

=MAX(IF(Scores[Team]=E1,Scores[Score])*(Scores[Competetitor]=TRANSPOSE(Team1[Team 1])))
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
add a comment |

=MAX(IF(Scores[Team]=E1,Scores[Score])*(Scores[Competetitor]=TRANSPOSE(Team1[Team 1])))

=MAX(IF(Scores[Team]=E1,Scores[Score])*(Scores[Competetitor]=TRANSPOSE(Team1[Team 1])))
answered Nov 24 '18 at 19:54
Michal RosaMichal Rosa
1,3291814
1,3291814
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
add a comment |
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
Thanks, I can't get this to work Did you created a pivot chart or something?
– Michael Liew
Nov 25 '18 at 7:50
add a comment |
You could also use
=MAX(IF(ISNUMBER(SEARCH(F2:F5,A2:A18)),IF(B2:B18=F1,C2:C18)))
Enter with Ctrl+Shift+Enter
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
1
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
add a comment |
You could also use
=MAX(IF(ISNUMBER(SEARCH(F2:F5,A2:A18)),IF(B2:B18=F1,C2:C18)))
Enter with Ctrl+Shift+Enter
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
1
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
add a comment |
You could also use
=MAX(IF(ISNUMBER(SEARCH(F2:F5,A2:A18)),IF(B2:B18=F1,C2:C18)))
Enter with Ctrl+Shift+Enter
You could also use
=MAX(IF(ISNUMBER(SEARCH(F2:F5,A2:A18)),IF(B2:B18=F1,C2:C18)))
Enter with Ctrl+Shift+Enter
edited Nov 25 '18 at 8:15
answered Nov 25 '18 at 8:08
QHarrQHarr
31.4k81941
31.4k81941
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
1
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
add a comment |
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
1
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Hi @QHarr That worked great with the data i provided, however when I applied it to my full data it didn't work for some reason (added image in an answer to my own questions as i'm not sure how to do it here)
– Michael Liew
Nov 25 '18 at 9:38
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
Also, your formula should be C2:C28 at the end. The arrays need to be the same length.
– QHarr
Nov 25 '18 at 9:48
1
1
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
you're the man!... That worked perfectly! thank you!
– Michael Liew
Nov 25 '18 at 9:50
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%2f53461575%2fcomplex-nested-array-in-excel%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
1
Can the same name appear against different teams?
– QHarr
Nov 24 '18 at 22:08
Yes the same name would be able to appear against different teams
– Michael Liew
Nov 25 '18 at 7:48
you can use IsNumber Search or add another criteria to pnuts formula.
– QHarr
Nov 25 '18 at 8:31