+ Reply to Thread
Results 1 to 6 of 6

3 Options, results depend on option selected

  1. #1
    Registered User
    Join Date
    05-08-2008
    Posts
    40

    3 Options, results depend on option selected

    As per heading

    Cell AE16 will either be 1, 2 or 3

    Cell R20, will return the result of A20*$B$5 depending of the value entered in AE16

    Sound very simple,. just cant get it to work...


    TIA

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    how does the value in AE16 affect the calculation in R20 ?

  3. #3
    Registered User
    Join Date
    05-08-2008
    Posts
    40
    Quote Originally Posted by arthurbr
    Hi,
    how does the value in AE16 affect the calculation in R20 ?
    Oooopss that part of the formula would help..!!

    IF AE16 = 1, then A20*0.27+$B$5
    IF AE16 = 2 then A20*0.25+$B$5
    IF AE16 = 3 then A20*0.22+$B$5

  4. #4
    Registered User
    Join Date
    11-16-2007
    Posts
    26
    You could use VLOOKUP in your equation. If you put the 3 options into a table, the formula would be:

    =A20*(VLOOKUP(AE16;'Sheet1'!$A$1;$A$3;2;FALSE))+$B$5

    Where Sheet1 would be where the table is stored
    A1 = 1
    A2 = 2
    A3 = 3

    (your answer options for your previous question, this could be part of your drop down table as well)

    B1 = .27
    B2 = .25
    B3 = .22

    You could include even more of the equation in the table as well if you like. I'm just showing it with only the unique portion of the equation in it.

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Quote Originally Posted by Mike_Dean
    Oooopss that part of the formula would help..!!

    IF AE16 = 1, then A20*0.27+$B$5
    IF AE16 = 2 then A20*0.25+$B$5
    IF AE16 = 3 then A20*0.22+$B$5
    Another option
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-08-2008
    Posts
    40
    Quote Originally Posted by arthurbr
    Another option
    Please Login or Register  to view this content.

    Thanks arthur and boots, will try both options.

    This is the start point for what will be a much bigger formula.

    Thanks
    Mike

+ 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