+ Reply to Thread
Results 1 to 8 of 8

populating cell with exact value from drop down list

  1. #1
    Registered User
    Join Date
    03-28-2014
    Location
    Austin, TX
    MS-Off Ver
    Excel 2013
    Posts
    3

    populating cell with exact value from drop down list

    I am using the form control data validation drop down list with 9 entries in the list. How can I get the entry that is selected in the drop down list to populate exactly into another cell on a separte worksheet? I have linked the drop down list to the cell, but the value is populating as a number rather than the text entry that is in the drop down. Help.

  2. #2
    Registered User
    Join Date
    03-19-2014
    Location
    India
    MS-Off Ver
    Excel & VBA - 2007 & 2010
    Posts
    60

    Re: populating cell with exact value from drop down list

    Hi,

    Please find the example sheet.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: populating cell with exact value from drop down list

    Suppose that the drop down list is in B2

    in the desired cell use =TEXT(b2,"#######")

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: populating cell with exact value from drop down list

    Disregard post #3, what the cell is giving you is the index number of the entry. One way is to indirectly reference the list using the index as shown in the workbook below
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: populating cell with exact value from drop down list

    Hi,

    Let the control populate the number (which is the item index on the lookup list) in a helper cell say B1 and then use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Registered User
    Join Date
    03-28-2014
    Location
    Austin, TX
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: populating cell with exact value from drop down list

    Richard, I used the formula, but I think it needs to be tweaked to my particular case. Can you explain what the entries in the formula above correspond to?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: populating cell with exact value from drop down list

    Sounds like you're using a combo box. Is the drop down arrow always visible? If so then it's a combo box.

    A combo box returns the index number of the selected item to the linked cell.

    If these are the selections in the combo box:

    Tom
    Lisa
    Karen
    Bill
    Sammy

    And you select Karen, the linked cell will display the number 3 because Karen is the 3rd item in the list.

    To get the actual value of Karen in a cell you would have to use a formula that looks at the source for the combo box and "finds" Karen.

    Where is the source for the combo box and where is the linked cell?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: populating cell with exact value from drop down list

    The Index() function returns the value that is at the row and column co-ordinate of the index range.

    The first of the three parameters of the INDEX function is Sheet1!A2:A5 where you keep your list of values for the drop down box, the row co-ordinate in this range is cell B1 value, and the column in the A2:A5 range is column 1, i.e. A2:A5. (Note in other situations the index range might be say A2:Z10 and hence you could pick up any of the column values by specifying a column from 1-26).

    The B1 value is the numeric value returned by your choice in the drop down box.

+ 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: 2
    Last Post: 06-05-2013, 10:45 PM
  2. [SOLVED] Automatically Update Drop Down List To Show Exact Amount Of Choices
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2012, 09:25 AM
  3. drop list populating cell
    By cw1628 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2007, 10:43 AM
  4. Populating a drop down list
    By ChromiumBlue in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-14-2006, 01:49 PM
  5. Populating worksheet via a drop down list !
    By kuansheng in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2006, 01:50 AM

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