+ Reply to Thread
Results 1 to 16 of 16

Drop down lists

  1. #1
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Drop down lists

    Hi,

    I, wanting something that does the following.

    I'm not sure if it is possible.

    Range in C6:G10.

    A user will enter numbers into these cells.

    I would like there to be a drop down box somewhere where they can select a % with which to multiply it by from 10-70% in 5% increments.

    Is this possible somehow?

    Many thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop down lists

    Hi

    Let's say that in G6 exists number 5.

    In drop down list, if someone choose 5, what do you want to happens?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

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

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Drop down lists

    Hi,

    Yes say someone inputs in G6 "5".

    Then I want them to select a % from a drop down list (up to them which one) and have the input number multiply by the % they select.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop down lists

    Someone inputs in G6, "5" and the same time G7:G10 are empties? Correct?

  5. #5
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Drop down lists

    Hi, no the user will input various numbers into all cells in the range. But I want all cells in the range to multiply by the % selected in the drop down list

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop down lists

    In F1 is your Validation list with percedange numbers(5%;10%....etc)

    Then try

    =SUM(G6:G10)+SUM(G6:G10)*F1

  7. #7
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Drop down lists

    Thanks. May sound silly but how do I do that?

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop down lists

    When you don't know something, it's not silly to ask! It's too cleaver.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down lists

    If I understand correctly, you don't want the sum of the new values but just the new values? If you wish to actually change the values in the cells (C6:G10), that will require you to use a Macro or VBA. Or you could just set up a second table as I did in Fotis' workbook.
    Take a look at this workbook and let me know if you have any questions.

    Edit: If you need them to actually change within the cells, let me know and I'll show you how to create that macro.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  10. #10
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Drop down lists

    Hi,

    Yes, this is exactly what I wanted (the cells in the range to change).

    Is the code difficult?

    Thank you

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down lists

    Okay, what happens after the first change? Does it go back to the original number for calculations?
    For example, if the number in G6 was 10 and you put in 70%, then G6 would become 7. Now what happens if you change the value in F1 ot 50%, should the value in G6 become 3.5 or 5?

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down lists

    Assuming it doesn't go back to the original number, put this code in the spreadsheet module
    Please Login or Register  to view this content.
    C1 would be the cell where you are entering the percentage. Adjust as necessary.
    Right click on the spreadsheet tab and "View Code" Then simply paste the code in and close the VBA editor.

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

    Re: Drop down lists

    @ ChemistB,

    You and Fotis1991 have done a great job so far. However, I am a little bit concerned that a user will get confused if he/she enters a value say ~ 100 ~ into a Cell, and the Data entered shows as ~ 60. Another point is that if a typo is made while entering a value, will any user be able to realise that it was indeed a mistake, since another value will appear in that Cell?

    @ floricita,

    May I suggest that you reconsider your intentions and see if the modified attached WorkBook from Fotis1991 and ChemistB is not good enough?
    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] .

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down lists

    Hi Winon,
    I agree, that it would get confusing because you'd lose track of what you originally entered.
    To your point however, the values would not change upon entering in the spreadsheet I created. They would only change when the user changes the cell containing the Percentage.

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

    Re: Drop down lists

    @ ChemistB,

    Hello ChemistB,

    Thank you for your response, and that you agree that;

    because you'd lose track of what you originally entered
    It all explains my concerns clearly.

  16. #16
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Drop down lists

    Thanks, that amended one is perfect thank you

+ 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