Excel CHOOSE Value Error











up vote
0
down vote

favorite












I am using MATCH and CHOOSE to populate a table. Basically, I want CHOOSE to return values to an "11 row and 5 column" table from 52 different tables. Formula is below.



=+CHOOSE(MATCH($B$3,List!$M$5:$M$14),SAMS!$C$4:$G$14,SAMS!$C$17:$G$27,SAMS!$C$30:G$40,SAMS!C$43:G$53,SAMS!$C$56:$G$66,SAMS!$C$69:$G$79,SAMS!$C$82:$G$92,SAMS!$C$95:$G$105,SAMS!$C$108:$G$118,SAMS!$C$121:$G$131).


When MATCH returns 1, CHOOSE works. But when it returns any other number, CHOOSE does not work. Can you help? Thanks Ben










share|improve this question




















  • 2




    I hope the pending edit is to turn the formula into code{}
    – spikey_richie
    Nov 16 at 16:16






  • 1




    (1) Do you realize that you are missing three $ signs?   (2) You say that you want to “return values … from 52 different tables”.   How is that supposed to happen when you have only 10 choices?   If your actual formula lists 52 choices, (2a) thank you for editing it down to 10, but (2b) you should have said that you were presenting incomplete information, and (2c) it would have been nice if you had reduced it even more — say, enough that the formula could fit on one line.  … (Cont’d)
    – Scott
    Nov 16 at 16:52






  • 1




    (Cont’d) … (3) Are you sure that MATCH is returning a valid value?  (3a) Have you used “Evaluate Formula”?  (3b) Have you tried replacing the MATCH call with a simple cell reference?  (These are basic debugging procedures.)  (3c) What debugging have you done?  (4) Please don’t post a question saying that something “does not work”.  What does it do?  … … … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete.
    – Scott
    Nov 16 at 16:52












  • You're using choose to select a range as a result. Choose selects a single value. But even if it could, how can you fit a range in a single result cell? What you're doing in the formula isn't valid. I'm curious what you get when match returns 1.
    – fixer1234
    Nov 17 at 7:58










  • @fixer1234:  I got the OP's formula to work (replacing the MATCH call with a simple cell reference) by applying it to a 5×11 rectangular range and making it an array formula.
    – Scott
    Nov 19 at 7:40















up vote
0
down vote

favorite












I am using MATCH and CHOOSE to populate a table. Basically, I want CHOOSE to return values to an "11 row and 5 column" table from 52 different tables. Formula is below.



=+CHOOSE(MATCH($B$3,List!$M$5:$M$14),SAMS!$C$4:$G$14,SAMS!$C$17:$G$27,SAMS!$C$30:G$40,SAMS!C$43:G$53,SAMS!$C$56:$G$66,SAMS!$C$69:$G$79,SAMS!$C$82:$G$92,SAMS!$C$95:$G$105,SAMS!$C$108:$G$118,SAMS!$C$121:$G$131).


When MATCH returns 1, CHOOSE works. But when it returns any other number, CHOOSE does not work. Can you help? Thanks Ben










share|improve this question




















  • 2




    I hope the pending edit is to turn the formula into code{}
    – spikey_richie
    Nov 16 at 16:16






  • 1




    (1) Do you realize that you are missing three $ signs?   (2) You say that you want to “return values … from 52 different tables”.   How is that supposed to happen when you have only 10 choices?   If your actual formula lists 52 choices, (2a) thank you for editing it down to 10, but (2b) you should have said that you were presenting incomplete information, and (2c) it would have been nice if you had reduced it even more — say, enough that the formula could fit on one line.  … (Cont’d)
    – Scott
    Nov 16 at 16:52






  • 1




    (Cont’d) … (3) Are you sure that MATCH is returning a valid value?  (3a) Have you used “Evaluate Formula”?  (3b) Have you tried replacing the MATCH call with a simple cell reference?  (These are basic debugging procedures.)  (3c) What debugging have you done?  (4) Please don’t post a question saying that something “does not work”.  What does it do?  … … … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete.
    – Scott
    Nov 16 at 16:52












  • You're using choose to select a range as a result. Choose selects a single value. But even if it could, how can you fit a range in a single result cell? What you're doing in the formula isn't valid. I'm curious what you get when match returns 1.
    – fixer1234
    Nov 17 at 7:58










  • @fixer1234:  I got the OP's formula to work (replacing the MATCH call with a simple cell reference) by applying it to a 5×11 rectangular range and making it an array formula.
    – Scott
    Nov 19 at 7:40













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using MATCH and CHOOSE to populate a table. Basically, I want CHOOSE to return values to an "11 row and 5 column" table from 52 different tables. Formula is below.



