+ Reply to Thread
Results 1 to 28 of 28

Convert 2 lists into 1

Hybrid View

  1. #1
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert 2 lists into 1

    Create these dynamic named ranges.

    Name: List1
    Refers to:
    =Login!$G$8:INDEX(Login!$G$8:$G$100,MATCH("zzzzz",Login!$G$8:$G$100))

    Name: List2
    Refers to:
    =Login!$T$8:INDEX(Login!$T$8:$T$100,MATCH("zzzzz",Login!$T$8:$T$100))

    Then, enter this formula in cell L2 on the Validações sheet:

    =IFERROR(IF(ROWS(L$2:L2)>ROWS(List1),INDEX(List2,ROWS(L$2:L2)-ROWS(List1)),INDEX(List1,ROWS(L$2:L2))),"")

    Copy down until you get blanks.

    In the formulas you may have to replace the commas with semi-colons.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  2. #2
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Convert 2 lists into 1

    The last named range I CREATE:
    =DESLOCAMENTO(Validações!$L$2;0;0;CONTAR.VAL(Validações!$L$2:$L$20);-1)
    is not working properly, since the range has formula, he doesn't assume an empty cell.

    How can i get a drop down list without blank cells on that value? (Instead of doing it manually always i insert a user of course)

    Hope to hear from you
    Last edited by brainzlp; 10-06-2015 at 12:36 PM.

  3. #3
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Convert 2 lists into 1

    Quote Originally Posted by Tony Valko View Post
    Create these dynamic named ranges.

    Name: List1
    Refers to:
    =Login!$G$8:INDEX(Login!$G$8:$G$100,MATCH("zzzzz",Login!$G$8:$G$100))

    Name: List2
    Refers to:
    =Login!$T$8:INDEX(Login!$T$8:$T$100,MATCH("zzzzz",Login!$T$8:$T$100))

    Then, enter this formula in cell L2 on the Validações sheet:

    =IFERROR(IF(ROWS(L$2:L2)>ROWS(List1),INDEX(List2,ROWS(L$2:L2)-ROWS(List1)),INDEX(List1,ROWS(L$2:L2))),"")

    Copy down until you get blanks.

    In the formulas you may have to replace the commas with semi-colons.
    All your job worked perfectly, just had to convert to portuguese Excel the formula and switch , to ;
    Although now i need to get a drop down list of that ALL users RANGE, but since there is a formula, it appears in blank several values

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert 2 lists into 1

    Does that mean you want to use the range L2:L? as the source for a drop down list?

    If so, use something like this...

    =OFFSET(L2,,,COUNTIF(L2:L100,"?*"))

  5. #5
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516
    Quote Originally Posted by Tony Valko View Post
    Does that mean you want to use the range L2:L? as the source for a drop down list?

    If so, use something like this...

    =OFFSET(L2,,,COUNTIF(L2:L100,"?*"))
    Thanks for your replt, Tomorrow i will try what you mean. What i want is really to have that range as source to one drop down list.

    I will feedback you tomorrow after checking if this works.

    Thanks in advance for your time and Patience

  6. #6
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Convert 2 lists into 1

    Quote Originally Posted by Tony Valko View Post

    =OFFSET(L2,,,COUNTIF(L2:L100,"?*"))
    Works perfectly, can't understand why is "?*" :/ although it works like this

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert 2 lists into 1

    The COUNTIF criteria "?*" means to count only those cells that contain printable ascii text characters.

    A formula blank "" is not a printable ascii character so cells that contain those are not counted.

  8. #8
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516
    Quote Originally Posted by Tony Valko View Post
    The COUNTIF criteria "?*" means to count only those cells that contain printable ascii text characters.

    A formula blank "" is not a printable ascii character so cells that contain those are not counted.
    Wow, ok got it. Thanks

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert 2 lists into 1

    You're welcome. Thanks for the feedback!

+ 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: 1
    Last Post: 07-27-2014, 10:23 AM
  2. [SOLVED] Add or remove info to two lists in Sheet1 and Sheet2 and difference between two lists
    By alipezu in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-01-2014, 12:28 AM
  3. Validation Lists - Multiple dependent lists with unique values
    By Lewigi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 06:42 AM
  4. Replies: 1
    Last Post: 06-14-2013, 04:06 PM
  5. how to ignore blank cells in creatig dropdown lists (validation lists)
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 07:45 AM
  6. How do you convert embedded drop-down lists in Excel '97?
    By RavensChild in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2005, 06:05 PM
  7. Convert Excel Tables to Pivot Table Lists
    By jbesr1230@hotmail.com in forum Excel General
    Replies: 2
    Last Post: 08-10-2005, 07:05 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