+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    Malmö, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Combination of IF function with Data Validation

    Hello, I am trying to combine a data validation list with an "IF" function.
    Example IF(A1="XXX",...) data should come from name range "AA1" in a pull down menu, IF(A1="YYY"....) data should come from name range "AA2" in the pull down menu.
    In A2 ,the user shall only be able to choose from the data relevant to the category chosen in A1.

    Is this somehow possible? (I am using Excel 2007)
    Thanks a lot for your help.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Combination of IF function with Data Validation

    Please ensure you post your question in a relevant forum - I have on this occasion moved to Excel General forum.

    It sounds to me as though you want to use what's generally referred to as Dependent Data Validation, see this excellent tutorial: http://www.contextures.com/xldataval02.html

  3. #3
    Registered User
    Join Date
    09-30-2009
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Combination of IF function with Data Validation

    it is possible to make a reference sheet where you create a few cells that change accoring to formulas within them. Lets say if Sheet A1 changes a formula on your reference page can show a number accoringily, using the standard if function in a cell.
    when a user changes sheet1 A1 your reference page will now change.
    The only thing you now have to to is link datavalidation to the cell (or range of cells) on your reference page. A datavalidation list can now contain values that change with an if function

  4. #4
    Registered User
    Join Date
    09-30-2009
    Location
    Malmö, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Combination of IF function with Data Validation

    Thanks a lot, case solved. The tutorial link made it all.
    Cheers!

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.2.0