=+CHOOSE(MATCH($B$3,List!$M$5:$M$14),SAMS!$C$4:$G$14,SAMS!$C$17:$G$27,SAMS!$C$30:G$40,SAMS!C$43:G$53,SAMS!$C$56:$G$66,SAMS!$C$69:$G$79,SAMS!$C$82:$G$92,SAMS!$C$95:$G$105,SAMS!$C$108:$G$118,SAMS!$C$121:$G$131).


When MATCH returns 1, CHOOSE works. But when it returns any other number, CHOOSE does not work. Can you help? Thanks Ben










share|improve this question















I am using MATCH and CHOOSE to populate a table. Basically, I want CHOOSE to return values to an "11 row and 5 column" table from 52 different tables. Formula is below.



=+CHOOSE(MATCH($B$3,List!$M$5:$M$14),SAMS!$C$4:$G$14,SAMS!$C$17:$G$27,SAMS!$C$30:G$40,SAMS!C$43:G$53,SAMS!$C$56:$G$66,SAMS!$C$69:$G$79,SAMS!$C$82:$G$92,SAMS!$C$95:$G$105,SAMS!$C$108:$G$118,SAMS!$C$121:$G$131).


When MATCH returns 1, CHOOSE works. But when it returns any other number, CHOOSE does not work. Can you help? Thanks Ben







microsoft-excel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 at 17:48









cybernetic.nomad

1,093111




1,093111










asked Nov 16 at 16:00









Bernard Oche

11




11








  • 2




    I hope the pending edit is to turn the formula into code{}
    – spikey_richie
    Nov 16 at 16:16






  • 1




    (1) Do you realize that you are missing three $ signs?   (2) You say that you want to “return values … from 52 different tables”.   How is that supposed to happen when you have only 10 choices?   If your actual formula lists 52 choices, (2a) thank you for editing it down to 10, but (2b) you should have said that you were presenting incomplete information, and (2c) it would have been nice if you had reduced it even more — say, enough that the formula could fit on one line.  … (Cont’d)
    – Scott
    Nov 16 at 16:52






  • 1




    (Cont’d) … (3) Are you sure that MATCH is returning a valid value?  (3a) Have you used “Evaluate Formula”?  (3b) Have you tried replacing the MATCH call with a simple cell reference?  (These are basic debugging procedures.)  (3c) What debugging have you done?  (4) Please don’t post a question saying that something “does not work”.  What does it do?  … … … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete.
    – Scott
    Nov 16 at 16:52












  • You're using choose to select a range as a result. Choose selects a single value. But even if it could, how can you fit a range in a single result cell? What you're doing in the formula isn't valid. I'm curious what you get when match returns 1.
    – fixer1234
    Nov 17 at 7:58










  • @fixer1234:  I got the OP's formula to work (replacing the MATCH call with a simple cell reference) by applying it to a 5×11 rectangular range and making it an array formula.
    – Scott
    Nov 19 at 7:40














  • 2




    I hope the pending edit is to turn the formula into code{}
    – spikey_richie
    Nov 16 at 16:16






  • 1




    (1) Do you realize that you are missing three $ signs?   (2) You say that you want to “return values … from 52 different tables”.   How is that supposed to happen when you have only 10 choices?   If your actual formula lists 52 choices, (2a) thank you for editing it down to 10, but (2b) you should have said that you were presenting incomplete information, and (2c) it would have been nice if you had reduced it even more — say, enough that the formula could fit on one line.  … (Cont’d)
    – Scott
    Nov 16 at 16:52






  • 1




    (Cont’d) … (3) Are you sure that MATCH is returning a valid value?  (3a) Have you used “Evaluate Formula”?  (3b) Have you tried replacing the MATCH call with a simple cell reference?  (These are basic debugging procedures.)  (3c) What debugging have you done?  (4) Please don’t post a question saying that something “does not work”.  What does it do?  … … … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete.
    – Scott
    Nov 16 at 16:52












  • You're using choose to select a range as a result. Choose selects a single value. But even if it could, how can you fit a range in a single result cell? What you're doing in the formula isn't valid. I'm curious what you get when match returns 1.
    – fixer1234
    Nov 17 at 7:58










  • @fixer1234:  I got the OP's formula to work (replacing the MATCH call with a simple cell reference) by applying it to a 5×11 rectangular range and making it an array formula.
    – Scott
    Nov 19 at 7:40








