+ Reply to Thread
Results 1 to 5 of 5

Drop-down list with hidden values

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Bern, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    62

    Drop-down list with hidden values

    Hi!

    I have to have a drop-down list, which will decide of a value to use for calculations (to print in a cell?). In that particular case, the choice has to be "Employees" or "Hours" (with an equivalence 1 employee = 40 hours). I want the choosing person to see the word "Employees" or "Hours", but not the associated numbers. I don't want to use cell space to plug in "Employees" next to "1" and "Hours" next to "40".

    Is there a way to show the word "Hours" while calculations can be made with the value "40"?

    Does this make sense?

    Thanks!

  2. #2
    Registered User
    Join Date
    05-25-2012
    Location
    Chennai,TamilNadu,India
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    61

    Re: Drop-down list with hidden values

    You can define the values for the specific words in excel using "Names". If you are using 2003 version, under the insert menu you can see the option "Name". If you are using 2007 version, under the "Formulas" tab use the "Define Name".

    Once the names are declared with the values, these can be used for calculations, but in the calculations you cannot see the actual values.

    Hope this helps..

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

    Re: Drop-down list with hidden values

    Something like this:

    =IF(A1="Hours", B1*40, B1)
    _________________
    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!)

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

    Re: Drop-down list with hidden values

    Thanks for the feedback.

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  5. #5
    Registered User
    Join Date
    06-05-2012
    Location
    Bern, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    62

    Re: Drop-down list with hidden values

    Thanks for your help, JBeaucaire!

    Quote Originally Posted by JBeaucaire View Post
    I have marked this thread solved for you.
    I was kind of hoping, someone might have a "leaner" solution - it probably doesn't exist, you're right!

    Kind regards
    Stefan

+ 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