+ Reply to Thread
Results 1 to 4 of 4

two name lists side by side

Hybrid View

eddyv two name lists side by side 07-03-2016, 09:11 AM
jason.b75 Re: two name lists side by... 07-03-2016, 11:58 AM
eddyv Re: two name lists side by... 07-04-2016, 10:45 AM
jason.b75 Re: two name lists side by... 07-04-2016, 08:23 PM
  1. #1
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    two name lists side by side

    hi experts,
    before: two name lists side by side.
    after: same lists with equal names on same row AND/BUT unique names with a blank on the same row (and still sorted)
    please find attachment to have a better look. THANKS
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: two name lists side by side

    One of those things that excel will not do very well.

    Copy your original list and paste to E6

    In E35, enter the following array formula, and copy down until it returns a blank row.

    =IFERROR(INDEX($B$6:$B$34,SMALL(IF(ISERROR(MATCH($B$6:$B$34,$A$6:$A$34,0)),ROW($B$6:$B$34)-ROW($B$6)+1),ROWS($E$35:$E35))),"")

    In F35, enter the following array formula, and copy down until it returns a blank row.

    =IFERROR(INDEX($A$6:$A$34,SMALL(IF(ISERROR(MATCH($A$6:$A$34,$B$6:$B$34,0)),ROW($A$6:$A$34)-ROW($A$6)+1),ROWS($F$35:$F35))),"")

    Note that array formulas must be 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.

    Next, select the cell with the last formula in column E that returns a name, (not blank), then press Shift, Ctrl and up arrow, then click the 'Sort' A-Z button on the 'Data' tab. Repeat this with Column F.

    Note that the sorting needs to be done per column as above to work correctly (if you check your sample, column A is not sorted, when you sorted column B, column A was re-sorted with it, A25, A31 and A33 are incorrectly sorted).

    Once sorted, press Ctrl A to select all of the names and formulas in both columns, then press Ctrl g, and click 'Special'. Select 'Formulas' then click Ok.

    Tap the delete key to remove the formulas and restore the blanks next to the unique rows.

    Note that you could also enter the formulas in A35 and B35 respectively, and sort the original list in place, no need to create a second copy of the list.
    Last edited by jason.b75; 07-03-2016 at 12:03 PM.

  3. #3
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: two name lists side by side

    WOW !
    That does the trick
    One small item i had to adjust in my original lists. From the start my one list is longer than the second one.
    I put some fictitious names in (= zzz) to get two even lists in lenghth.
    From there it works like a charm and as an added bonus it also shows me two same names but with a different spelling.

    Thank you so very much!!
    I mark this as solved

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: two name lists side by side

    I didn't try it, but it should work with lists of different lengths, you just need to adjust the ranges to match the actual data.

+ 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. VBA to copy data from multiple sheets side-by-side into one sheet matching date
    By MHCapcog in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-02-2013, 06:11 PM
  2. Replies: 0
    Last Post: 04-19-2009, 10:53 PM
  3. Replies: 0
    Last Post: 11-27-2007, 09:46 AM
  4. comparing side-by-side lists
    By petevang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2006, 04:10 PM
  5. Comparing 2 lists side by side
    By petevang in forum Excel General
    Replies: 2
    Last Post: 04-07-2006, 09:44 AM
  6. excel should cut & paste lists side by side to save paper
    By Richierich in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2006, 08:45 PM
  7. Converting grid data to side-by-side lists
    By The Chad in forum Excel General
    Replies: 6
    Last Post: 07-27-2005, 10:47 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