+ Reply to Thread
Results 1 to 6 of 6

Generate dependant dropdowns on columns

Hybrid View

axecel Generate dependant dropdowns... 07-28-2010, 08:05 AM
Domski Re: Generate dependant... 07-28-2010, 08:14 AM
axecel Re: Generate dependant... 07-28-2010, 08:33 AM
Domski Re: Generate dependant... 07-28-2010, 08:36 AM
axecel Re: Generate dependant... 07-28-2010, 08:48 AM
axecel Re: Generate dependant... 07-29-2010, 03:07 AM
  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    inda
    MS-Off Ver
    Excel 2003
    Posts
    27

    Generate dependant dropdowns on columns

    Hi,
    i have say two sheets in my workbook.SheetA and SheetB.

    Sheetb has the following data in range A1-D2

    chocolate chocolateA
    chocloate chololateB
    biscuit biscuitA
    biscuit biscuitB

    Now in Sheet A , i need two dropdowns.

    In one column, i need to select from either chocolate or biscuit using a dropdown.

    In the next column, depending on what was selected earlier, i need a new dropdown consisting of corrosponding values.

    So if chocolate was selected, then the 2nd dropdown should contain values, chocolateA and chocolateB.

    Is this possible to achieve? If so can somebody assist me.

    Thanks,
    Praveen

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Generate dependant dropdowns on columns

    This might help: http://www.contextures.com/xlDataVal02.html

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    07-12-2010
    Location
    inda
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Generate dependant dropdowns on columns

    hi,
    i went through the link but it is not exactly serving my purpose.
    I have my data in the above said fashion i.e from a1-d2 and do not have three columns as given in the example.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Generate dependant dropdowns on columns

    It'll be easier to change the layout of your data than come up with a different solution.

    Excel likes data going down columns more than it does across rows.

    Dom

  5. #5
    Registered User
    Join Date
    07-12-2010
    Location
    inda
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Generate dependant dropdowns on columns

    True.
    Thanks for your help.

  6. #6
    Registered User
    Join Date
    07-12-2010
    Location
    inda
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Generate dependant dropdowns on columns

    I need to re-open this issue.Say there is a third column associated with it as well.Let us take this as price

    chocolate chocolateA 10
    chocloate chololateB 20
    biscuit biscuitA 30
    biscuit biscuitB 40


    Now in this case, i cannot re structure the data as you suggested because if i were to make it into a row wise approach i would miss out on the Price column.

    So keeping the same structure as i quoted above, is it possible to create two dependant dropdowns ?

+ 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