+ Reply to Thread
Results 1 to 7 of 7

Need drop down menu with two choices with some functionality

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    hyd
    MS-Off Ver
    Excel 2007
    Posts
    23

    Need drop down menu with two choices with some functionality

    Hi experts,

    Could you please help in the below scenario.

    I need a drop down menu with two choices as "High Interest Rate Method" and "Snowball Method." for D10 and E10 cells f
    then

    from the cell if user select "High Interest Rate Method" choice the columns values (rows 12-26) automatically sorts the table by Column D (rows 12-26) from highest interest rate to lowest interest rate of entire row .
    or
    from the cell if user select "Snowball Method." choice the columns values (rows 12-26) automatically sorts the table by Column D (rows 12-26) from lowest interest rate to highest interest rate.

    same thing for E10 cell as well.

    Thanks,excel scenario.xlsx
    Nani
    Attached Files Attached Files
    Last edited by sqlindia; 09-24-2012 at 11:11 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need drop down menu with two choices with some functionality

    1) Insert your drop down data validation list into cell G10 so that it doesn't actually touch the data table.

    2) Right click the sheet tab and select View Code, paste in this event macro:
    Please Login or Register  to view this content.
    3) Close the VBeditor and save your workbook as a .xlsm file so the macro will work when the workbook is opened next time

    4) Now make a change to your G10 cell.
    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!)

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    hyd
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Need drop down menu with two choices with some functionality

    Thanks JBeaucaire for the solution you give , It is working good.

    one more request , as I said we need to apply sort on only for some set of rows

    I mean Assume if the column D have values in row 1 to 100 , here we need to apply sort only for the rows13 to 25 when we select "High Interest Rate Method"

    same for Snowball Method as well

    I was unable to add the range condition on VB code .
    could you please help me on this.

    PFAexcel scenario (1).xlsm

    Thanks!

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Need drop down menu with two choices with some functionality

    JBeaucaire gave you Code based on a specific layout of the Data on the Sheet.

    Now if you move that Data, insert Lines or Columns, or alter it in any way, the Code has to be adjusted accordingly.

    In the attached WorkBook I have done that for you, and adapted the Code to sort only on the rows 13 to 25.

    Also see the "Please consider" note at the bottom of this post.

    @ JBeaucaire,

    If you don't mind Jerry.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need drop down menu with two choices with some functionality

    That's a good edit, Winon.

    sqlindia, if that takes care of your original question, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Need drop down menu with two choices with some functionality

    @ JBeaucaire,

    Credit from a Master. I am flattered!

    Thank you Jerry.

  7. #7
    Registered User
    Join Date
    06-29-2012
    Location
    hyd
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Need drop down menu with two choices with some functionality

    Thanks , working great

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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