+ Reply to Thread
Results 1 to 7 of 7

Data validation

  1. #1
    Forum Contributor
    Join Date
    01-12-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016
    Posts
    152

    Data validation

    I am trying to create a formula which shows a different drop down list depending on the value of another cell, and basing this on vlookup


    Example:

    IF(A1=one, VLOOKUP(B1,tableone,4,TRUE),IF(A1=two, VLOOKUP(B1,tabletwo,4,TRUE),IF(A1=three, VLOOKUP(B1,tablethree,4,TRUE),IF(A1=four, VLOOKUP(B1,tablefour,4,TRUE)

    The problem I have is A) the source box is so small it makes it very awkward seeing what you have inputted, and B) its quite long winded!

    Does anyone have any suggestions on how I can make this easier to work with please?

    I would upload but it is a huge spreadsheet!

    Thanks in advance

    Sam

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Data validation

    Maybe the link might help

    http://www.excel-easy.com/examples/d...own-lists.html

  3. #3
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Data validation

    one thought - putting one, two, three and four in a range (i used c6:f6) and the table names in another range (i used c7:f7) this seems to be working:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  4. #4
    Forum Contributor
    Join Date
    01-12-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016
    Posts
    152

    Re: Data validation

    Thanks for the replies.

    The guide you posted a link to seems to work great, one problem though!

    The information in the tables (named range) is subject to change. If I change it, when I revert back to the drop down box, the information in it this hasn't, i:e it still displays the information as before?

    Any ideas why this is?

    Thanks in advance

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Data validation

    Since the list is link to the name range, any change you make will reflect on the dropdown list.

  6. #6
    Forum Contributor
    Join Date
    01-12-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016
    Posts
    152

    Re: Data validation

    Yes, you are right.

    The issue is that the name range information cells are taken from another sheet by using ='anothersheet'$A$1, it is this section which isn't working correctly. I need to manual re-enter the formula to 'refresh'

    Any ideas how I can perform the same action, but which will automatically update?


    Thanks again

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Data validation

    Can you post your file?

+ 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: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  2. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  3. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  4. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  5. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 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