+ Reply to Thread
Results 1 to 7 of 7

dropdown menu shows the row number instead of value

  1. #1
    Registered User
    Join Date
    03-07-2010
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    16

    dropdown menu shows the row number instead of value

    hello. i have a dropdown menu with these values in it:

    5
    23
    56
    235

    when i pick 23 in the dropdown menu, excel shows 2 in the linked cell. same for others, it shows 4 when i pick 235.

    how can i make excel show the value, not the row number?

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: dropdown menu shows the row number instead of value

    Sounds like u use Combobox (Form Control). This is proper behaviour of this control. It returns an index of selected item...

    U can use this function say in D1
    =index(A1:A4,B1)
    Where B1 is your linked cell and A1:A4 is the range where numbers are stroed
    Last edited by contaminated; 05-03-2010 at 04:02 PM. Reason: add
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: dropdown menu shows the row number instead of value

    Why not just use a Data Validation drop down using the list option then you can directly reference the drop down cell value? It is simpler to and doesn't require any extra formulas or cells.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    03-07-2010
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: dropdown menu shows the row number instead of value

    Quote Originally Posted by Palmetto View Post
    Why not just use a Data Validation drop down using the list option then you can directly reference the drop down cell value? It is simpler to and doesn't require any extra formulas or cells.
    can you please tell me how to do that?

  5. #5
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: dropdown menu shows the row number instead of value

    Hi again redbullah,
    in the attached document I show you how data validation works.

    In this link you can find more on Excel data validation.

    regards,
    P.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-07-2010
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: dropdown menu shows the row number instead of value

    Quote Originally Posted by fredpox View Post
    Hi again redbullah,
    in the attached document I show you how data validation works.

    In this link you can find more on Excel data validation.

    regards,
    P.
    guys, thanks for your responses. i understand how to use data validation, but have a problem. i can't choose the list from another worksheet, actually i can't switch between worksheets while the data validation dialog box is active.

  7. #7
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: dropdown menu shows the row number instead of value

    See this Introduction to Data Validation
    In Excel 2007, with cell selection which will hold the Data Validation, click on the Data tab in the ribbon menu, then click on Data Validation and choose the List option under the "Allow" drop down.

    In the "Source" box, enter the list of values you want displayed in the list with each value separated by a comma. Click OK. Now the cell has a data validation list that uses the numbers you entered.

    Explore the link to gain more understanding. The above is very basic.

+ 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