+ Reply to Thread
Results 1 to 4 of 4

Drop Down List and Data Validation

  1. #1
    Registered User
    Join Date
    02-10-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Drop Down List and Data Validation

    Hi,

    I have been working on this for while and hoping someone here can help me with a formula.

    On sheet1 I have a drop down list (column B) of serial numbers from Sheet2 column B. On sheet1, when I select a serial number, the Status column (Sheet2 column A) automatically changes from 'Available' to 'In Use' using this formula:

    =IF(ISNA(MATCH(B2,Sheet1!$B$2:$B$21,0)),"Available","In Use")


    Now on Sheet1, how do I make the drop down list to only list serial numbers that are 'AVAILABLE' from Sheet2?
    Attached Files Attached Files

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Drop Down List and Data Validation

    In sheet2 create a column C which shows values which are available using array formula (to be entered with CTRL+SHIFT+ENTER instead of just ENTER)-
    Please Login or Register  to view this content.
    Now in Sheet1 you can create the dropdown with column C as the range.
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop Down List and Data Validation

    To do this, we create a secondary list which you use for your data validation.
    In Office_Keys!$D$1:$D$22, In D2 (I like to start my lists with a blank value but you can start in D1 if you like)

    this ARRAYED Formula
    =IFERROR(INDEX($B$2:$B$22, SMALL(IF($A$2:$A$22="Available", ROW($A$2:$A$22)-ROW($A$2)+1), ROWS($A$1:$A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Then I created this dynamic named range called List
    =Office_Keys!$D$1:INDEX(Office_Keys!$D$1:$D$22,SUMPRODUCT(--(LEN(Office_Keys!$D$1:$D$22)>0))+1)

    I used "List" in the Data Validation in Inventory.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    02-10-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Re: Drop Down List and Data Validation

    Thank you so much!!! could have never figure this out myself.

+ 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: 3
    Last Post: 07-05-2015, 12:45 AM
  2. Replies: 0
    Last Post: 04-24-2015, 02:27 PM
  3. Replies: 5
    Last Post: 03-26-2015, 01:40 PM
  4. Drop Down List (Data Validation) Need to start at current value in list
    By bigmantitus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2014, 11:14 AM
  5. Data validation List: A macro to initiate drop down list?
    By dchubbock in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-11-2013, 08:12 PM
  6. Replies: 1
    Last Post: 09-05-2012, 11:39 AM
  7. Replies: 1
    Last Post: 07-08-2005, 11:05 AM

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