+ Reply to Thread
Results 1 to 4 of 4

IF Statement with Multi-Criteria Statement inside a Data Validation List

  1. #1
    Forum Contributor
    Join Date
    07-03-2019
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365
    Posts
    126

    IF Statement with Multi-Criteria Statement inside a Data Validation List

    Hi All,

    I am after a little help today.

    I am wanting a way to be able to hide a line in the Data Validation List Drop Down if a cell equals zero.

    So on my spreadsheet i have a stock inventory Control form with items in column F3:F6 on sheet 1 but want to block a line from showing up if the quantity is zero on sheet 2 in column K3:K8 until that item has more stock added to it in the table on sheet 2 in column B so the count doesn't go in the minus in column K on sheet 2.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: IF Statement with Multi-Criteria Statement inside a Data Validation List

    This proposal employs a helper column on Sheet2 (O) which may be moved and/or hidden for aesthetic purposes.
    The helper column is populated using: =IFERROR(INDEX(G$3:G$8,AGGREGATE(15,6,(ROW(G$3:G$8)-ROW(G$2))/(K$3:K$8>0),ROWS(A$1:A1))),"")
    The Refers to for the named range "StockList" is changed to read: =OFFSET('Sheet 2'!$O$3,0,0,SUMPRODUCT(--('Sheet 2'!$O$3:$O$8<>"")))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Contributor
    Join Date
    07-03-2019
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365
    Posts
    126

    Re: IF Statement with Multi-Criteria Statement inside a Data Validation List

    Thanks for your help JeteMc, It worked how i wanted it to.

    Thanks again

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: IF Statement with Multi-Criteria Statement inside a Data Validation List

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Data validation IF statement list
    By JPRICH16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2019, 11:39 PM
  2. Data Validation combine 2 dynamic list with an IF statement
    By jwan544 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2018, 04:24 PM
  3. Data validation - Validation List if statement
    By bambino86 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2017, 10:02 AM
  4. If statement with data validation list
    By scottkelley80 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2014, 11:55 AM
  5. Combining If statement and data validation (non-list)
    By zangana in forum Excel General
    Replies: 0
    Last Post: 08-07-2012, 07:54 AM
  6. IF statement for data validation list
    By Lassie in forum Excel General
    Replies: 2
    Last Post: 01-01-2011, 11:27 PM
  7. Can a data validation list be used as part of if statement
    By mkmed in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2008, 03:01 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