+ Reply to Thread
Results 1 to 4 of 4

Using the CHOOSE function

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    La Crosse, WI
    MS-Off Ver
    Excel 2007
    Posts
    5

    Using the CHOOSE function

    Could someone give me a relatively simple example of when it would be useful to use the CHOOSE function?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Using the CHOOSE function

    There's plenty options.

    One way is to search forum and see how others use it.

    Elemental way is to go in Excel help and see basic examples.
    Never use Merged Cells in Excel

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using the CHOOSE function

    Hi,

    CHOOSE can be used for looking up values if you don't want to create a lookup table, but rather have the lookup functionality within the formula. CHOOSE needs a number for the first argument.

    =CHOOSE(B24,"apples","bananas","oranges")

    if B24 = 1, then the result will be "apples", if B24 = 2, the result will be "bananas", etc.

    CHOOSE can also be used to avoid long, nested if statements, like

    =IF(B24=1,"apples",IF(B24=2,"bananas",IF(B24=3,"oranges), [etc..] )))

    The IF statement does the same, but in XL 2003 is limited to 7 levels of nesting. With Choose, you can create a cleaner formula with more than 7 choices.

    hth

  4. #4
    Forum Contributor thompsy121's Avatar
    Join Date
    09-25-2008
    Location
    Newcastle upon Tyne - UK
    MS-Off Ver
    Office 365
    Posts
    119

    Re: Using the CHOOSE function

    Hi there,

    As teylyn has advised...

    =CHOOSE(B24,"apples","bananas","oranges")

    if B24 = 1, then the result will be "apples", if B24 = 2, the result will be "bananas", etc.
    Another option could be rather than relying on the user typing numbers to get the outcome "example typing 1 would display apples", you could create a combo box (multiple combo boxes if needed) on sheet1.

    Then on a second sheet use the choose formula to pull the selected data from the combo box so it appears in a table etc on sheet 2.

    Thanks

+ 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