+ Reply to Thread
Results 1 to 8 of 8

Selecting fromula

  1. #1
    Registered User
    Join Date
    07-22-2009
    Location
    Kalmthout, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Selecting fromula

    Hello,

    I'd like to do the following.


    In excel you can use choose to apply a formula to certain cells.
    ie: =choose(c1;A1*pi();2*(A1+B1)) with c1=1 you get the first formula, with c2=2 you get the second.

    What i like to do is make a sheet with a list of names and formulas.
    column 1 circle, rectangle,...
    column two cell reference*pi(),2*(cell reference1+cell reference 2)

    then make a named range geometries for the name column.

    Then on the main sheet i fill a column with drop down slection using data validation-list and the range geometries.

    next to this range ther would be some parameters.

    so finally if i select a name from the formulalist i want the corresponding formula apllied to these parameters.

    this way the formulas to be applied can be maintained easily.

    I know i can do stuff like that with vba, but i'd like to do it with excell functions only.

    Is this possible?

    thank you,
    Kris

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Selecting fromula

    Welcome to the forum.

    Post a workbook showing what you want.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-22-2009
    Location
    Kalmthout, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Selecting fromula

    Voila,
    added Example in attachment to clarify.

    Thank you
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-22-2009
    Location
    Kalmthout, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Selecting fromula

    anyone any idea?
    K.

  5. #5
    Registered User
    Join Date
    07-22-2009
    Location
    Kalmthout, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Selecting fromula

    Not possible then?

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

    Re: Selecting fromula

    why not use choose with a lookup
    =CHOOSE(LOOKUP(A1,{"circle","rectangle","triangle"},{1,2,3}),"formula 1","formula 2","formula 3")
    where a1 = circle,triangle or rectangle
    "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

  7. #7
    Registered User
    Join Date
    07-22-2009
    Location
    Kalmthout, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Selecting fromula

    Yes i know, as i stated on my original question.

    But choice is not only for circles and rectangle, but for about 20 'standard' geometry types.
    putting all those formulas into 1 statement would make it hard to manage all formula's.

    that's why i'm looking for another way.

    Any ideas?

    Thanks for your reply.

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

    Re: Selecting fromula

    put circle blah blah in one column in the corresponding row in the next column put formula
    then use a vlook up

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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