2




2




I hope the pending edit is to turn the formula into code{}
– spikey_richie
Nov 16 at 16:16




I hope the pending edit is to turn the formula into code{}
– spikey_richie
Nov 16 at 16:16




1




1




(1) Do you realize that you are missing three $ signs?   (2) You say that you want to “return values … from 52 different tables”.   How is that supposed to happen when you have only 10 choices?   If your actual formula lists 52 choices, (2a) thank you for editing it down to 10, but (2b) you should have said that you were presenting incomplete information, and (2c) it would have been nice if you had reduced it even more — say, enough that the formula could fit on one line.  … (Cont’d)
– Scott
Nov 16 at 16:52




(1) Do you realize that you are missing three $ signs?   (2) You say that you want to “return values … from 52 different tables”.   How is that supposed to happen when you have only 10 choices?   If your actual formula lists 52 choices, (2a) thank you for editing it down to 10, but (2b) you should have said that you were presenting incomplete information, and (2c) it would have been nice if you had reduced it even more — say, enough that the formula could fit on one line.  … (Cont’d)
– Scott
Nov 16 at 16:52




1




1




(Cont’d) … (3) Are you sure that MATCH is returning a valid value?  (3a) Have you used “Evaluate Formula”?  (3b) Have you tried replacing the MATCH call with a simple cell reference?  (These are basic debugging procedures.)  (3c) What debugging have you done?  (4) Please don’t post a question saying that something “does not work”.  What does it do?  … … … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Nov 16 at 16:52






(Cont’d) … (3) Are you sure that MATCH is returning a valid value?  (3a) Have you used “Evaluate Formula”?  (3b) Have you tried replacing the MATCH call with a simple cell reference?  (These are basic debugging procedures.)  (3c) What debugging have you done?  (4) Please don’t post a question saying that something “does not work”.  What does it do?  … … … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Nov 16 at 16:52














You're using choose to select a range as a result. Choose selects a single value. But even if it could, how can you fit a range in a single result cell? What you're doing in the formula isn't valid. I'm curious what you get when match returns 1.
– fixer1234
Nov 17 at 7:58




You're using choose to select a range as a result. Choose selects a single value. But even if it could, how can you fit a range in a single result cell? What you're doing in the formula isn't valid. I'm curious what you get when match returns 1.
– fixer1234
Nov 17 at 7:58












@fixer1234:  I got the OP's formula to work (replacing the MATCH call with a simple cell reference) by applying it to a 5×11 rectangular range and making it an array formula.
– Scott
Nov 19 at 7:40




@fixer1234:  I got the OP's formula to work (replacing the MATCH call with a simple cell reference) by applying it to a 5×11 rectangular range and making it an array formula.
– Scott
Nov 19 at 7:40















active

oldest

votes











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376032%2fexcel-choose-value-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376032%2fexcel-choose-value-error%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa