+ Reply to Thread
Results 1 to 2 of 2

Drop down list for cities with status A and B

  1. #1
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Cool Drop down list for cities with status A and B

    Hi All,
    Here I would like to make a drop down list of the cities with status A and B. Please help!
    Thanks.
    Attached Files Attached Files

  2. #2
    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,025

    Re: Drop down list for cities with status A and B

    1. Array Formula to assemble valid values (can be hidden):
    =IFERROR(INDEX(B:B,SMALL(IF($C$2:$C$13={"A","B"},ROW($C$2:$C$13)),ROWS($1:1))),"")

    2. named range (CTRL-F3 to view edit called list)
    =$J$1:INDEX($J$1:$J$14,SUMPRODUCT(--(LEN(Sheet1!$J$1:$J$14)>0)))

    3. data validation (list)
    =List

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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] Populate Name and Date for one status only from a list of different status
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-30-2015, 07:31 AM
  2. match up list of cities with zip codes in one excel sheet
    By john.miller in forum Excel General
    Replies: 19
    Last Post: 06-24-2015, 04:38 PM
  3. How to flag list of cities based on continent?
    By bristly in forum Excel General
    Replies: 6
    Last Post: 05-28-2013, 07:54 AM
  4. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  5. How to automatically change Leave status to shortform in a drop down list?
    By fuzzy1203 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2012, 01:12 AM
  6. dropdown list:comprise cities
    By FMI in forum Excel General
    Replies: 2
    Last Post: 07-13-2007, 12:25 PM
  7. Replies: 1
    Last Post: 04-13-2005, 03:06 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