+ Reply to Thread
Results 1 to 5 of 5

IF function on data validation list?

  1. #1
    Registered User
    Join Date
    01-10-2019
    Location
    london
    MS-Off Ver
    365
    Posts
    5

    IF function on data validation list?

    Hi,

    I'm sure this is probably pretty simple, but I was wondering if there was a way to add the IF function to a data validation list?

    Exactly what I wanted it to do was if one cell is blank that the cell with the list would not show it's drop down.

    For example if C2 holds a drop down list from $D$3;$D$4 if B2 is blank I want the list to not be visible.

    Any help would be greatly appreciated.

    Many thanks

    Liam

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: IF function on data validation list?

    List Source: =IF(B2="","",D3:D4)

    Data Validation.png

  3. #3
    Registered User
    Join Date
    01-10-2019
    Location
    london
    MS-Off Ver
    365
    Posts
    5

    Re: IF function on data validation list?

    thank you for this, unfortunately it didn't work

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: IF function on data validation list?

    Please try Data validation List source =IF(B2="",B2,D3:D4).

    (Also tested in MS-office 365 and it works.)

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: IF function on data validation list?

    BOTH options seem to work. If you find there's a problem with the lastest offering... don't tell us... show us and post a sample Excel sheet SHOWING the problem.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help 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. [SOLVED] Can a function or Sub be assigned to Data Validation List?
    By cubangt in forum Excel General
    Replies: 6
    Last Post: 06-24-2021, 03:23 PM
  2. Data validation list with choose function
    By jaryszek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2018, 07:59 AM
  3. [SOLVED] If function not working in data validation list
    By namialus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 09:20 PM
  4. Help with Function options for Data Validation LIst
    By maximillianrg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-23-2013, 11:35 AM
  5. [SOLVED] Data validation - List with if function
    By vandreytrindade in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-10-2013, 12:23 PM
  6. Please help with data validation list function
    By bennyboyyorks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2012, 11:59 AM
  7. Data Validation List Function
    By jrodri14 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2010, 05:22 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