+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Drop down menu Help

  1. #1
    Registered User
    Join Date
    06-15-2010
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    60

    Drop down menu Help

    I have attached an example.


    Under the Proposal tab in E20. Whatever "number" they select in the dropdown ( will end up being 1-90) needs to make B20 's dropdown only certain numbers. The numbers are on the "entry" sheet. in example. If E20 is one. then B20 can only be 300,500,1000. I cannot have off numbers in B20 such as 305 or 299. Then if they select "2" under E20 then it would only show the quantity available for "2"

    Thanks,
    Attached Files Attached Files
    Last edited by Hlowmaster; 11-01-2010 at 12:55 PM.

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

    Re: Drop down menu Help

    You would need to name each subrange and then indirectly reference them

    For example, you would name D5:D7 on the Entry sheet as "Choice1" (without quotes)... then D8:D10 would be "Choice2", etc...


    Then in Proposal sheet, B20, you would do Data|Validation|List with formula:

    =INDIRECT("Choice"&E20)


    See here for more:

    http://www.contextures.com/xldataval02.html
    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
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Drop down menu Help

    I added two DYNAMIC NAME RANGEs to your workbook. The first is PhotoNums and it is all the numbers in column A on sheet Entry. The second is QTY which is simply an offset of the PhotoNums, all the values over 3 columns.

    Then I put this Data Validation formula in Proposal cell B20:

    =IF($E20>0, INDEX(QTY, MATCH($E20, PhotoNums, 0)):INDEX(QTY, MATCH($E20, PhotoNums, 1)))

    This is a dynamic range formula, too, grabbing all the values in the QTY rng that match value selected in the PhotoNums range.

    I use this technique with great success in xl2003, I know there is difficulty with getting it turned on in xl2007. Since the file you sent is xl2007 (your profile says xl2003) then this will work since I already have it turned on for you, you will experience trouble editing it.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    06-15-2010
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Drop down menu Help

    Thanks a lot sir

+ 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