+ Reply to Thread
Results 1 to 3 of 3

Problem with If Statement & Multiple Variables

  1. #1
    Registered User
    Join Date
    05-28-2009
    Location
    Oakville, ON Canada
    MS-Off Ver
    Excel 2002
    Posts
    75

    Problem with If Statement & Multiple Variables

    I have in cell c40 a data validation list with source equal Royal (=Royal) has been created.

    Royal is a namebox that has a defined list of 7 options (6 actual options plus one that says "select via drop down") :

    FA4 = Select via Drop Down
    FA5 = option 1
    FA6 = option 2
    FA7 = option 3
    FA8 = option 4
    FA9 = option 5
    FA10 = option 6

    I have subsequently defined that each cell from FA5 to 10 is named
    FA5 = SSR
    FA6 = TSR
    FA7 = THRSR
    FA8 = SADA
    FA9 = ADA2
    FA10 = TENSR

    I have also defined values in cells FB5 to 10 the following
    FB4 = no value, blank,
    FB5 = $10
    FB6 = $20
    FB7 = $30
    FB8 = $40
    FB9 = $50


    The concept is that FA5 is associated with a value defined in FB5, FA6 is associated with FB6, so on

    What I want to happen is when I select a value via the drop down selection in C40 eg. "Option 1" that in cell D40 the value associated with Option 1 (found in FA5) returns the value found in FB5 ($10).

    How do I do this? I have tried a number of "if" statements but no luck.

    Regards,

    Piet
    Last edited by Foxcan; 06-09-2009 at 10:27 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problem with If Statement & Multiple Variables

    Have you tried Vlookup()

    E.g.

    =Vlookup(C40,$FA$5:$FB$9,2,FALSE)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-28-2009
    Location
    Oakville, ON Canada
    MS-Off Ver
    Excel 2002
    Posts
    75

    Re: Problem with If Statement & Multiple Variables

    Thank you. perfect.

+ 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