+ Reply to Thread
Results 1 to 12 of 12

Data validation list, depending on other values in a row.

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Copenhagen
    MS-Off Ver
    Microsoft Office Professionel Plus 2010, 32 Bit
    Posts
    6

    Data validation list, depending on other values in a row.

    Hi,

    I have a problem, that i can't solve, so i hope someone can help me :-)

    Example:

    Sheet: Users
    Column A has "Yes and No"
    Column B has "Names"

    ex.
    A B
    Yes Peter Johnson
    No Patrick Andersen
    Yes John Smith

    Now i would like to create a list in sheet [Employee] where one the users with Yes in column A is shown.
    In this ex.

    Peter Johnson
    John Smith

    No need to show yes or no.

    Hope someone can help me. Tried googling for hours but haven't been able to solve it.

    Kindly Rickie

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Data validation list, depending on other values in a row.

    Have you looked at using autofilter?

    if you want to do it with a formula it would be something along the lines of that shown in the attachment.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Data validation list, depending on other values in a row.

    Hi there,
    Try if You can work with this formula on Employee sheet, in cell A1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Put in A1 and drag down.
    (Note that it is array formula and needs to be confirmed with Ctrl+Shift+Enter instead of Enter)

    Book1.xlsx

    Hope it helps
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

  4. #4
    Registered User
    Join Date
    06-25-2014
    Location
    Copenhagen
    MS-Off Ver
    Microsoft Office Professionel Plus 2010, 32 Bit
    Posts
    6

    Re: Data validation list, depending on other values in a row.

    Hi guys,

    Thank you for your response, but it's not quit what I want. I've attached my workbook, so you can se it. There is no secret data what so ever.

    In the first sheet [Utgifter (gemensam)] there's a column (G) [Ansvarig] - marked green. In that column i want a droplist/list with only the [name] of the people in sheet [Deltagare] and where they have [Ansvarig] = Yes.

    Have a nice day, and again thanks for your help :-)

    Kindly Rickie
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Data validation list, depending on other values in a row.

    Hi there,
    I misunderstood Your requirement, but:
    Easy way to do this is to create a list of names with Yes - I created this list on sheet 'Data' with array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then create data validation list with names from sheet 'Data' - called Data_Validation:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and You can sse the result in cells marked green on sheet 'Utgifter (gemensam)'.
    MS2015 - Copy.xlsm
    Is this what You search for?

  6. #6
    Registered User
    Join Date
    06-25-2014
    Location
    Copenhagen
    MS-Off Ver
    Microsoft Office Professionel Plus 2010, 32 Bit
    Posts
    6

    Re: Data validation list, depending on other values in a row.

    Works like a charm. Thank you very much :-)

  7. #7
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Data validation list, depending on other values in a row.

    You are welcome!
    Glad that I could help!

  8. #8
    Registered User
    Join Date
    06-25-2014
    Location
    Copenhagen
    MS-Off Ver
    Microsoft Office Professionel Plus 2010, 32 Bit
    Posts
    6

    Re: Data validation list, depending on other values in a row.


  9. #9
    Registered User
    Join Date
    06-25-2014
    Location
    Copenhagen
    MS-Off Ver
    Microsoft Office Professionel Plus 2010, 32 Bit
    Posts
    6

    Post Re: Data validation list, depending on other values in a row.

    Can you help me again...learning by checking how you do it :-)

    I want to use sheet [Data] again and the column [Varutyp] and then list the result in sheet [Utgifter]-[Varutyp]. When I add a list it also shows all the blanks. I don't want the blanks.
    Attached the new file, would be great if you could make the changes directly in the file.

    Thanks :-) Very greatful

    Kindly Rickie
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Data validation list, depending on other values in a row.

    Hi again,
    As I can see, Your list on 'Data' sheet under header 'Varutyp' is static(w/o formulas). Anyway You have 2 options to avoid display blanks in dropdown:
    1) create named range for range D2:D13 on 'Data' sheet (cells with this data validation are green on 'Utgifter' sheet) - named range 'Varutyp2'
    2) in case You will add something to 'Data' sheet under header 'Varutyp' and want to expand named range automaticaly, You have to use OFFSET function (cells with this data validation are yellow on 'Utgifter' sheet) - named range 'Varutyp':
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    check:
    HTML Code: 
    HTML Code: 
    (forgot to mention, that in 1st case when adding more new values to range, the named range will not expand automatically)

    And if You play a little bit with dynamic named range, You wil find out, that if You have formulas in You named range, You have to do little modifications - You can s then in maned range from my previous post:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    MS2015.xlsm

    Is it understandable? As I am not good in explanations...

    Hope it helps
    .

  11. #11
    Registered User
    Join Date
    06-25-2014
    Location
    Copenhagen
    MS-Off Ver
    Microsoft Office Professionel Plus 2010, 32 Bit
    Posts
    6

    Re: Data validation list, depending on other values in a row.

    Actually you are very good at explaining :-) I could follow every step of it, so THANK YOU VERY MUCH! Nice to be able to get help here.

    Have a super saturday :-)

    Kindly Rickie

  12. #12
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Data validation list, depending on other values in a row.

    Great! You can always contact me if You have any questions.

+ 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. [SOLVED] Data Validation to accept values not on the list
    By JO505 in forum Excel General
    Replies: 2
    Last Post: 02-26-2013, 02:44 PM
  2. Data validation list depending on other cell
    By Skato in forum Excel General
    Replies: 1
    Last Post: 10-21-2010, 04:22 AM
  3. Replies: 5
    Last Post: 04-07-2010, 11:53 AM
  4. Clear cells depending on data validation list output
    By fergcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2008, 05:11 AM
  5. Data Validation List - Unique Values from a List
    By kwsmith in forum Excel General
    Replies: 0
    Last Post: 07-17-2007, 04:56 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