+ Reply to Thread
Results 1 to 10 of 10

dropdown list

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    37

    dropdown list

    Hi guys!

    I'm trying to use a data validation (dropdown list) in cells that refer to multiple rows or columns. Is it possible ?

    as an example:

    A1 -> data validation list

    A10:E10 -> first row
    A11:E11 -> second row
    A12:E12 -> Third row

    Result: drop down list in A1 with A10,B10,C10,....,A12,B12,C12,D12,E12.

    Note: I tried to select the range A10:E12 but i got an error. I also tried with a name manager that refer to range A10:E12 but still need to be only one row.

    thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: dropdown list

    A DD needs a single column to work from. Try putting each DD's info in the same column
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: dropdown list

    Data Validation list in C2:C4

    Select range when create your validation list.

    Use INDIRECT function for your formula

    example could be like SUM function:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B C D E
    1 A10:E10 List
    2 105 A10:E10
    3 A11:E11
    4 A12:E12
    5
    6
    7
    8
    9
    10 25 23 45 12
    11 13 12 0 60
    12 12 1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: dropdown list

    A VBA solution. Copy to Sheet's code page.
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  5. #5
    Registered User
    Join Date
    08-17-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: dropdown list

    thanks for you VBA solution, but as i'm not very good in VBA what i'm I supposed to change if my data validation is on the sheet1 and my data (A10:E12) on sheet2.

  6. #6
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: dropdown list

    Copy the code to sheet2 code page and change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    The validation list will update anytime you change a value in the sheet 2 range.

    Here is a slightly different version. In this version , you can pick out the data range a little easier.
    Please Login or Register  to view this content.
    Last edited by Tinbendr; 02-09-2016 at 11:30 AM.

  7. #7
    Registered User
    Join Date
    08-17-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: dropdown list

    ELKY!

    Book1.xlsxIn my case, this is not a sum, it's more like a data validation with text.

    Maybe I can use =INDIRECT("name_manager").

    but i'm not able to create a name manager with only one row. there is a formula to create a row with a matrix.

  8. #8
    Registered User
    Join Date
    08-17-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: dropdown list

    Tinbendr, is it possible to post a exemple ?

    thanks a lot
    Last edited by 11help11; 02-09-2016 at 10:35 AM.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: dropdown list

    As has been mentioned, you need to put the data for each DD in its own column, you cannot use an array like you have with a regular DD

  10. #10
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: dropdown list

    Quote Originally Posted by 11help11 View Post
    Tinbendr, is it possible to post a exemple ?

    thanks a lot
    Here you go.
    Attached Files Attached Files

+ 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: 6
    Last Post: 02-02-2016, 04:26 PM
  2. Replies: 0
    Last Post: 08-22-2012, 03:52 PM
  3. Dropdown list effects multiple dropdown list
    By pvaldez in forum Excel General
    Replies: 1
    Last Post: 05-07-2010, 02:12 PM
  4. Replies: 21
    Last Post: 12-02-2009, 03:27 PM
  5. Date dropdown list and a Time dropdown list in outlook
    By L_ter in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2009, 02:33 AM
  6. [SOLVED] result of selecting from the dropdown list should be a dropdown list
    By No News in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-05-2006, 11:15 AM
  7. [SOLVED] result of selecting from the dropdown list should be a dropdown list
    By No News in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2006, 05:55 AM

Tags for this Thread

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