+ Reply to Thread
Results 1 to 3 of 3

Drop Down Boxed where each list is based on value in previous drop down box

  1. #1
    Registered User
    Join Date
    03-13-2011
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    45

    Drop Down Boxed where each list is based on value in previous drop down box

    Dear users,

    I'm struggling to find an awnser to what i'm looking for.
    I have on one settings sheet with a query tabel from a database 5 columns of budget data which look like this (total of like 500 rows). These rows could change every month:

    Customer product Condition Sales Budget
    BAS NPC COOP 1000 10
    BAS NPC REBATE 1000 10
    BAS MON COOP 500 50
    ACT NPC REBATE 2000 20
    ACT MON COOP 5000 50

    And so on.

    In another sheet: "the model" i have these same headers for which i want to create drop down boxes.
    First the user selects incell A1 a customer (no duplicates should be allowed). Then the user should select in B1 the product that this customer has.
    Third in C1 the condition is choosen. The fourth and Fith action should be automatically and in D1 en E1 the sales and budget should be shown.

    These drop down boxes should only appear after the row has been activated, so by some kind of macro. After the data has been filled in the drop down box should be deleted and only the selected values should stay.

    Can anyone give me a hint as how to do this? I've tried to find solutions but i'm not sure any are applicable to my desires.

    Kind Regards,

    John
    Last edited by JohnGaltnl; 12-20-2011 at 12:49 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Drop Down Boxed where each list is based on value in previous drop down box

    Hi,

    It sounds like you may need the Data Filter Advanced functionality where the criteria cells are drop down values. Check this functionality first and if it's not giving you what you want, post back and attach an example workbook.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-13-2011
    Location
    Holland
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Drop Down Boxed where each list is based on value in previous drop down box

    I try to to it with a validation list and an OFFset formula.
    Below the code I use. Because the cell on which the list is depent is relative to the active cell i try to do this by naming this relative active cell as Customername. I'm quite new to this method and it doesn't work yet. Does anyone know what i did wrong?
    'add budgetname
    ActiveCell.Offset(0, 1).Range("A1").Select
    CustomerName = ActiveCell.Offset(0, -2).Range("A1")
    With Selection.Validation
    .Delete
    .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
    xlBetween, Formula1:="=OFFSET(Customerstart;MATCH(" & CustomerName & ";Customercolumn;0)-1;1;COUNTIF(Customercolumn;" & CustomerName & ");1)"
    .IgnoreBlank = True
    .InCellDropdown = True
    .InputTitle = ""
    .ErrorTitle = ""
    .InputMessage = ""
    .ErrorMessage = ""
    .ShowInput = True
    .ShowError = True
    End With

+ 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