+ Reply to Thread
Results 1 to 6 of 6

How to use a condition on data validation

Hybrid View

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    11

    How to use a condition on data validation

    Hi everyone,

    I have attached a file that has my problem in a simple form.

    I would like the drop down list in D15 to show only the house price values which are equal to or lower than that of the budget.

    The budget currently shows 50 (cell A2) so i would like the drop down list to show 20 and 50 (eventually i will link it to the names to show the names rather than the budget. )

    If i change the budget to 49 only the 20 should be in the list etc.

    hope this is clear

    thanks
    Attached Files Attached Files
    Last edited by murchy; 10-29-2013 at 10:32 AM.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to use a condition on data validation

    Lower on the list or as values?
    100 is more(greater) than 50
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use a condition on data validation

    hi Robert

    sorry my typo, fixed it

    I would like the list to replaced with the relevant values not added to it

    thanks

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to use a condition on data validation

    MurchyHelp(1).xlsx
    Please see attached,
    There is a Named Range in the worksheet.

  5. #5
    Registered User
    Join Date
    10-25-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use a condition on data validation

    Hi Robert,

    Your method seems to work perfectly, thank you!

    I will attempt to copy it to my bigger project and get back to you if i get stuck

  6. #6
    Registered User
    Join Date
    10-25-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use a condition on data validation

    Hi robert, i was able to replicate your sheet on both the test document that i recreated and on my main project however I was wondering, in my main project I need to show house prices larger than that of the budget, i tried to change the sign here from<= to >= :

    =IFERROR(INDEX($D$2:$D$10,SMALL(IF($D$2:$D$10>=$A$2,IF($D$2:$D$10<>"",ROW($D$2:$D$10)-ROW($D$2)+1)),ROWS($A$2:A2))),"")

    but it doesnt work, i cant seem to find any other reference to greater than/less than

    could you please indicate what I need to change to make it work

    thank you in advance

+ 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 based on condition
    By Pavan.Sada.PS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2013, 09:56 AM
  2. Data validation with condition from another cell
    By hitarov in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2013, 10:18 AM
  3. IF THEN condition with data validation
    By Dang-er in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2013, 10:24 AM
  4. Data Validation with condition
    By Jaai001 in forum Excel General
    Replies: 6
    Last Post: 06-04-2011, 12:21 AM
  5. IF condition in Data Validation
    By e4excel in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-04-2011, 01:26 PM

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