+ Reply to Thread
Results 1 to 5 of 5

Adding more arguments to =CHOOSE function?

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    12

    Adding more arguments to =CHOOSE function?

    Hi,

    Please could you provide mw with a dummy example using the correct syntax ?

    i.e.

    =IF(I10<=20,CHOOSE("a","b","c","d"),CHOOSE(MOD(I10,20),"Clarinet",)) etc


    many thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding more arguments to =CHOOSE function?

    =IF(B1<=29,CHOOSE(B1,1,2,3,4,5,6,7,8,9,10,….29),CHOOSE(B1-29,"a","b",…………..))
    Last edited by martindwilson; 05-29-2012 at 07:25 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Adding more arguments to =CHOOSE function?

    Hi, many thanks for such a quick reply. I'm not sure it answers my problem though - but that's my fault for not explaining. What I need to do is to overcome the limit of 29 arguments in CHOOSE.

    I.e. I type a number between say 1 and 40 and it returns the linked word in the other cell.

    I'm sorry if im being thick, but any help much appreciated!

    Thanks,

    G

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding more arguments to =CHOOSE function?

    all of the above should work but lookup would be easier eg in g1:g40 number down 1 to 40 then put what each one represents in h1:h40
    then use=lookup(a1,g1:h40) where a1 is your number
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-29-2012
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Adding more arguments to =CHOOSE function?

    Perfect - many thanks - LOOKUP solved the problem

    Thank you

    G

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1