+ Reply to Thread
Results 1 to 4 of 4

Drop Down List created from 2 columns of info

  1. #1
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Drop Down List created from 2 columns of info

    Hi All,

    I have a list of names in column B, I can easily put this into a list

    I also have a different list of names in Column C

    These two list are feeding from sharepoint and are updated regularly

    What I want to do is create a drop down list that will list all the names in Column B and Column C, while keeping the initial lists in there separate columns

    I have been trying to find a formula to lookup both columns and return all the names into another column (E) using the formula below

    =IFERROR(INDEX($B$2:$C$600,MOD(ROWS(E$2:E2)-1,ROWS($B$2:$C$600))+1,INT((ROWS(E$2:E2)-1)/ROWS($B$2:$C$600))+1),"")

    the plan been to just put column E into my drop down list, but this formula is returning alot of blanks between Column B + C in the list (there might be 100 names in column B and only 30 in column C)

    To try remove the blanks I tried another formula pulling the info into Column F,

    =IFERROR(INDEX($E$2:$E$5000,AGGREGATE(15,6,(ROW($E$2:$E$5000)-ROW($E$2)+1)/($E$2:$E$5000<>""),ROWS(F$2:F2))),"")

    But while this did remove the blanks (about 500 blanks) it left me with about 70 "0" errors.

    My poor head is melted - any help be great

    can provide a sample if needed

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Drop Down List created from 2 columns of info

    in column C2 copy paste below then hold control and shift together and hit enter to make it array formula
    =IFERROR(IF(ROW(A1)>SUM(IF($B$1:$B$500<>"",1)),INDEX($C$1:$C$500,SMALL(IF($C$1:$C$500<>"",ROW($C$1:$C$500)),ROW(A1)-SUM(IF($B$1:$B$500<>"",1)))),INDEX($B$1:$B$500,SMALL(IF($B$1:$B$500<>"",ROW($B$1:$B$500)),ROW(A1)))),"") then drag down change the references according to your original data
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Drop Down List created from 2 columns of info

    Thanks for your quick response

    I had since found a formula that seems to work

    =IFERROR(INDEX(List1, ROWS(E2:$E$2)), IFERROR(INDEX(List2, ROWS(E2:$E$2)-ROWS(List1)), ""))

    Giving the two columns named ranges list1 and List2 and returning the info to column E

    This might not workout in the long run so i will try your formula aswell an see what fits best

    Thanks again,

    Simon

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Drop Down List created from 2 columns of info

    Thanks for the feedback Simon, but I think you can make it

    =IF(ROW(A1)<ROWS(list1),INDEX(list1, ROWS(E$2:$E2)), IFERROR(INDEX(list2, ROWS(E$2:$E2)-ROWS(list1)), ""))

    but will also take into account if there are blanks
    if there are no blanks then its good to go

+ 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. Drop down menu list with Info?
    By michaelhill525 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2013, 09:52 PM
  2. Drop Down List created from many tabs
    By usrobinjo in forum Excel General
    Replies: 1
    Last Post: 12-26-2012, 04:33 AM
  3. created Drop Down List
    By mrggutz in forum Excel General
    Replies: 3
    Last Post: 08-11-2010, 05:31 PM
  4. Replies: 1
    Last Post: 01-13-2009, 04:11 PM
  5. Replies: 2
    Last Post: 05-08-2006, 08:10 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