+ Reply to Thread
Results 1 to 6 of 6

Data Validation List based on formula result

  1. #1
    Forum Contributor
    Join Date
    07-19-2010
    Location
    Huddersfield, UK
    MS-Off Ver
    Excel 2007, 2010
    Posts
    167

    Data Validation List based on formula result

    I know how to create a dynamic named range, and how to use data validation to create drop-down lists dependant on another drop-down list choice.

    What I'm currently having issues with, is creating a drop-down list based on the result of a formula.

    So in the internet examples of Fruit / Veg - my formula in the first cell creates the Fruit or Veg result, and based on that the second cell pulls out the drop down for either Fruit, or for Veg.

    The drop down lists work if I type them in as =Veg / =Fruit, but if I try to use the first cell as an Indirect reference (ie. =indirect(A1), it just tells me the list evaluates to an error.

    Is there a way to do this?

    Thanks as always

  2. #2
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: Data Validation List based on formula result

    I'm sorry, I'm having trouble following, can you upload a sample sheet for me to see?
    If I have helped you, please add to my reputation!

  3. #3
    Forum Contributor
    Join Date
    07-19-2010
    Location
    Huddersfield, UK
    MS-Off Ver
    Excel 2007, 2010
    Posts
    167

    Re: Data Validation List based on formula result

    Normal dependant drop-downs work as:

    1st Box:
    Fruit
    Veg

    2nd Box:
    Either shows 'Fruit' list or 'Veg' list, depending on option chosen in First Box.



    What I want, is the 1st box will be the result of a formula (ie. =IF(A1="F","Fruit","Veg"), not as a drop-down list.

    The 2nd box is to be the dependant drop-down list as normal.

  4. #4
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: Data Validation List based on formula result

    Oh, okay, I think I follow. So, if you have your fruit list in c1:c3 and your veg list in d1:d3, you would put this in your Data Validation:

    =IF(A1="Fruit",c1:c3,IF(A1="Veg",d1:d3,""))

  5. #5
    Forum Contributor
    Join Date
    07-19-2010
    Location
    Huddersfield, UK
    MS-Off Ver
    Excel 2007, 2010
    Posts
    167

    Re: Data Validation List based on formula result

    Yes, that's the idea.

    I was hoping that the list could be based on the actual cell contents in A1 though, rather than hard-coded into the formula, as I'll have 15 options in total - not just 2 for fruit and veg!

    My 15 ranges are all named exactly as the formula results would be - so if the formula returns 'Fruit', then the named range is also called 'Fruit'.

  6. #6
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: Data Validation List based on formula result

    I see. So, if you have all your named ranges, and you have A1 set us as a list of those ranges, you could simply put this in your Data Validation:

    =INDIRECT($A$1)

    Does that do it for you?

+ 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: 02-20-2014, 06:14 PM
  2. [SOLVED] Multiple Result Lookup inside Data Validation List
    By Whizbang in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2014, 12:53 PM
  3. [SOLVED] Based on data validation list value Formula
    By raw_geek in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-11-2012, 10:12 AM
  4. [SOLVED] Index Match - Data Validation List - Result N/A
    By Veloso in forum Excel General
    Replies: 4
    Last Post: 07-21-2012, 12:49 PM
  5. Replies: 6
    Last Post: 07-17-2009, 01:35 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