+ Reply to Thread
Results 1 to 2 of 2

Creating a percentage drop down list to change the values of a number of cells

  1. #1
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    Excel 2003
    Posts
    6

    Creating a percentage drop down list to change the values of a number of cells

    I've had a good look on Google but cannot find anything similar to what I require, so I hope there's a solution.

    I have a list of foods on a spreadsheet, each food has their nutritional values to the right of them,

    so for instance, A1 = Food Name, B1 = Grams, C1 = Calories, D1 = Protein, E1 = Carbs and F1 = Fats.

    Looks similar to this:

    Blueberries 50 60 1 14 0


    I'd like their to be a percentage dropdown list in between the grams and calories which affect the values of all the other cells (excluding food name). i.e. a dropdown list from 10% to 100%. So with the above example it would look like this:

    Blueberries 25 50% 30 0.5 7 0


    What is the best form to use and could someone possibly point me in the right direction of the VBA code?

    I'm doing my best to learn the basics but this is beyond me.

    Thanks.


    Calum

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Creating a percentage drop down list to change the values of a number of cells

    Maybe something utilizing data validation dropdown menus?

    You would first need to store the base information somewhere else, such as on another tab. Then using vlookup you can reference the data and slide its values based on the dropdown percentage.

    See attached
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 01-31-2013, 09:38 PM
  2. [SOLVED] Creating cells dependent on a drop-down list
    By FraserP in forum Excel General
    Replies: 3
    Last Post: 05-11-2012, 01:47 PM
  3. Creating drop down list from values in column
    By jram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2009, 03:57 AM
  4. [SOLVED] change info in other cells when i change a number in a drop list?
    By macbr549 in forum Excel General
    Replies: 2
    Last Post: 09-10-2005, 10:05 PM
  5. Creating a drop down list to change decimal value in another cell
    By DoD_au in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM

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